c# - Web service Question -


I create a web service, I define IP connections (all work is excellent)

But, how can I define variables in the IP?

Now, I find and replace VS-2008 and right click on

Web service properties.

Thank you in advance

I'm not sure that I understand your question, But I think you are asking how do you get your customers to call a web service at a specific IP address? If this is the case, then you should have a section of App.config (or web.config if it is a web client) where the web service address is specified.

Another option is to make this programmus (we say that the web service is called "MyService"):

  MyService serviceInstance = new MyService (); ServiceInstance.Url = @ "http: //myserver/myservice.asmx"; / / Implement the web service method of selection here ...  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -