User authentication in an HTTP soap call?

S

Steve Alpert

I'm trying to see what basic authentication will do in a SOAP call through a
class created in C# by the wsdl tool.

WSDLTest wt = new WSDLTest(); // my SOAP class

wt.Credentials = new NetworkCredential("steve","fudge");
wt.PreAuthenticate = true;

This builds fine but if I log the http traffice, I don't seen any authentication
information anywhere. What's missing?

thanks,
/steveA
 
N

Nicholas Paldino [.NET/C# MVP]

Steve,

The Credentials property that is used on the proxy that is created for
you is for HTTP authentication, not any kind of authentication according to
the WS specs.

In order to handle this, you will need to use something like the Web
Service Enhancements pack from MS, which supports a good number of the
authenitcation/authorization schemes that are defined in the WS specs.

Hope this helps.
 
S

Steve Alpert

Nicholas said:
Steve,

The Credentials property that is used on the proxy that is created for
you is for HTTP authentication, not any kind of authentication according to
the WS specs.

In order to handle this, you will need to use something like the Web
Service Enhancements pack from MS, which supports a good number of the
authenitcation/authorization schemes that are defined in the WS specs.

Hope this helps.
Nick:
Thanks for the suggestion. I have good news and bad news. I installed the
WSE 2.0 and it works like a charm. The bad news is the server I'm talking to
doesn't support the features... yet! gag!

/steveA
 
S

Steve Alpert

Nicholas:

OTOH - I'd be interested in using the HTTP authentication as well. Why
didn't I see any headers when I enabled preauthentication?

/steveA

ps - have a good holiday
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top