locked
Custom SOAP Headers in SoapHttpClientProtocol RRS feed

  • Question

  • I need to add a custom soap header in SoapHttpClientProtocol. My customer header is an XML with namespaces and custom elements in it.

    We can do that in WCF by building a CustomMessageHeader and adding it to the Message request header in IDispatchMessageInspector. Similarly do we have an option to do the same in SoapHttpClientProtocol? 

    In SoapHttpClientProtocol, we usually add headers in GetWebRequest method but what I can add here is only name value pairs but I want to build a Custom Soap header and add it. 

    Can someone please help in doing this?

    Thanks

    Wednesday, November 16, 2016 6:12 PM

Answers