Class SoapActionCallback
java.lang.Object
org.springframework.ws.soap.client.core.SoapActionCallback
- All Implemented Interfaces:
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
ConstructorDescriptionSoapActionCallback
(String soapAction) Create a newSoapActionCallback
with the given string SOAPAction. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doWithMessage
(WebServiceMessage message) Execute any number of operations on the suppliedmessage
.
-
Constructor Details
-
SoapActionCallback
Create a newSoapActionCallback
with the given string SOAPAction.
-
-
Method Details
-
doWithMessage
Description copied from interface:WebServiceMessageCallback
Execute any number of operations on the suppliedmessage
.- Specified by:
doWithMessage
in interfaceWebServiceMessageCallback
- Parameters:
message
- the message- Throws:
IOException
- in case of I/O errors
-