soapAction not set in the message header using webServiceTemplate
Hi All
Thanks for looking at the post. My soapAction is not set to a specific value in my web service client. I have tried to see the TCP trace and message header is always empty
I tried couple of options but nothing is working - can you tell me what is wrong? I need to set the soapaction to urn:processDocument - I tried both the options below nothing seems to work - what am I doing wrong?
final Object responseTemplate = webServiceTemplate.marshalSendAndReceive(serviceUr l, request,
new SoapActionCallback("urn:processDocument")
);
OR
final Object responseTemplate = webServiceTemplate.marshalSendAndReceive(serviceUr l,request, new WebServiceMessageCallback() {
public void doWithMessage(WebServiceMessage message) {
((SoapMessage)message).setSoapAction("urn:processD ocument");
System.out.println("------Setting the soap action-" +((SoapMessage)message).getSoapAction());
}