What I do is create a proxy for the web service on my DEV machine, by
Then I add the proxy to my application.
Then, after I've deployed the web service to my web server, I simply change
the URL property of the proxy. (Near the top of the proxy code, you'll see
something like Me.URL = [url]http://localhost/mywebservice.asmx[/url] and I change it
to Me.URL = [url]http://mywebserver/mywebservice.asmx[/url].
I hope this is what you are looking for.
"Ed" <Eddiscussions.microsoft.com> wrote in message
news:26E61978-9413-4DBE-BB86-3E20CB96FD26microsoft.com...>I have developed a webservice that my application uses .Both the
> and the application runs on local host . I have created reference to the
> webservice from my project.I can access the web service by giving the url
> [url]http://Webdev/DALSvc/dalsvc.asmx[/url] .webdev is local machine . Now I have
> deploy the application and the webservice on the production server . I
> to deploy the webapplication . I have also deployed the webservice on the
> webserver. When I run the application it throws exception .
> The webservice on the production server is NOT acccessible to the outside
> world by doing something like [url]http://something.com/DALSvc/dalsvc.asmx[/url]
> if I try to run the webservice on the PRODUCTION by using terminal
> and doing [url]http://localhost/DALSvc/dalsvc.asmx[/url] It displays all the methods
> SO that shows the webservice is working on the Production server.
> How do I change the webreference to point to Production server... Cos if i
> try to set the webreference from the project solution on my machine it
> me error message.
> Any help is appreciated
> Thanks in advance.