473,756 Members | 7,817 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Part 2: How to Update a Web Service

Hi all,

How does one update a web service? Should be insanely simple but when I
copy an updated version (with new webmethods) to the server, the test page
("The following operations are supported...") still shows links to the old
versions' methods. It's as though it cached a copy of the old one and
refuses to let it go.

What file am I not updating or not putting in the right place?

TIA,

John
Nov 18 '05 #1
7 1601
John,

If you right click on the web service in your project's references folder
one of the options in the popup menu is: "Update Web Reference"

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
Hi all,

How does one update a web service? Should be insanely simple but when I
copy an updated version (with new webmethods) to the server, the test page
("The following operations are supported...") still shows links to the old
versions' methods. It's as though it cached a copy of the old one and
refuses to let it go.

What file am I not updating or not putting in the right place?

TIA,

John

Nov 18 '05 #2
Hey, thanks for hopping in! Unfortunately, it doesn't solve the problem.
Whether I update or delete then re-add, it still shows the available methods
as those that it had the first time it was deployed to the server. However,
adding a reference to the local copy DOES show the updated version.

I've copied all files and the bin subfolder to the server, but it still is
returning something that references the old copy???

- John
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:uk******** *****@TK2MSFTNG P12.phx.gbl...
John,

If you right click on the web service in your project's references folder
one of the options in the popup menu is: "Update Web Reference"

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
Hi all,

How does one update a web service? Should be insanely simple but when I
copy an updated version (with new webmethods) to the server, the test page ("The following operations are supported...") still shows links to the old versions' methods. It's as though it cached a copy of the old one and
refuses to let it go.

What file am I not updating or not putting in the right place?

TIA,

John


