Results 1 to 1 of 1

Thread: soapAction not set in the message header using webServiceTemplate

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Unhappy 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
  •