473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 4139
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
4
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
15
by: Tom Nowak | last post by:
I am writing a webapp in which a user is required to enter a login id and password on a login form. I have forms authenticaion coded in my web.config. Once the user is logged in, I want to use the...
13
by: Pete | last post by:
I'm cross posting from mscom.webservices.general as I have received no answer there: There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the...
3
by: Patrick Fogarty | last post by:
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java for what it's worth) requires basic authentication...
0
by: bkriznar | last post by:
The problem could be reproduced like this: Web Service: public string HelloWorld(byte aB) { byte lB = aB; return "Hello World"; }
1
by: KY | last post by:
Hi, I am using custom authentication using SOAP headers to authenticate users of a web service. I cannot use windows authentication as our client applications need not in the same domain as that...
2
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.