Nov 18 '05 #3
Sometimes, the correct methods don't show up until the project is compiled
(even if you've updated the webreference). You might also want to try
enabling the "Show all files" option, expanding the webservice reference,
right-clicking on reference.map, and choosing "Run Custom Tool".

Also, do the correct methods show up on the test form on the server?

Regards,

Mun
--
Munsifali Rashid
http://www.munsplace.com/


"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:eY******** ******@TK2MSFTN GP11.phx.gbl...
Hey, thanks for hopping in! Unfortunately, it doesn't solve the problem.
Whether I update or delete then re-add, it still shows the available methods as those that it had the first time it was deployed to the server. However, adding a reference to the local copy DOES show the updated version.

I've copied all files and the bin subfolder to the server, but it still is
returning something that references the old copy???

- John


Nov 18 '05 #4
Hi & Thanks Mun,

I'm pretty certain there's something on the server that I don't get. This
is my first web service so it's probably something stupid as well. I've
done rebuilds, updates and reupdates of references--all with no luck.

The correct methods DO NOT show up on the test form on the server. I've
tried various things that are admittedly shots in the dark but have inlcuded
overwriting the individual files up to the entire folder and its bin folder.
Every time the test page shows the two methods that existed when first
deployed. Checking the wsdl using the <url>?wsdl shows the old methods as
well???

- John
"Munsifali Rashid" <mun.news@#Remo veToReply#cordl essmouse.co.uk> wrote in
message news:eg******** *****@tk2msftng p13.phx.gbl...
Sometimes, the correct methods don't show up until the project is compiled
(even if you've updated the webreference). You might also want to try
enabling the "Show all files" option, expanding the webservice reference,
right-clicking on reference.map, and choosing "Run Custom Tool".

Also, do the correct methods show up on the test form on the server?

Regards,

Mun
--
Munsifali Rashid
http://www.munsplace.com/


"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:eY******** ******@TK2MSFTN GP11.phx.gbl...
Hey, thanks for hopping in! Unfortunately, it doesn't solve the problem. Whether I update or delete then re-add, it still shows the available

methods
as those that it had the first time it was deployed to the server.

However,
adding a reference to the local copy DOES show the updated version.

I've copied all files and the bin subfolder to the server, but it still is returning something that references the old copy???

- John


Nov 18 '05 #5
If you change the name of the asmx and the class, does it make a difference?

You could be behind a firewall that is caching very aggressively?

"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:e$******** ******@TK2MSFTN GP10.phx.gbl...
Hi & Thanks Mun,

I'm pretty certain there's something on the server that I don't get. This
is my first web service so it's probably something stupid as well. I've
done rebuilds, updates and reupdates of references--all with no luck.

The correct methods DO NOT show up on the test form on the server. I've
tried various things that are admittedly shots in the dark but have
inlcuded
overwriting the individual files up to the entire folder and its bin
folder.
Every time the test page shows the two methods that existed when first
deployed. Checking the wsdl using the <url>?wsdl shows the old methods as
well???

- John
"Munsifali Rashid" <mun.news@#Remo veToReply#cordl essmouse.co.uk> wrote in
message news:eg******** *****@tk2msftng p13.phx.gbl...
Sometimes, the correct methods don't show up until the project is
compiled
(even if you've updated the webreference). You might also want to try
enabling the "Show all files" option, expanding the webservice reference,
right-clicking on reference.map, and choosing "Run Custom Tool".

Also, do the correct methods show up on the test form on the server?

Regards,

Mun
--
Munsifali Rashid
http://www.munsplace.com/


"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:eY******** ******@TK2MSFTN GP11.phx.gbl...
> Hey, thanks for hopping in! Unfortunately, it doesn't solve the problem. > Whether I update or delete then re-add, it still shows the available

methods
> as those that it had the first time it was deployed to the server.

However,
> adding a reference to the local copy DOES show the updated version.
>
> I've copied all files and the bin subfolder to the server, but it still is > returning something that references the old copy???
>
> - John




Nov 18 '05 #6
Hmm, very weird.

If you haven't done so already, try clearing your browser cache before
viewing the test page... I've often found it to be the source of some
strange problems.

Also, try physically deleting the files and then viewing the test form.
This *should* cause a 404 - page not found error, but sometimes, IIS does
some weird caching, which causes deleted files to keep showing.

I also agree with Ken's suggestion. Try renaming the asmx and class, and
trying it again, in case it's being cached somewhere else in your network
(eg. firewall).

Hope this helps.

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:e$******** ******@TK2MSFTN GP10.phx.gbl...
Hi & Thanks Mun,

I'm pretty certain there's something on the server that I don't get. This
is my first web service so it's probably something stupid as well. I've
done rebuilds, updates and reupdates of references--all with no luck.

The correct methods DO NOT show up on the test form on the server. I've
tried various things that are admittedly shots in the dark but have inlcuded overwriting the individual files up to the entire folder and its bin folder. Every time the test page shows the two methods that existed when first
deployed. Checking the wsdl using the <url>?wsdl shows the old methods as
well???

- John
"Munsifali Rashid" <mun.news@#Remo veToReply#cordl essmouse.co.uk> wrote in
message news:eg******** *****@tk2msftng p13.phx.gbl...
Sometimes, the correct methods don't show up until the project is compiled
(even if you've updated the webreference). You might also want to try
enabling the "Show all files" option, expanding the webservice reference, right-clicking on reference.map, and choosing "Run Custom Tool".

Also, do the correct methods show up on the test form on the server?

Regards,

Mun
--
Munsifali Rashid
http://www.munsplace.com/


"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message news:eY******** ******@TK2MSFTN GP11.phx.gbl...
Hey, thanks for hopping in! Unfortunately, it doesn't solve the
problem. Whether I update or delete then re-add, it still shows the available

methods
as those that it had the first time it was deployed to the server.

However,
adding a reference to the local copy DOES show the updated version.

I've copied all files and the bin subfolder to the server, but it
still is returning something that references the old copy???

- John



Nov 18 '05 #7
Thanks, yet again.

I have a knack for creating strange issues :) I have to coordinate this
with the people who are actually hosting the site. Thanks for the ideas.

- John

"Munsifali Rashid" <mun.news@#Remo veToReply#cordl essmouse.co.uk> wrote in
message news:#T******** ******@TK2MSFTN GP11.phx.gbl...
Sounds like some strange things are happening on that machine... ;-)

Everything you've done seems to be correct, and should work. As a bit of a brute-force solution, I'd suggest trashing virtual directory (in IIS) on the server, and making sure that all files are deleted. Check this by trying to surf the webservice test form, which should give you a 404 error. Then
re-create the virtual directory from scratch, and re-upload a basic working HelloWorld test webservice (i.e. you could just uncomment the default code, compile, and upload). Test this using the test form. Once this is working, delete all the test webservice files from the server, upload your 'real'
webservice files, ad try the test form again... which should hopefully work :-)

Once the test form for your real webservice is working as intended, you
should be able to add the webreference your visual studio project, and get
the correct methods showing up.

Hope this helps :-)

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"John Spiegel" <js******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Thanks Ken and Mun!

Renaming just the asmx and asmx.cs files along with changing the asmx's
codebehind reference to match up to the new .asmx.cs name had no effect.
Next changing the namespace in the asmx.cs and associated asmx reference
gave the error:

Could not create type 'SignupServices X.RecentSignup'

All I had done was just add an X to the end of the namespace.

Along the lines of what Mun suggested, I did the following:
1. Copy asmx & codebehind to a new folder on the development box and

built
up a mirror project.
2. Changed the namespace.
3. Built and ran until it's working in devl environment.

I then moved the files to the web server (in the orders as listed below)
trying after each step. Each time I received the error Could not create
type 'SignupServices X.RecentSignup' .
4. FTP asmx, asmx.cs and bin folder to new folder on server along with
copying web.config.
5. FTP .resx
6. FTP global.asax and global.asax.cs
7. FTP glogal.asax.res x: same error
8. FTP AssemblyInfo.cs
9. FTP rest including the other created subfolders.

Am I misunderstandin g or forgetting what I did before or in theory should that have been (more than) enough for it to be deployed?

Thanks again,

John


Nov 18 '05 #8

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

Similar topics

3
3270
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old scripts working on a new server with the most recent version of PHP. I've pretty much taken care of all the various errors that were popping up. Most only pointed out out non-fatal undefined or assumed variables. I've been able to cure most of...
2
3071
by: joo | last post by:
Hi! I need to implement something similar to "Automatic Update" feature which we see in windows 2000. We need this support for our software, basically to provide the software update. How can I exploit .Net technology to implement this? Any idea on this? Thanks.
1
476
by: Eric Keij | last post by:
Hello, I have written a windows service in .NET which i want update. Is there an easy way to let a windows service update itself? I've written some test programs with the AppUpdater component and this is working perfect for 'normal' programs but can't be used for services. Maybe it's possible to write some modifications to the AppUpdater component to find the latest version and manually start the service?? Anybody aware of some methods...
2
14957
by: André Heuer | last post by:
Hi, i want to write a .net class that can update my ip address at the dyndns service (http://www.dyndns.org). When I open the page https://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=MyHostNameHere&myip=MyCurrentIpHere&wildcard=on I get the response nochg 80.146.122.175 which means "No change". IP hasn´t changed. Fine.
4
2099
by: henry | last post by:
Hi all, I'm building a website which provides contents that only work for some browser types and versions. I know I can get most of the client browser information using HttpBrowserCapabilities class, but I can't find a way to determine IE update version or service pack number. Any ideas? TIA Henry
9
3991
by: Ron | last post by:
New discovery. If I take a perfectly good database, and "compact/repair" on it with Access 2000 (seems to be at multiple sites--I've tried it with my system here, at another office on an entirely different network), it damages the file somehow. The user's machine that did the compact/repair can see the file fine. But any networked user can't get in. I can double click on a good database file from any user (over the network) and it...
0
9851
NeoPa
by: NeoPa | last post by:
Introduction : I have come across a problem, on a number of occasions, where PCs under my control fail to load new updates successfully. This is true whether they are attempting to apply via the Automatic Updates facility built into the OS or whether accessing the MS Update site directly. Reason : The problem is often associated with DLL files not being correctly set up for some reason. Most of the suggested fixes involve registering a...
11
6067
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know if that's what's causing the behavior or not. It seems like the Update button should at least do something. When the Edit button is clicked, the grid goes into Edit mode and the Cancel button takes the grid out of Edit mode. So, I don't get what...
2
11082
by: Peter | last post by:
Is there a way to automatically update a Windows .NET service, kind of like Click-Once or put a file in the directory and the service would restart it's self and replace the executables or at least replace its DLLs without restarting? I know it's posible, (anything is posible) but is there anything already in place? Thank You Peter
0
9275
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
9873
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
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
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
7248
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...
0
5142
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.