INTSAMPLES-89 - Upgrade to Spring Integration 2.2 RC3
* Test samples * Polish documentation * Polish code For reference see: https://jira.springsource.org/browse/INTSAMPLES-89
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
WS Outbound Gateway Sample
|
||||
==========================
|
||||
|
||||
This example demonstrates the following aspects of the WS support available with Spring Integration:
|
||||
This example demonstrates the following aspects of the Web Services (WS) support available with *Spring Integration*:
|
||||
|
||||
1. WS Outbound Gateway
|
||||
2. Content Enricher
|
||||
3. Composed Message Processor
|
||||
|
||||
A very simple example that show you how easy it is to invoke a SOAP based service using Spring Integration.
|
||||
A very simple example that show you how easy it is to invoke a service based on the [Simple Object Access Protocol][] (SOAP) using *Spring Integration*.
|
||||
|
||||
* A Message is simply sent to a channel, where it is retrieved by a *Chain* which consists of a *Header Enricher* and a *WS Outbound Gateway*.
|
||||
* The *Header Enricher* enriches the Message with the SOAP action header.
|
||||
* The *WS Outbound Gateway* converts the Message to a SOAP request and sends it to a remote service, which converts a temperature from
|
||||
Fahrenheit to Celsius and the result is printed to the console.
|
||||
* A *Message* is sent to a *Channel*, where it is retrieved by a *Chain* which consists of a *Header Enricher* and a *WS Outbound Gateway*.
|
||||
* The *Header Enricher* enriches the *Message* with the SOAP action header.
|
||||
* The *WS Outbound Gateway* converts the *Message* to a SOAP request and sends it to a remote service, which converts a temperature from
|
||||
Fahrenheit (90F) to Celsius (32.2C) and the result is printed to the console:
|
||||
|
||||
````
|
||||
<?xml version="1.0" encoding="UTF-8"?><FahrenheitToCelsiusResponse xmlns="http://tempuri.org/"><FahrenheitToCelsiusResult>32.2222222222222</FahrenheitToCelsiusResult></FahrenheitToCelsiusResponse>````
|
||||
|
||||
## Running the Sample
|
||||
|
||||
To run the sample simply execute **WebServiceDemoTestApp** in package *org.springframework.integration.samples.ws*. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/):
|
||||
|
||||
$ mvn clean package exec:java
|
||||
|
||||
[Simple Object Access Protocol]: http://en.wikipedia.org/wiki/SOAP
|
||||
@@ -5,14 +5,17 @@
|
||||
<groupId>org.springframework.integration.samples</groupId>
|
||||
<artifactId>ws-outbound-gateway</artifactId>
|
||||
<name>Samples (Basic) - WS Outbound Gateway Sample</name>
|
||||
<version>2.1.0.BUILD-SNAPSHOT</version>
|
||||
<version>2.2.0.BUILD-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<prerequisites>
|
||||
<maven>2.2.1</maven>
|
||||
</prerequisites>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring.integration.version>2.1.0.RELEASE</spring.integration.version>
|
||||
<log4j.version>1.2.16</log4j.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring.integration.version>2.2.0.RC3</spring.integration.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<junit.version>4.10</junit.version>
|
||||
<saaj.version>1.3</saaj.version>
|
||||
<saaj.version>1.3.19</saaj.version>
|
||||
<javax-activation.version>1.1.1</javax-activation.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
@@ -53,23 +56,23 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<compilerArgument>-Xlint:all</compilerArgument>
|
||||
<showWarnings>true</showWarnings>
|
||||
<showDeprecation>false</showDeprecation>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<configuration>
|
||||
<mainClass>org.springframework.integration.samples.ws.WebServiceDemoTestApp</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2</version>
|
||||
<configuration>
|
||||
<mainClass>org.springframework.integration.samples.ws.WebServiceDemoTestApp</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<repositories>
|
||||
|
||||
Reference in New Issue
Block a user