Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

Changing Webservice from Server Without rebuilding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carlos Hernandez - 24 Jun 2004 19:38 GMT
We have created a webservice, and in out test server everyting works fine,
but when we want to move it to our
production server, we have ti change IP in the webreference properties, and
rebuild our application.
Is there a way to do this dinamically so we dont have to recompile our
application each time we change IP or server?

Thanks.
Wayne - 24 Jun 2004 20:26 GMT
Right click on your webservice in the VS.net gui and select properties. One
of the URL Behavior, set it to dynamic. Your app will then have an
APP.Config if it doesn't already and the URL will be settable in the config
file.

Thanks
Wayne

> We have created a webservice, and in out test server everyting works fine,
> but when we want to move it to our
[quoted text clipped - 4 lines]
>
> Thanks.
Carlos Hernandez - 26 Jun 2004 02:42 GMT
Exactly where is that option located?, I have searched for it and didnt find
it. My web service has an web.config file, but I cant find that property
that you talked.

Thanks.
> Right click on your webservice in the VS.net gui and select properties. One
> of the URL Behavior, set it to dynamic. Your app will then have an
[quoted text clipped - 13 lines]
> >
> > Thanks.
Carlos Hernandez - 26 Jun 2004 22:20 GMT
I added a Windows Application Project, and added a web reference, and in the
web reference, I found
the URL Behavior property, but my real application is for smart devices, and
I am in the exact location, on the
web reference, and there is NO url behavior???. Does this means I cant have
a dinamic URL for
smar devices..?

Thanks.
> Right click on your webservice in the VS.net gui and select properties. One
> of the URL Behavior, set it to dynamic. Your app will then have an
[quoted text clipped - 13 lines]
> >
> > Thanks.
Wayne - 29 Jun 2004 12:10 GMT
This was written by ELP in another message:

> In addition to the config file solution, you can also use the Url property
> of your web service proxy. This property can be set at run-time so you can
> for example have a settings dialog box in your client application where
> you'll be able to change the Url of your web service should it be moved to
> another server.

According to the help, Webserver.URL is supported by .net compact framework,
so you should be able to get an instance of your webservice and then set the
url property. This should give you the dynamic URL that you need. I've not
tried it as of yet.

Thanks
Wayne

> I added a Windows Application Project, and added a web reference, and in the
> web reference, I found
[quoted text clipped - 25 lines]
> > >
> > > Thanks.
Elp - 24 Jun 2004 21:19 GMT
> We have created a webservice, and in out test server everyting works fine,
> but when we want to move it to our
> production server, we have ti change IP in the webreference properties, and
> rebuild our application.
> Is there a way to do this dinamically so we dont have to recompile our
> application each time we change IP or server?

In addition to the config file solution, you can also use the Url property
of your web service proxy. This property can be set at run-time so you can
for example have a settings dialog box in your client application where
you'll be able to change the Url of your web service should it be moved to
another server.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.