Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling web services
Message
De
13/07/2010 10:18:22
 
 
À
12/07/2010 17:14:11
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
Divers
Thread ID:
01472253
Message ID:
01472351
Vues:
41
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform