473,383 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Web Reference

I've inherited a c-sharp application that uses a web service to pass
data to the app from a central database. I don't know a whole lot
about web services and am trying to learn.

We're moving the database and web server to a new physical location,
thus diferent servers. My question is this: Do I have to repoint the
web service reference in the application to the new web service
location? Or is there some way to get around this? I would assume it
would have to be repointed and a new version of the app rolled out.
But since I didn't know for sure 100%, I thought I'd ask. Also, this
app was written with the earliest version of c-sharp and Visual
Studio.

Thanks for the insights!
Jennifer Miller

Jun 28 '07 #1
3 1739
On Jun 28, 3:03 pm, Jennifer <J.Evans.1...@gmail.comwrote:
I've inherited a c-sharp application that uses a web service to pass
data to the app from a central database. I don't know a whole lot
about web services and am trying to learn.

We're moving the database and web server to a new physical location,
thus diferent servers. My question is this: Do I have to repoint the
web service reference in the application to the new web service
location? Or is there some way to get around this? I would assume it
would have to be repointed and a new version of the app rolled out.
But since I didn't know for sure 100%, I thought I'd ask. Also, this
app was written with the earliest version of c-sharp and Visual
Studio.
You should be able to just set the Url property of the web service
proxy instance to point at the new server.

Jon

Jun 28 '07 #2
Hi,

"Jennifer" <J.**********@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
I've inherited a c-sharp application that uses a web service to pass
data to the app from a central database. I don't know a whole lot
about web services and am trying to learn.

We're moving the database and web server to a new physical location,
thus diferent servers. My question is this: Do I have to repoint the
web service reference in the application to the new web service
location? Or is there some way to get around this? I would assume it
would have to be repointed and a new version of the app rolled out.
But since I didn't know for sure 100%, I thought I'd ask. Also, this
app was written with the earliest version of c-sharp and Visual
Studio.
What is the earliest version?

You can repoint the references and that would do it (remember to recompile).

Now I have to warn you that we found a problem last week when we tried to
change references like that from developmet to staging and the code kept
going to dev. I do not know how they solve it (I was not part of that team)
but I hear the problem.

Jun 28 '07 #3
Typically what you would do is read the endpoint uri from a setting in your
configuration file, in the appSettings section. At startup, use this to set
the Url property of your webreference (or on each call using the proxy class,
which has a Url property that can be set prior to making a webmethod call).
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Jennifer" wrote:
I've inherited a c-sharp application that uses a web service to pass
data to the app from a central database. I don't know a whole lot
about web services and am trying to learn.

We're moving the database and web server to a new physical location,
thus diferent servers. My question is this: Do I have to repoint the
web service reference in the application to the new web service
location? Or is there some way to get around this? I would assume it
would have to be repointed and a new version of the app rolled out.
But since I didn't know for sure 100%, I thought I'd ask. Also, this
app was written with the earliest version of c-sharp and Visual
Studio.

Thanks for the insights!
Jennifer Miller

Jun 28 '07 #4

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

Similar topics

2
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on...
110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
11
by: Doug | last post by:
Is there any harm in passing an object into a method with the 'ref' keyword if the object is already a reference variable? If not, is there any benefit?
13
by: Abe Frohnman | last post by:
Hello all, I'm passing a reference to a class into the constructor of a form, like so: public MyForm(int count, ref Area myArea) {...} How can I use myArea outside the constructor? Should I...
4
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then...
13
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
51
by: Kuku | last post by:
What is the difference between a reference and a pointer?
27
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
41
by: Summercool | last post by:
Can we confirm the following? also someone said, Java also has "reference" like in C++, which is an "implicit pointer": Pointer and Reference --------------------- I am starting to see what...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.