I have generated a Web-Service-Proxy (Add Web Reference) within VS.
This proxy class is based on WebServicesClientProtocol of WSE 3.0. I
want to add some custom HTTP Headers to the envelop before calling a
Web Method using this proxy class.
I could add the SOAP security header using Assertion Policy. But
adding HTTP headers looks like a challenge. Basically I am trying to
resolve the soap fault "The request failed with HTTP status 404: Not
Found". I am not sure adding custom http headers will solve this.
There is a property RequestSoapContext.WebRequest.Headers in the proxy
object. But there seems to be no easy way to do this.
Please let me know your suggestions.
Thanks
Nithi