467,134 Members | 1,062 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

ASP.NET 2.0 Web Site Project - Change Web Service Path?

Hi all,

I'm deploying a web site application to a production server. The web site
contacts a back end web service (part of this project) and in development
it uses http://localhost:4161/. In production it has another path - how do
I configure the path?

In .NET 1.1 I could change a web service to be "dynamic URL", but this
doesn't seem to be an option with the web site project.

Any ideas?

Thanks!
Sep 2 '07 #1
  • viewed: 1544
Share:
1 Reply
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
Hi all,

I'm deploying a web site application to a production server. The web site
contacts a back end web service (part of this project) and in development
it uses http://localhost:4161/. In production it has another path - how do
I configure the path?

In .NET 1.1 I could change a web service to be "dynamic URL", but this
doesn't seem to be an option with the web site project.

Any ideas?
Yes.

First of all, a web site is not a project at all. It's just a web site.
Notice how the two are mutually-exclusive alternatives in the File menu.

Second, dynamic URL in VS2003 changed the Url property of the proxy class.
You should do the same thing. So:

using (localhost.MyWebService service = new localhost.MyWebService())
{
service.Url = http://productionlocation/MyWebService.asmx;
service.MyWebMethod();
}
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Sep 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by John please don't spam me! | last post: by
4 posts views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.