Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2005

Tip: Looking for answers? Try searching our database.

Dynamically Connect to Web Service?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
T-Man - 16 Apr 2005 01:44 GMT
Hello,

I have an application in C# that makes calls to a web service and the app
currently contains a reference to a WSDL.

Since the server technology is a commercial product, some customers have
their own servers, etc.

I was wondering if it is possible to dynamically point the application to
any appropriate WSDL which would allow the C# code to continue to make the
simple method calls, etc.?

Regards,

Todd
Ollie Riches - 16 Apr 2005 14:56 GMT
change the URL behaviour on the web reference properties from within
Visual Studio's Solution Explorer for the proxy class.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbts
kGeneratingWebServiceProxy.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/v
xconWebReferences.asp


Signature

HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer.  I'm just a programmer
helping programmers.

> Hello,
>
[quoted text clipped - 11 lines]
>
> Todd
T-Man - 16 Apr 2005 18:21 GMT
Hey Ollie,

I think that I need to rephrase the question.

Let's suppose that I have a dialog where a user can specify a URL.

How can I programmatically update or work with a webservice under such
circumstances?

For example, can I do something like the following:

webservice MyService=new webservice(URL);
Type MyResults=MyService.GetType(webservice_results[]);
webservice_results[] MyResults=MyService.CallMethod(param1,param2);

Can it be done that easily, that dynamically?

Regards,

Todd

> change the URL behaviour on the web reference properties from within
> Visual Studio's Solution Explorer for the proxy class.
[quoted text clipped - 17 lines]
>>
>> Todd
Johan Jooris - 17 Apr 2005 13:51 GMT
Have a look at:

http://www.thinktecture.com/Resources/Software/DynWsLib/default.html

Johan

> Hey Ollie,
>
[quoted text clipped - 38 lines]
>>>
>>> Todd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.