G
Guest
Is it possible to add a web service reference during runtime? If so, how?
Scott Allen said:Hi Demetri:
It sounds as if you need to point the proxy classes at the correct
URL. This would be an easier problem than we first thought. Set the
UrlBehavior property to Dynamic in the properties window and the IDE
will add a section to the application's config file with the URL for
the service. I.e:
<configuration>
<appSettings><add key="SomeProject.localhost.Service1"
value="http://localhost/SomeWebService/Service1.asmx"/>
</appSettings>
</configuration>
HTH,
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.