Can I add web reference to my VB.NET project at run time?

A

Annie

My project will be delivered to different sites therefore they will be referenced to the web services at their own web server. I don't want to maintain different version of the project because of this. Is there a way to add the web service reference at run time
Thanks!
 
J

Jan Tielens

Sure you can! Check out Christian Weyer's excellent example:
http://weblogs.asp.net/cweyer/archive/2003/07/07/9769.aspx
"Did you ever think about invoking your XML Web Services dynamically without
having to generate a client side proxy class at design/compile time with
wsdl.exe or Visual Studio .NET? - No need to know the exact Web Service
description and endpoint at compile/design time. Just get your WSDL from
UDDI (or from wherever you want, e.g. XMethods), specify the type to
instantiate and the methods to call ... voila! Can be used from any .NET
application or even an unmanaged resource"

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Annie said:
My project will be delivered to different sites therefore they will be
referenced to the web services at their own web server. I don't want to
maintain different version of the project because of this. Is there a way
to add the web service reference at run time?
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top