Does the WCF framework support the XSD IDREF restriction?

Posted by Gerard on Stack Overflow See other posts from Stack Overflow or by Gerard
Published on 2010-06-11T11:29:10Z Indexed on 2010/06/11 11:32 UTC
Read the original article Hit count: 288

Filed under:
|

A nice feature in XSD is the IDREF restriction, e.g.:

<xs:restriction base="xs:IDREF">
  <xs:pattern value="[0-9a-zA-Z\-]+"/>
</xs:restriction>

I used this restriction with great benefit in a Java JAXWS-project. An object serialized in a SOAP XML datamodel can hold a reference (pointer) to another object in the same SOAP message.

I want to try the same approach in a C# WCF-project, can it be done? On the web site Data Contract Schema Reference I can see e.g. Id ignored, Ref forbidden, but I am not sure whether I understand what that means.

© Stack Overflow or respective owner

Related posts about wcf

Related posts about xsd