Re: .NET WS client connecting to Axis WS - credentials problem



Hi David,

That property sets the credentials for the transport (In case you are using
Http, it sets the credentials when Basic authentication or Windows
authentication is being used). In other words, as you said, adds a http
header with the credentials.
Maybe the service is being protected with the WS-Security, and they are
expecting a security header in the SOAP message. (The security header
contains a Usernametoken with user and password). In this case, you need to
add a SOAP-Header and not a Http Header.

You should first ask to the web service team whether they are using
WS-Security or not.

Regards,
Pablo Cibraro.


"David R" <DavidR@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE1C9AD4-A637-4EEE-A012-AE537091AE31@xxxxxxxxxxxxxxxx
I am writing a .NET web services client that is calling an Axis web
service.
I have two questions.

1. The following code should set the authentication; when I call a method
on the web service, the call fails with "bad username/password".

// wrWorkReq is the name of the service
wrWorkReq.Credentials = new System.Net.NetworkCredential("adolph.ramirez",
"xxx");

A developer managing the Axis side says that the server is receiving a
blank
username and password, and not the populated fields they should be. Any
idea
what I am doing wrong?

2. I could save time if I could debug the HTTP headers that are being sent
out. I am using VS 2005. Any suggestions on the best way to do this?

Thanks,

David


.



Relevant Pages

  • ASP.NET Basic Authentication programmatically.
    ... authentication programmatically using user's credentials that are known. ... I would assume that changing the header ... however I realized that the Request is a read only ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Setting timeout for basic authentication
    ... Authentication Credentials and Idle Clients ... Existing HTTP clients and user agents typically retain authentication ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Can I force 401 error when user not authenticated?
    ... When using forms authentication, you are never sending back a 403 header. ... You are just redirecting the user to another ASP.NET page. ... Forms auth never involves these HTTP status codes - all pages are 200 OK. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Basic Authentication ... solution seems a mystery?
    ... However I'm looking for authentication at the http level not at the soap ... within the http header. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Integrated Windows Authentication
    ... What is the authentication mechanism for sending the credentials ... The HTTP specification permits the server to send back supported authN mechanisms via the use of WWW-Authenticate: ... The client would send credentials back using an Authorization: ...
    (microsoft.public.inetserver.iis.security)