Hello:
Thanks for te answer, but i have a doubt. When i want to call to one method
of the service, the "development" web service must have the same methods than
the service that will be used at runtime, isn't it?
What i want to say is that i can change the url only if the new url points
to a service with the same interface, same methods and parameters for these
methods but i can't use it to call different web services with differents
method names and different parameters, isn't it?
Thanks for the help.
Bye.
"Demetri" wrote:
It's simple.
In the application that consumes the web service go ahead and make the web
reference as usual. The difference is that you set the "URL Behavior"
property to "Dynamic". Doing so within visual stuidio will automatically
modify the proxy class and the web.config (app.config) file to have a key
with the URL to the web service.
The consumer would then just change the value of the key for the location of
the web service to be loaded at runtime.
--
-Demetri
"Javier" wrote:
Hello:
I want to create a class that i could use to call a web service without
adding the web reference from Visual Studio. That's because the url to the
.asmx o wsdl document will be given by te user at runtime.
How can i code this? Is it too complex?
Any information, code snippets or links to howtos will be wellcome.
Thanks.
Bye.