org.springframework.ws.soap.client.core
Class SoapActionCallback
java.lang.Object
org.springframework.ws.soap.client.core.SoapActionCallback
- All Implemented Interfaces:
- WebServiceMessageCallback
public class SoapActionCallback
- extends Object
- implements WebServiceMessageCallback
WebServiceMessageCallback
implementation that sets the SOAP Action header on the message.
A usage example with WebServiceTemplate
:
WebServiceTemplate template = new WebServiceTemplate(messageFactory);
Result result = new DOMResult();
template.sendSourceAndReceiveToResult(
new StringSource("<content xmlns=\"http://tempuri.org\"/>"),
new SoapActionCallback("http://tempuri.org/SOAPAction"),
result);
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
Constructor Summary |
SoapActionCallback(String soapAction)
Create a new SoapActionCallback with the given string SOAPAction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoapActionCallback
public SoapActionCallback(String soapAction)
- Create a new
SoapActionCallback
with the given string SOAPAction.
doWithMessage
public void doWithMessage(WebServiceMessage message)
throws IOException
- Description copied from interface:
WebServiceMessageCallback
- Execute any number of operations on the supplied
message
.
- Specified by:
doWithMessage
in interface WebServiceMessageCallback
- Parameters:
message
- the message
- Throws:
IOException
- in case of I/O errors
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.