Click here to Skip to main content
15,891,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created a web service in sso app
and iam accessing that web service in sso library
i want to make this web service url configurable so that i can run in any system irrespective of localhost port number.how to achieve this.
how do i make my web refernece URL Configurable dynamically
Posted
Updated 21-Apr-14 6:39am
v4

 
Share this answer
 
When you right click and add service reference in your project, the web.config or the app.config (depending on the project type) will have the below item which can be used for changing configurations.
XML
<endpoint address="http://yourouwn.service.url.com/service.asmx">
                binding="basicHttpBinding" bindingConfiguration="ServiceSoap"
                contract="SomeNameHere.ServiceSoap" name="ServiceSoap" /></endpoint>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900