469,926 Members | 1,497 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Adding Custom HTTP Headers to SOAP Envelope using WSE 3.0

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.


Sep 28 '07 #1
0 3413

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tristan Tarrant | last post: by
5 posts views Thread by David Lozzi | last post: by
reply views Thread by =?Utf-8?B?TWFuZnJlZCBTdGV5ZXI=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.