Question
1
Replies
252
Views
Lanit
Posted: November 20, 2018
Last activity: January 16, 2019
Closed
How to generate ValueList/ValueGroup property from XSD?
Hi everyone!
We generate data model from XSD and we want to have a property in data model that must be a ValueList or ValueGroup.
Is there any option to generate such a property from XSD? Which data type we need to use in XSD to achieve this?
Hi Fedotochkin,
We had one service which was returning response in following manner:
---
Response
->Policies
->POSCode
----
POSCode here is value list, for this structure, the XSD that has been Generated is as below, Please check this if it works in your case.
------------------------------------------------------------------
<xsd:element ibmSchExtn:docRoot="true" name="GetPolicyByPOS">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Sys" type="tns:SysRequestType"/>
<xsd:element maxOccurs="1" minOccurs="1" name="POSCode" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
-----------------------------------------------------------------