473,396 Members | 2,011 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,396 software developers and data experts.

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 1580
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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:%2***************@TK2MSFTNGP12.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*****@aboutfortunate.com> wrote in message
news:uk*************@TK2MSFTNGP12.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:%2***************@TK2MSFTNGP12.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:eY**************@TK2MSFTNGP11.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@#RemoveToReply#cordlessmouse.co.uk> wrote in
message news:eg*************@tk2msftngp13.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:eY**************@TK2MSFTNGP11.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:e$**************@TK2MSFTNGP10.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@#RemoveToReply#cordlessmouse.co.uk> wrote in
message news:eg*************@tk2msftngp13.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:eY**************@TK2MSFTNGP11.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:e$**************@TK2MSFTNGP10.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@#RemoveToReply#cordlessmouse.co.uk> wrote in
message news:eg*************@tk2msftngp13.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message news:eY**************@TK2MSFTNGP11.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@#RemoveToReply#cordlessmouse.co.uk> wrote in
message news:#T**************@TK2MSFTNGP11.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******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:%2****************@tk2msftngp13.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 'SignupServicesX.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 'SignupServicesX.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.resx: same error
8. FTP AssemblyInfo.cs
9. FTP rest including the other created subfolders.

Am I misunderstanding 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
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...
2
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...
1
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...
2
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...
4
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...
9
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...
0
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...
11
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...
2
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...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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,...
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
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...

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.