Files
spring-integration-samples/basic/ws-outbound-gateway
Artem Bilan 5f524dc534 Upgrade to SI-5.0 & SIK-3.0, Reactor 3.0
* Fix compatibility after Java DSL migration to the SI Core
* Also upgrade all the JMS sample to the JMS 2.0
* Fix default `connectionFactory` bean reference to the current `jmsConnectionFactory`
* Remove unsupported JPA-1.0 Spec via `OpenJpaAutoConfiguration`, since the minimum now is JPA-2.0
* Remove non-lambda sample since minimum now is Java 8
* Rename `PromiseTest` to `MonoTest` and fix it to Reactor 3.0
* Fix `stomp-server.xml` to use proper Reactor 3.0 `eactor.util.function.Tuples` for SpEL
* Regenerate POMs
2016-11-18 14:11:32 -05:00
..

WS Outbound Gateway Sample

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 service based on the [Simple Object Access Protocol][] (SOAP) using Spring Integration.

  • 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 [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html):

    $ gradlew :ws-outbound-gateway:run

[Simple Object Access Protocol]: http://en.wikipedia.org/wiki/SOAP