Web Service

L

Lubos

Hi,
When I create in VS2003 new WebApplication and then I add new file
WebService1.asmx with function "login" in this application, how can I create
new instance WebService1.login in my WebApllication form without
specifikacion full path of this WebService1 (for example
"http://localhost/webservice1.asmx")? Because when i move this application
to my web provider, i have to repair this url and the relative path is all
the time without change. Can i create instance of this WebService1 with
relative path?

Thanks a lot
Lubos
 
R

R.Balaji

Hi,
In your project properties, click on the properties on the web reference.
Change the URL behaviour from Static to Dynamic.
Now your current URL is stored in a app.config.
You can change the URL to the production site URL by changing the value in
the app.config file.

Regards,
R.Balaji
 

Ask a Question

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.

Ask a Question

Top