Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the Web Service URL
Message
From
18/08/2010 12:58:11
 
 
To
18/08/2010 12:47:30
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01477089
Message ID:
01477094
Views:
31
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform