471,318 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

User authentication in an HTTP soap call?

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
--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org) and spaces

Dec 21 '05 #1
3 4034
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Steve Alpert" <sr*@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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
--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

Dec 22 '05 #2
Nicholas Paldino [.NET/C# MVP] wrote:
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

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org) and spaces

Dec 22 '05 #3
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

Nicholas Paldino [.NET/C# MVP] wrote:
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.


--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces
Dec 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mark | last post: by
5 posts views Thread by Dave Kolb | last post: by
15 posts views Thread by Tom Nowak | last post: by
2 posts views Thread by Enda Manni | last post: by
reply views Thread by rosydwin | 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.