Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / July 2004

Tip: Looking for answers? Try searching our database.

Web Service Versions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shaji Sethu - 16 Jul 2004 07:21 GMT
Hello All,
I have a question that I have been grapling with for sometime. I have
a web service that has been developed by using xsd schema and then
generating a WSDL with the included schema. The WSDL then is converted
to server side stub which is then implemented. Now the problem is the
web service has been deployed and we need to change the functionality
a bit. So it means changes to the xsd schemas. How do we change the
web services such that we can add new functionalty without breaking
the old clients. One way would be to version the XSD using namespace,
if we do that will all the clients using the older web service
continue to work. If anyone has any ideas or have solved this problem
previously I would appreciate your help.
Richard Thombs - 16 Jul 2004 15:18 GMT
I ended up tagging my .asmx files with a 'Vx' suffix, so I have
TeamHavenMobileV1.asmx, TeamHavenMobileV2.asmx etc, etc.

Each new version started off as a direct copy of the code and then code
modified to add whatever new methods I wanted, thus ensuring that the old
service remained untouched.

R.
Shaji Sethu - 18 Jul 2004 02:32 GMT
> I ended up tagging my .asmx files with a 'Vx' suffix, so I have
> TeamHavenMobileV1.asmx, TeamHavenMobileV2.asmx etc, etc.
[quoted text clipped - 4 lines]
>
> R.
Thanks Richard to your response. The issue i have is that I approached
web service from a different angle. Instead of creating a class and then
exposing it as a web service I created all the schemas (xsd) and then
manually create a WSDL and finally created a server stub from this to
make the web service. In this approach the change management is highly
dependent on the XML schemas and if I take the normal approach and
version the schemas using namespace it breaks backward
compatibailty.....so kind on in a roack and hard place and need a
lateral thought to get out of this.

/Shaji
Shaji Sethu - 27 Jul 2004 00:20 GMT
>> I ended up tagging my .asmx files with a 'Vx' suffix, so I have
>> TeamHavenMobileV1.asmx, TeamHavenMobileV2.asmx etc, etc.
[quoted text clipped - 16 lines]
>
> /Shaji
Any views from MS on what is the best practice to do this sort of stuff.

/Shaji Sethu
BjörnHolmberg - 31 Jul 2004 21:07 GMT
Hello Shaji!

Seems that .net proxies does not perform a validation against the wsdl (and xsd)
found at the webservice endpoint. Because of this it's possible to add new
functionality without breaking existing clients. If you need a more formal
approach, check up on Programming .NET Components by Juval Löwy. The ideas you
might need are in appendix A. The corresponding code example "Interface-based
web services" can be found at: http://www.idesign.net.

Regards
Bjorn

> > I ended up tagging my .asmx files with a 'Vx' suffix, so I have
> > TeamHavenMobileV1.asmx, TeamHavenMobileV2.asmx etc, etc.
[quoted text clipped - 15 lines]
>
> /Shaji

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.