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

Enumeration in WebService

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
Oct 12 '06 #1
1 1363
"Sadagopan" <Sa*******@discussions.microsoft.comwrote in message
news:A7**********************************@microsof t.com...
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
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
Oct 13 '06 #2

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

Similar topics

1
by: Justin Wright | last post by:
I know that I can set up an enumeration as follows ( just typed in quick so may have syntax errors ): <xsd:simpleType name="colors"> <xsd:restriction base="xsd:string"> <xsd:enumeration...
8
by: aevans1108 | last post by:
Greetings I can't seem to inherit enumerated values from a globally defined type in my XML schema. XmlSchema.Compile() doesn't like it. Here's the schema. <?xml version="1.0"...
2
by: Mark | last post by:
Assume you have an enumeration like PhoneType { Home, Business, Cell }. This enumeration corresponds with a lookup/dictionary table in your database like: phone_cd | phone_descr 1 ...
4
by: Marshal | last post by:
Sure... IEnumerable was inconvenient suggesting a separate class to service the enumeration, IEnumerator, and multiple operations: Current, MoveNext, Reset. (I'll warp the definition of "operation"...
1
by: Stefano G. | last post by:
I have a WSDL containing this enumeration type <xsd:simpleType name="item_type_enum"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="VCD"/> <xsd:enumeration value="SVCD"/>...
27
by: Ben Finney | last post by:
Antoon Pardon wrote: > I just downloaded your enum module for python > and played a bit with it. IMO some of the behaviour makes it less > usefull. Feedback is appreciated. I'm hoping to...
3
by: Davidoff | last post by:
Hi, I parse an XML file with a XSD schema. One XmlNode has an attribute whose type is a restriction of xs:string : <xs:simpleType name="stypeDay"> <xs:restriction base="xs:string">...
0
by: news.emn.fr | last post by:
Hello, i got this attribute <xs:attribute name="jour"> <xs:simpleType> <xs:restriction base="stypeJour"> </xs:restriction> </xs:simpleType> </xs:attribute>
3
by: eXt | last post by:
For a realtime-application (half an application at least, kind of a framework) I am working with I need a event managing system and naturally it must be fast. I have defined a set of available...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.