logo       

RE: Dynamic web service references: msg#00123

Subject: RE: Dynamic web service references
Select your web reference in the Visual Studio Solution Explorer, and in
Properties set Url Behavior to "Dynamic". This will put your web
reference URL in your web.config file.

 

You can also change the url reference programmatically with the proxy's
Url property.

 

-Jason

 

 

From: padnug@xxxxxxxxxxxxxxx [mailto:padnug@xxxxxxxxxxxxxxx] On Behalf
Of Pankaj Mathur
Sent: Monday, June 26, 2006 9:49 AM
To: padnug@xxxxxxxxxxxxxxx
Subject: [padnug] Dynamic web service references

 

We are using third party web services and I have duly added those using
Project -- Add Web Reference.

Now the web service path might change in the future or there might be
more
than one web service (for instance test and production versions). I want
to
compile my code in to a dll and don't want to modify it each time web
service's path changes. Is there a way I can add web service's path in
<appSettings> and some how read it from there? How does my code needs to
change to accomodate this?

Thanks,

-- 
Pankaj

[Non-text portions of this message have been removed]

 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>