473,473 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing Webservice from Server Without rebuilding

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.
Nov 21 '05 #1
5 4011
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
"Carlos Hernandez" <ca****@integrasofthn.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 21 '05 #2
Elp

"Carlos Hernandez" <ca****@integrasofthn.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
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.
Nov 21 '05 #3
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.
"Wayne" <ws*****@NoLandSpamstar.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
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
"Carlos Hernandez" <ca****@integrasofthn.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
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.


Nov 21 '05 #4
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.
"Wayne" <ws*****@NoLandSpamstar.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
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
"Carlos Hernandez" <ca****@integrasofthn.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
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.


Nov 21 '05 #5
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
"Carlos Hernandez" <ca****@integrasofthn.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl... 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.
"Wayne" <ws*****@NoLandSpamstar.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
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
"Carlos Hernandez" <ca****@integrasofthn.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
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.



Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Emanuel Marciniak | last post by:
Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio...
3
by: John Baker | last post by:
Hi: I have developed a series of complex queries against a table named "timesheetsnew". These queries work fine. I now wish to apply exactly the same queries to an identically formatted table...
5
by: Daniel Rimmelzwaan | last post by:
Hello all, I don't know what to do anymore, I thought I was not coding my stuff correctly, but I am having problems with Visual Studio it seems. When I create a new webservice on my local...
1
by: Samridhi Kumar Shukla | last post by:
I am facing technical difficulti in using server connection control because we cannot change the path once fixed .. one way is to edit the code of the form generated code but though it allow to...
24
by: Nikolay Petrov | last post by:
In my WebService I have structure Structure myStr1 Dim text as String Dim Key as Byte() End Structure and a Web Method, containing Function which retruns data as this Structure My qustion...
7
by: Robbert van Geldrop | last post by:
Hello, I have a problem in a C# client that consumes a webservice which is wrapped by WSE 2.0 sp3: The WebService works fine but very rarely my client comes in a state where every call to the...
4
by: Trapulo | last post by:
I've a webservice with a string parameter. I call this webservice passing a string that is 1129 chars length. On the webservice, the received string is 1146 length (I tested sizes with...
5
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.