All Projects → stefan-kolb → Jaxws Samples

stefan-kolb / Jaxws Samples

Licence: mit
Small example projects using JAX-WS technologies.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Jaxws Samples

idiomatic-gradle
How do I idiomatically structure a large build with Gradle 7.2+?
Stars: ✭ 129 (+1072.73%)
Mutual labels:  gradle, examples
openjfx-docs
Getting started guide for JavaFX 11
Stars: ✭ 70 (+536.36%)
Mutual labels:  gradle, examples
Samples
JavaFX samples to run with different options and build tools
Stars: ✭ 352 (+3100%)
Mutual labels:  gradle, examples
Light Novel Library wenku8 android
[CASUALLY MAINTAINED] 轻小说文库 (Wenku8.com) 安卓版第三方公益App,始于2014年的Material Design风格、无广告、不盈利、Google Play上安装包最小的轻小说阅读器(light novel reader)。目前除了网站的API以外,还添加了我自己架的Cloudflare Worker 中继节点用来突破网站API的限制 wenku8-relay.mewx.org.
Stars: ✭ 772 (+6918.18%)
Mutual labels:  gradle
Fod
Freedom of Developers
Stars: ✭ 815 (+7309.09%)
Mutual labels:  gradle
Android Cookbook Examples
Contributed code examples from O'Reilly Android Cookbook. See #user-content-table README below!
Stars: ✭ 935 (+8400%)
Mutual labels:  gradle
Spring Boot Rest Api Example
Implement REST APIs using Spring Boot and Spring Session.
Stars: ✭ 10 (-9.09%)
Mutual labels:  examples
Ethereum Development With Go Book
📖 A little book on Ethereum Development with Go (golang)
Stars: ✭ 754 (+6754.55%)
Mutual labels:  examples
Bestnote
👊 持续更新,Java Android 近几年最全面的技术点以及面试题 供自己学习使用
Stars: ✭ 841 (+7545.45%)
Mutual labels:  gradle
Haxejs
Documentation about using JavaScript with Haxe
Stars: ✭ 25 (+127.27%)
Mutual labels:  examples
Rxswiftexamples
Examples and resources for RxSwift.
Stars: ✭ 930 (+8354.55%)
Mutual labels:  examples
Spring Streaming
SPA on Spring Boot 1.x, WebSockets and React, gradle, nodejs, spring-boot, gradle multi project, spring-mvc, spring-data, gradle dependency update plugin, react-router
Stars: ✭ 6 (-45.45%)
Mutual labels:  gradle
Php Ffi Examples
Runnable examples to learn how PHP FFI works
Stars: ✭ 26 (+136.36%)
Mutual labels:  examples
Androidsdk
🐳 Full-fledged Android SDK Docker Image
Stars: ✭ 776 (+6954.55%)
Mutual labels:  gradle
Refreshversions
Life is too short to google for dependencies and versions
Stars: ✭ 841 (+7545.45%)
Mutual labels:  gradle
Android Next
Android Next 公共组件库
Stars: ✭ 768 (+6881.82%)
Mutual labels:  gradle
Gradle Defaults
Plugin providing opinionated defaults for Gradle projects.
Stars: ✭ 7 (-36.36%)
Mutual labels:  gradle
Kotlin Android Examples
💪 [Examples] Isolated applications purely on Kotlin, for all android devs out there
Stars: ✭ 902 (+8100%)
Mutual labels:  examples
Shield
A declarative, efficient, and flexible Native framework for building user interfaces.
Stars: ✭ 901 (+8090.91%)
Mutual labels:  gradle
Android Basic Samples
Google Play game services - Android samples
Stars: ✭ 934 (+8390.91%)
Mutual labels:  gradle

JAX-WS Samples

Sample projects using JAX-WS technologies.

Almost all sample projects can be run as standalone projects using gradle run and are ready to use with JDK 11 or higher. This is also the recommended way.

Furthermore, the build files use the Gradle Cargo plugin for auto-deployment to Glassfish 4. For the available Gradle tasks see the documentation. Please see the cargo documentation for the default configuration of the used application server. The plugin will download and install the server automatically for each project. The admin interface can be found at http://admin:[email protected]:4848. However, the plugin currently works reliably only with JDK 8.

