This commit is contained in:
Mark Fisher
2008-11-06 21:16:18 +00:00
parent eb5459209e
commit eee637a3e9
3 changed files with 34 additions and 6 deletions

View File

@@ -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