scratching my head on WCF ... I've got XML messages where the children of could be anything, e.g.
<Test1Root>
<CaseNo></CaseNo>
<Activity></Activity>
<DataFields>
<AccountRef></AccountRef>
<PropRef></PropRef>
<User></User>
</DataFields>
</Test1Root>
I've handled this in BizTalk using the xs:any for the
<xs:element name="DataFields">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip" />
</xs:sequence>
</xs:complexType>
</xs:element>
But I'm struggling to see how to handle this in a WCF [DataContract]
I tried using both svcutil.exe and xsd.exe to create the classes, and they both give the main elements (CaseNo, Activity, etc.) but neither seems to handle the xs:any of DataFields ...
- svcutil has DataFields as an XmlElement
- xsd has it as a class, but with an Any property of type XmlElement []
Is it possible to get a better handling of the child elements ?