Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling web services
Message
From
13/07/2010 10:18:22
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
Miscellaneous
Thread ID:
01472253
Message ID:
01472351
Views:
40
>>Hi All,
>>
>>in our recent project, we will be connect to various outside sources to retrieve data that has changed. The idea is to use Web Services as the medium of communication. Each agency will have a copy of a web service; all with the same interface. The only thing that is different is the URL that we call to access them.
>>
>>I have been searching for a means to call a web service from VB.Net without have to add reference (hardcode) each of the various Web Services to the project. Can this be done, and how?
>>
>>Also, I would prefer to do this is an asynchronized fashion. This will allow for multiple request to be processed at the agencies without tying up our server.
>
>Don't know if this is the best approach but all you really need to do is change the Url property of the web service. e.g.:
var v = new TestService();
>v.Url = @"http://SomeServer/SomeService.asmx";
>string result = v.HelloWorld();
>v.Url = @"http://SomeOtherServer/SomeService.asmx";
>string result2 = v.HelloWorld();
Thanks, with yours and others help I think I may be able to get this working.

One more question. Because we are going to be developing, deploying, and accessing these web service. Is there a way to register these web services on the agency's web server without going through the VS.Net Publish Web procedure? Perhaps a manual command line method.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform