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);
| Constructor and Description |
|---|
SoapActionCallback(String soapAction)
Create a new
SoapActionCallback with the given string SOAPAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
doWithMessage(WebServiceMessage message)
Execute any number of operations on the supplied
message. |
public SoapActionCallback(String soapAction)
SoapActionCallback with the given string SOAPAction.public void doWithMessage(WebServiceMessage message) throws IOException
WebServiceMessageCallbackmessage.doWithMessage in interface WebServiceMessageCallbackmessage - the messageIOException - in case of I/O errors