INT-454
This commit is contained in:
@@ -20,7 +20,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
import org.springframework.integration.core.Message;
|
||||
import org.springframework.integration.core.MessageChannel;
|
||||
import org.springframework.integration.message.MessageBuilder;
|
||||
import org.springframework.integration.ws.AbstractWebServiceOutboundGateway;
|
||||
import org.springframework.integration.ws.WebServiceHeaders;
|
||||
|
||||
/**
|
||||
* Demonstrating a web service invocation through a Web Service MessageHandler.
|
||||
@@ -41,7 +41,7 @@ public class WebServiceDemo {
|
||||
// Create the Message object
|
||||
// In this case the service expects a SoapAction header
|
||||
Message<String> message = MessageBuilder.withPayload(requestXml)
|
||||
.setHeader(AbstractWebServiceOutboundGateway.SOAP_ACTION_PROPERTY_KEY, "http://tempuri.org/FahrenheitToCelsius")
|
||||
.setHeader(WebServiceHeaders.SOAP_ACTION, "http://tempuri.org/FahrenheitToCelsius")
|
||||
.build();
|
||||
|
||||
// Send the Message to the handler's input channel
|
||||
|
||||
Reference in New Issue
Block a user