Announcement Announcement Module
Collapse
No announcement yet.
soapAction not set in the message header using webServiceTemplate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 urnrocessDocument - 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("urnrocessDocument")
    );

    OR

    final Object responseTemplate = webServiceTemplate.marshalSendAndReceive(serviceUr l,request, new WebServiceMessageCallback() {
    public void doWithMessage(WebServiceMessage message) {
    ((SoapMessage)message).setSoapAction("urnrocessDocument");
    System.out.println("------Setting the soap action-" +((SoapMessage)message).getSoapAction());

    }
    Last edited by SujathaB; Nov 6th, 2012, 04:42 AM. Reason: icons
Working...
X