Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web services :Facing problem on setting value of xs:ID

 
manishkumarlal cs
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created a web service, the xsd contains one element thats of type xs:ID. On the client side i am setting the request object, although all the attributes gets the value assigned, but the value corresponding to xs:ID is not set and giving NULL.

Can anyone help me in this regard.

Thanks
Manish
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by manishkumarlal cs:
the xsd contains one element thats of type xs:ID.


The XML specification recommends that the ID attribute type should only be used on attributes (for compatibility reasons). Furthermore any value assigned to it must begin with a letter or underscore.

What are you hoping to gain by using a xsd:ID over a simple and straightforward xsd:string?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic