473,792 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web service reference

I have a web app that is referencing several web services. When I make a change to a web service (add, modify a method), I have to 'Add Web Reference' for the changes to take affect. If I do 'Update web reference' the web app does not see the web service changes.

The web services are on the same box as I'm developing on, the .wsdl files are pointing to the correct location, but the changes aren't happening unless I do 'Add Web Reference'.
Does anyone have or had this same issue? If so how did you resolve it?
Aug 20 '07 #1
3 2096
"Mike" <Mi**@community .nospam.comwrot e in message
news:O9******** ******@TK2MSFTN GP05.phx.gbl...
I have a web app that is referencing several web services. When I make a
change to a web service (add, modify a method), I have to 'Add Web
Reference' for the changes to take affect. If I do 'Update web reference'
the web app does not see the web service changes.

The web services are on the same box as I'm developing on, the .wsdl files
are pointing to the correct location, but the changes aren't happening
unless I do 'Add Web Reference'.
Does anyone have or had this same issue? If so how did you resolve it?

------------
What are your web references pointing to? The .asmx files, the .wsdl files,
or .asmx?WSDL?

Also, have you built and deployed the changed web services before trying to
update the references?
--
John Saunders [MVP]

Aug 20 '07 #2
Also, have you built and deployed the changed web services before trying to
update the references? Yes, I build the service then run it test and test it
prior to 'updating' it in the web app.

What are your web references pointing to? The .asmx files, the .wsdl files,
or .asmx?WSDL? When I add the web reference via the IDE, its adding the
.disco, disomap, and .wsdl file.
the reference in the web.config file is pointing to the .asmx file, but
shouldn't it point to the wsdl file?
I just got put on this project last week, so everything was already setup by
the lead developer on this project, and I'm fixing things as I go, and I
noticed that as I was fixing the web service and trying to access it via the
web app.

"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uG******** ******@TK2MSFTN GP02.phx.gbl...
"Mike" <Mi**@community .nospam.comwrot e in message
news:O9******** ******@TK2MSFTN GP05.phx.gbl...
I have a web app that is referencing several web services. When I make a
change to a web service (add, modify a method), I have to 'Add Web
Reference' for the changes to take affect. If I do 'Update web reference'
the web app does not see the web service changes.

The web services are on the same box as I'm developing on, the .wsdl files
are pointing to the correct location, but the changes aren't happening
unless I do 'Add Web Reference'.
Does anyone have or had this same issue? If so how did you resolve it?

------------
What are your web references pointing to? The .asmx files, the .wsdl
files, or .asmx?WSDL?

Also, have you built and deployed the changed web services before trying
to update the references?
--
John Saunders [MVP]

Aug 20 '07 #3
"Mike" <Mi**@community .nospam.comwrot e in message
news:uu******** ******@TK2MSFTN GP05.phx.gbl...
Also, have you built and deployed the changed web services before trying
to
update the references? Yes, I build the service then run it test and test
it prior to 'updating' it in the web app.

What are your web references pointing to? The .asmx files, the .wsdl
files,
>or .asmx?WSDL? When I add the web reference via the IDE, its adding the
.disco, disomap, and .wsdl file.
the reference in the web.config file is pointing to the .asmx file, but
shouldn't it point to the wsdl file?
The web.config should point to the .asmx, since that is the URL that will be
used at runtime. I was asking what you see in the Properties of the web
reference itself.

Another thing I thought of is how are you running the web service? You want
to make sure that the web reference is referring to the exact same service
that you've deployed.

For instance, one problem I've had is when the web service was running on a
dynamic port through the Visual Studio.Net internal web server, when my web
reference has been pointing to a fixed location within an IIS web site. This
fits the pattern you posted about: when you do an Add Web Reference, you are
pointing to the real, updated server. When you change it and do an update,
the updated service is running in the internal server, but your web
reference is still pointing to the original, unchanged service.

At design-time, the web reference URL is used to retrieve the WSDL file
which is used to create the proxy classes. At run-time, it is used to talk
to the real service. The trick is to notice when these two are not both
talking to the same service.
--
John Saunders [MVP]

Aug 21 '07 #4

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

Similar topics

4
2950
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading 'http://mydomain.com:port/webservice.asmx' The operation has timed-out (I've tried with and without using a separate port for the service) The weird thing is the page does show up on the left side of the screen listing the available methods but the Add...
5
1666
by: Derek Martin | last post by:
I am creating a windows service and have added a reference to a DLL project that I have created. That DLL file is correctly referenced in both a windows app and a web app, all in the same solution, so I thought I could do the same for a service project. However, after successfully adding the reference and making sure the namespaces were correct, I cannot see any of my public methods and functions from the DLL file. Is there anything...
3
5076
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb). I changed the data type for the structure that contains the XML data from the default "String" to "xml.xmldocument" to enable easy filling of the data. my client code creates an XML document class, fills the data using standard xml dom...
12
6533
by: Noam | last post by:
I had originally written a program as a c# console application. The program used a reference that I wrote in c++. Later I was told to re-write the application as a windows service. When the service would start up, as soon as it accessed the reference (by instantiating a class within the reference), the service would crash. In the event viewer I saw that it throw a System.IO.FileNotFoundException saying that the c++ reference was missing...
3
2507
by: Grant Schenck | last post by:
Hello, I have a Windows Service developed in C# .NET. I'm making it a remote server and I can, via an IPC Channel, expose methods and call them from a client. However, I now want my remoted object to be able to invoke a method on my server object and given that the object is built in a C# Class DLL shared between the client and server I'm not sure how to get access to the server object from the remoted object. So, what techniques...
3
3141
by: =?Utf-8?B?Q3JhaWc=?= | last post by:
Background: I am building a Windows enterprise application that has separate assemblies for UI, business logic/rules, and data access (i.e. typical N-tier architecture). Many of the assemblies reference a "name and address web service," which gives me validation lists for name honorifics (e.g. Dr, Mr, Miss, Mrs), name suffixes (e.g. Sr, Jr, III), and City/State/ZIP combos. The same name and address web service also can save and retrieve...
20
6753
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1 xxx = new localhost.Service1(); localhost is not recognized by the compiler.
5
2563
by: cj | last post by:
Back some time ago I was playing with a little app in VB 2005 that used a google web service to get search results. I was rebuilding this app in 2008 today. I added the web service http://api.google.com/googlesearch.wsdl and then down in the code I was typing Dim myGoogle As New Google.GoogleSearchService only to find GoogleSearchService was no longer a method. I looked on google for documentation and it appears they no longer offer...
0
1391
balabaster
by: balabaster | last post by:
Hi all, I'm creating a class factory and a bunch of adapters to allow in house applications to communicate with mobile applications over different cellular networks. I've got my class factory and interface definition in a single assembly. The class factory will instantiate the correct adapter for communication with a mobile device at runtime. We're doing it this way because we won't know which cellular network we're communicating over...
0
9670
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10430
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4111
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 we have to send another system
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2917
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.