https support for web service client

V

vipin aravind

Hi,
I have a soap .NET client in c# generated using wsdl.exe and I am
able to do the communication with the web service and get the information.
But I have a question, I have enabled https support on the server and I want
to add https support to the client which currently makes use of the http
support.

How do I go about this?


thanks in advance for any answers or pointers in this regard.

vipin
 
C

Cezary Nolewajka

Just use the Url property for your class generated with the WebReference:

MyService ws = new MyService ();
ws.Url = "https://localhost/TestApps/DirtyTest/WebServ/Service1.asmx";
ws.HelloWorld ();

Remember, that the server must be SSL/TSL enabled (needs to have certificates installed).

Good articles to follow:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT14.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT16.asp
 

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