Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the Web Service URL
Message
De
18/08/2010 12:58:11
 
 
À
18/08/2010 12:47:30
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01477089
Message ID:
01477094
Vues:
32
>>Is your class based on SoapClient ? If yes, it's in the constructor
>>
>>http://msdn.microsoft.com/en-us/library/aa747875.aspx
>
>In my project, this Web Service was added as a Service References. When I call a method, it works. I receive back my XML. But, using this type of declaration doesn't seem to allow changing the URL. For now, I am using a test server URL. But, I need to be able to control that from a Main.ini, thus justifying to read the URL from the Main.ini and changing it programatically.


as per the doc you can pass a Uri to the constructor

Does this not work ?
dim .... new SoapClient (new Uri(URL) ) 
Where do you use your test server url ? - is it hard coded ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform