472,142 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

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 3536

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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.