Adding SOAP headers to ASMX service requests

后端 未结 1 440

We were given a set of ASMX services to consume. We have no say in how these services are implemented. We have generated a number of proxies with wsdl.exe tool but for some reas

相关标签:
1条回答
  • 2021-01-20 23:52

    you can use SoapHeader / SoapUnknownHeader to extend the generated proxy for this:

    • http://msdn.microsoft.com/en-us/library/whew6x7f.aspx
    • http://msdn.microsoft.com/en-us/library/y4t36w86.aspx
    • http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapheader.aspx

    EDIT - as per comments:

    To include a custom namespace see the sample code here.

    0 讨论(0)
提交回复
热议问题