When Gradle is installed on your system all tasks can be run directly from the sub-project's root folder, e.g. gradle war. Otherwise you can use the Gradle wrapper from the root and use an absolute path like gradlew java-first:minimal:war.

Use gradlew eclipse to generate Eclipse project files for all of the modules. This also works for IntelliJ IDEA with gradlew idea.

Contents

Java-first

Simple bottom-up JAX-WS example. The Web service returns German chancellors that reigned in a given period of time.

Minimal

Minimal example for exposing a Web service with JAX-WS annotations. The project can be run as a standalone service via gradlew java-first:minimal:run. The Web service should be available at http://localhost:8080/minimal/HistoryService.

Custom

In this example more annotations are used to override default conventions of JAX-WS, e.g. the naming of parameters or return types. The project can be run as a standalone service via gradlew java-first:custom:run. The Web service should be available at http://localhost:8080/custom/HistoryService.

Deployment-styles

Demonstrates several JAX-WS deployments as a standalone application, on JSR 109-compatible application servers (e.g. Glassfish) and Tomcat.

Standalone

The standalone project uses javax.xml.ws.Endpoint to run a server instance. It is the simplest way to expose an experimental JAX-WS Web service. Run the project via gradlew deployment-styles:standalone:run. The Web service should be available at http://localhost:8080/standalone/GreetingsService.

JSR 109

Notice: The plugin used in this example only runs reliably with JDK 8. With a newer JDK, there might be problems.
To deploy the sample to Glassfish run gradle cargoRunLocal. The Web service should be available at http://localhost:8080/jsr109/GreetingsService. As an alternative, you can setup a local Glassfish sever manually, and deploy the war-file there.

Tomcat

Tomcat needs additional deployment descriptors and the JAX-WS implementation in order to run JAX-WS Web services. Build with gradle war and manually deploy to a Tomcat instance.

WS-client

Demonstrates the usage of the wsimport tool to generate Web Services interfaces and clients using a top-down approach. First run the java-first:custom project in order to be able to access the service with the wsimport client. Use gradle run to run the web services test client.

Dynamic WS Client

Demonstrates the creation of a Web service client without additional code generation.

Wrapper-style vs. Plain-style

See this blog for an explanation.

Type-mapping

Demonstrates type mappings from Java to WSDL/XSD and vice versa.

Java2Wsdl

The project can be run as a standalone service via gradlew type-mapping:java2wsdl:run. The mapped WSDL should be available at http://localhost:8080/wsdl2java/Wsdl2JavaService?wsdl.

Wsdl2Java

The Java artifacts can be generated via gradle wsimport.

Method-overloading

Demonstrates the mapping of overloaded Java methods via custom mappings. The project can be run as a standalone service via gradlew method-overloading:run. The Web service should be available at http://localhost:8080/method-overloading/VolumeService.

Exceptions

Demonstrates the mapping of standard Java exceptions and soap-style exceptions with JAX-WS. Each Exception type has a corresponding client project to demonstrate the WSDL mapping to Java stubs.

Java Exception & Java Exception client

Demonstrates the problem of mapping a standard-like Java Exception to SOAP faults. If the Exception does not follow this style, JAX-WS will generate a wrapper class and the Exception will be put in the FaultBean class. The project can be run as a standalone service via gradlew exceptions:java-exception:run. The Web service should be available at http://localhost:8080/java-exception/FaultService. The Java artifacts can be generated via gradle wsimport.

Custom fault & Custom fault client

Demonstrates a custom Java Exception implementation that maps the SOAP fault structure. The project can be run as a standalone service via gradlew exceptions:custom-fault:run. The Web service should be available at http://localhost:8080/custom-fault/FaultService. The Java artifacts can be generated via gradle wsimport.

SOAP fault

Uses the SOAPFaultException implementation. More information about SOAP faults can be found here.

Wsdl-styles

Demonstrates the several WSDL styles rpc-encoded, rpc-literal, document-literal and document-literal wrapped. See this blog for a detailed explanation.

Document-literal

The Web service should be available at http://localhost:8080/document-literal/GreetingsService.

Document-literal-wrapped

The Web service should be available at http://localhost:8080/document-literal-wrapped/GreetingsService.

Rpc-encoded

No longer supported by JAX-WS 2.

Rpc-literal

The Web service should be available at http://localhost:8080/rpc-literal/GreetingsService.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].