How add service reference in visual studio 2008 authenticating against password-protected web servic
Posted
by user312305
on Stack Overflow
See other posts from Stack Overflow
or by user312305
Published on 2010-04-08T21:33:44Z
Indexed on
2010/04/08
21:53 UTC
Read the original article
Hit count: 1121
Hello, first time here... great site Well, I want to reference a web service, and it requires user/pass authentication. In VS 2008, if I try to "add reference", or "add service reference", all I can type is the URL, there's no way to input my credentials. Obviously, if I try to load the ws, it shows me a nice message: "The request failed with HTTP status 403: Forbidden. Metadata contains a reference that cannot be resolved: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="weblogic"'. The remote server returned an error: (401) Unauthorized." So my question is: Is it possible (using VS 2008) to add a reference to a web service that is protected? How? Any help is kindly appreciated. Thanks!
© Stack Overflow or respective owner