locked
How to remove RelatesTo element from SOAP header in synchronous response? RRS feed

  • Question

  • Hi,

    We are using WCF Adapter's WsHttpBinding for our integration scenario. On receiving the message from the client (Java) we need to send an acknowledgement immediately and then send asynchronous response to the ReplyTo address provided in SOAP Header at a later time. The sample SOAP headers in request and acknowledgement are as below:

    Request Header

    <soap:Header>
          <a:Action soap:mustUnderstand="1">MyService</a:Action>
          <a:MessageID>urn:uuid:a8f941c8-cbfb-712d-9e7e-6a63f5a16a17</a:MessageID>
          <a:ReplyTo>
             <a:Address>https://test.com/replyto</a:Address>
          </a:ReplyTo>
          <a:To soap:mustUnderstand="1">https://myservice.com/MyService/MyService.svc?wsdl</a:To>
          <a:From>
             <a:Address>https://test.com/from</a:Address>
          </a:From>
    </soap:Header>
    
    


    Acknowledgement / Response Header

    <soap:Header>
          <a:Action soap:mustUnderstand="1">MyService</a:Action>
          <a:MessageID>urn:uuid:caf05f61-6335-412e-8ab7-0d431be6c084</a:MessageID>
          <a:RelatesTo>urn:uuid:a8f941c8-cbfb-712d-9e7e-6a63f5a16a17</a:RelatesTo>
    </soap:Header>
    
    

    The java client for some reason is treating the acknowledgement as the final response when the RelatesTo element is present. But WCF adapter by default is generating this element.

    Is it possible to suppress this element through configuration or code?

    Your help and guidance is greatly appreciated. Thanks in advance.

    Thanks,

    mm2709


    Thanks, mm2709
    Thursday, January 26, 2012 10:22 PM

Answers

All replies