wsdl.exe with username & password

A

Asaf

Hi,



I am generating a proxy for web service with the wsdl.exe with username &
password.



Wsdl.exe testservice.wsdl /u:test /p:12345



I can't see the user & password in the generated class testservice.cs

Am I doing something wrong here?



Thanks in advanced for any help.

Asaf
 
T

Tomas Restrepo \(MVP\)

Asaf,
I am generating a proxy for web service with the wsdl.exe with username &
password.



Wsdl.exe testservice.wsdl /u:test /p:12345



I can't see the user & password in the generated class testservice.cs

That's how it is supposed to work. That username and password is provided
only so that WSDL.EXE can access the WSDL file from the webserver, not to
embedded in the proxy code (which would make little sense, anyway, because
you're not supposed to embed those things in code).

You can use credentials if you want by adding them to the Credentials
Property of the client-side proxy class before doing the call.
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top