J

J

  • NA
  • 1
  • 0

WSE 3.0 - HTTP Basic Authentication

May 28 2009 1:04 PM
Hello Folks - new to this forum.

Having trouble getting my solution to do HTTP Basic Authentication.

I have a few requirements for this project:
- WSE 3.0 must be used for the following reasons:
-- client is using Win 2K which means no .NET 3.5 which means no WCF
-- client requires SOAP 1.2

I can't use the regular 'wsdl.exe' approach where VS builds a proxy for you because I have to build a generic client that a custom in-house scripting system can call in order to access web services. Every script will call a different WS in a different way so I'm really just building a proxy for the scripters.

I came seeking help because I can't seem to find any information about doing HTTP Basic Authentication with WSE 3.0.

I understand that the WSE 3.0 stuff was built to separate the protocol stuff from the SOAP stuff, which is cool. But it seems to have had the consequence that it is now unclear how to access the 'protocol' layer - which is required for HTTP Basic Authentication as this is part of the HTTP headers, and nothing to do with the SOAP message.

I've tried building this using the SoapEnvelope class, and everything works fine except I can't get to the HTTP stuff to set the basic auth headers...

I then tried building it using the WebServicesClientProtocol class, as I think I read somewhere that this class would allow this type of protocol layer work, but I can't even figure out how to use that at all.

Some examples or advice on how to go about this would be very much appreciated. There doesn't seem to be much in the way of documentation for WSE 3.0 in the first place, and most of it seems to be centered around using the VS-built proxies to do the calling for you....