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 / October 2006

Tip: Looking for answers? Try searching our database.

Enumeration in WebService

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sadagopan - 12 Oct 2006 23:46 GMT
Hi,
I am thinking of returning enumerated data types in my web service response.
My enumeration values are driven from a database lookup table. The table get
new lookup records and these need to be enumerated to the clients.
The problem I face is , any time when these new records are added , the WSDL
changes and the client needs to update the reference , if not there is a
compatibility issue.
The other option I thought of supporting different versions of webservice so
that the compatibility is not broken.
Questions
1. Is it a good option to return enumerated values in this type of scenario
2. If no to question1 what will be the recommened solution for these type of
lookup scenario
3. If yes to question1 how do we handle compatibility issue
Appreciate your help
thanks
John Saunders - 13 Oct 2006 04:13 GMT
> Hi,
> I am thinking of returning enumerated data types in my web service
[quoted text clipped - 16 lines]
> lookup scenario
> 3. If yes to question1 how do we handle compatibility issue

Salesforce.com has a web service based API. It allows customers to very
thoroughly customize the application, adding new columns to tables, and even
adding new tables and relations between tables. Naturally, the WSDL changes
to reflect this.

They have an area on their web site where you can download your own,
customer-specific WSDL, up to date with whatever changes you've made. You
could do the same, or have a web service operation which returns the current
WSDL.

As to enumerated values, they're ok (once you deal with a dynamic WSDL). Be
aware, though that XML Schema doesn't do enumertions like a programming
language does. One can enumerate the acceptable values for a particular
attribute or element, but that is only a constraint on the lexical space.
The enumerated values don't have integers associated with them.

John

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.