hi.
how can i set in runtime the url of the webservice he is using ? (in
vb.net )
all i see in the client is the web reference.After you create your proxy instance of the webservice, set the .Url propert
y
if I understand your question...
http://msdn.microsoft.com/library/d...assUrlTopic.asp
See properties...
"roni" wrote:
> hi.
> how can i set in runtime the url of the webservice he is using ? (in
> vb.net )
> all i see in the client is the web reference.
>
>
You are looking to set the endpoint of the service? That would be the
URL property of the proxy class.
Even easier is to set the UrlBehavior property of the web reference to
Dynamic in the property dialog of VS.NET. This will create an entry in
web.config that the proxy will automatically read, and keeps Urls out
of your code.
<configuration>
<appSettings>
<add key="project.MyService"
value="http://foo/service.asmx"/>
</appSettings>
</configuration>
HTH,
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 29 Apr 2005 18:19:59 +0200, "roni" <xservicex@.hotmail.com>
wrote:
>hi.
>how can i set in runtime the url of the webservice he is using ? (in
>vb.net )
>all i see in the client is the web reference.
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment