-
Nov 6th, 2012, 04:41 AM
#1
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());
}
Last edited by SujathaB; Nov 6th, 2012 at 04:42 AM.
Reason: icons
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules