authenticating web servcies calls

P

Patino

OK. I need to tranfers a web service application that was running on a
windows application, using WSE, to a PocketPC device. I;m using
Windows Mobile 5 and .NET 2005. But how do I authenticate my users
when they connect to the web service? In the desktop application, I
was craeting a UsernameToken with a username and password, then adding
it to the Tokens collection of my web service variable like this:

myWs.RequestSoapContext.Security.Tokens.Add(token);

but I cannot add Microsoft.Web.Services2 as a reference to a CF
application, correct? So how can I pass credentials to the server now?
I'm curious because apparently the OpenNETCF does this in its
OpenNETCF.Web.Servcies2 module. But my current CF app does not use the
OpenNETCF.

How are you dealing with applications of this type?

Your ideas will be very appreciated.

Thanks!
 
P

Patino

I'm using credentials like this:


myWS = new MyWebService();
myWS .Credentials = new NetworkCredential("username", "password");
myWS .Url = "https://myWebservice/webservices/myws.asmx";

but the original WS app was configured to use WSE; this is is gets the
actual credentials from SoapContext.Security.Tokens.
I need to disable WSE in the web service application......but how do I
pass the credentials from the consumer to the WS? My particular
application allows users to access certain parts of the server
according to their credentials.

What am I missing here?
 

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