JAX-WS Spring

JAX-WS integration with Spring

License

License

GroupId

GroupId

com.revinate
ArtifactId

ArtifactId

jaxws-spring-sample
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

JAX-WS Spring
JAX-WS integration with Spring
Project URL

Project URL

https://github.com/revinate/jaxws-spring
Source Code Management

Source Code Management

https://github.com/revinate/jaxws-spring

Download jaxws-spring-sample

How to add to project

<!-- https://jarcasting.com/artifacts/com.revinate/jaxws-spring-sample/ -->
<dependency>
    <groupId>com.revinate</groupId>
    <artifactId>jaxws-spring-sample</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.revinate/jaxws-spring-sample/
implementation 'com.revinate:jaxws-spring-sample:1.0.0'
// https://jarcasting.com/artifacts/com.revinate/jaxws-spring-sample/
implementation ("com.revinate:jaxws-spring-sample:1.0.0")
'com.revinate:jaxws-spring-sample:jar:1.0.0'
<dependency org="com.revinate" name="jaxws-spring-sample" rev="1.0.0">
  <artifact name="jaxws-spring-sample" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.revinate', module='jaxws-spring-sample', version='1.0.0')
)
libraryDependencies += "com.revinate" % "jaxws-spring-sample" % "1.0.0"
[com.revinate/jaxws-spring-sample "1.0.0"]

Dependencies

compile (4)

Group / Artifact Type Version
com.sun.xml.ws : jaxws-rt jar 2.2.10
javax.xml.ws : jaxws-api jar 2.2.11
org.springframework.boot : spring-boot-starter-web jar
com.revinate : jaxws-spring jar 1.0.0

Project Modules

There are no modules declared in this project.

JAX-WS integration with Spring

BuildStatus BuildStatus

This is a JAX-WS reference implementation (Metro) extension for integrating with Spring Framework. Using this extension, it is possible to write service endpoint implementations as Spring beans, allowing for dependency injection, etc. This extension also makes it easier to configure various aspects of the web service using either Spring XML or JavaConfig.

Most of the code for this extension comes from the JAX-WS Commons Spring extension. The core classes from the original extension have been updated to work better with newer technologies such as Servlet 3.0, Spring 4, Spring Boot, and embedded servlet containers. Other parts of the original extension, such as XML-namespace-based configuration and JAX-WS local transport support, have been removed. This extension does not declare any explicit dependencies on servlet API, JAX-WS API, or JAX-WS RT. Projects that use this extension can pull in versions and implementations of those APIs they choose.

Requirements

  • Java 1.7 or newer
  • Servlet API 2.0 or newer
  • JAX-WS API
  • JAX-WS RT

Installation

Maven

Add this dependency to your project's POM:

<dependency>
  <groupId>com.revinate</groupId>
  <artifactId>jaxws-spring</artifactId>
  <version>1.0.0</version>
</dependency>

Gradle

Add this dependency to your project's build script:

compile 'com.revinate:jaxws-spring:1.0.0'

Usage

This extension comes with two sample web service applications that demonstrate its usage.

WSDL-first sample

This sample is located in the jaxws-spring-sample directory. The sample application can be started by running the following command in the project root directory:

$ ./gradlew :jaxws-spring-sample:bootRun

The sample application implements a single service with two ports, located at:

The Application class demonstrates how to use Spring JavaConfig to configure web service components.

The FibonacciPortImpl class is a service endpoint implementation written as a Spring Bean with dependency injection.

Java-first sample

This sample is located in the jaxws-spring-sample-fromjava directory. The sample application can be started by running the following command in the project root directory:

$ ./gradlew :jaxws-spring-sample-fromjava:bootRun

The sample application implements a single service with one port, located at:

com.revinate

Revinate, Inc.

Versions

Version
1.0.0