Web service client question

S

Sebitti

How can I use webservice without adding web reference to my winforms
application at design time. I need to be able to change server url at
runtime. What is the simplest way to achieve this? Also any vb code samples
would be appreciated.

Thanks :)
Johanna
 
M

Michael Nemtsev

Hello Sebitti,

When u add web reference wsdl generate proxy, that added to you project.
Unfortunately, there is no clear way to change proxies in runtime, but you
can write a small
wrapper class, that will dynamically (by CodeDOM) include proxy u specify
in runtime


S> How can I use webservice without adding web reference to my winforms
S> application at design time. I need to be able to change server url at
S> runtime. What is the simplest way to achieve this? Also any vb code
S> samples would be appreciated.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
J

Jon Frost

Hi Ralph,

I need to connect to a variety of web services at run-time. I need to
connect to the various web services throughout the day and I expect a lot of
traffic so I need to avoid memory leaks. I have about 20 different method
names. A code sample would be great.

Thanks,
Jon


in message news:...
 

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,997
Messages
2,570,239
Members
46,828
Latest member
LauraCastr

Latest Threads

Top