XMas generates XML and WSDL files from an XSD one
XSD 2 XML
Select or drag&drop an XSD file.
The XSD file is validated during the loading phase.
If the validation file is ok, the XSD 2 XML feature is ready to produce an XML file demo. The file produced is based on the Selected XML root element and the options chosen.

Choose one between the interfaces contained
and decide how to produce the output.
With Just Structure selected is created the XML structure without occurrences and data simulation
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated with XMas by Nick4Name (https://www.nick4name.eu) -->
<ZTEST_LIGEST xmlns:tns="urn:nick4name.eu:test"
xmlns="urn:nick4name.eu:test">
<I_BANUM/>
<I_BANFN/>
<I_BEDAT/>
<T_RDA>
<item>
<BNFPO/>
<MATNR/>
<MENGE/>
<MEINS/>
</item>
</T_RDA>
</ZTEST_LIGEST>
Unselecting Just Structure is produced an XML without data simulation but considering the occurrences
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated with XMas by Nick4Name (https://www.nick4name.eu) -->
<ZTEST_LIGEST xmlns:tns="urn:nick4name.eu:test"
xmlns="urn:nick4name.eu:test">
<I_BANUM/>
<I_BANFN/>
<I_BEDAT/>
<T_RDA>
<item>
<BNFPO/>
<MATNR/>
<MENGE/>
<MEINS/>
</item>
<item>
<BNFPO/>
<MATNR/>
<MENGE/>
<MEINS/>
</item>
</T_RDA>
</ZTEST_LIGEST>
Selecting Data Simulation, elements, and attributes are filled with random data based on data types and restrictions.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated with XMas by Nick4Name (https://www.nick4name.eu) -->
<ZTEST_LIGEST xmlns:tns="urn:nick4name.eu:test"
xmlns="urn:nick4name.eu:test">
<I_BANUM>-1482740340</I_BANUM>
<I_BANFN>vVP</I_BANFN>
<I_BEDAT>2050-70-70</I_BEDAT>
<T_RDA>
<item>
<BNFPO>25837</BNFPO>
<MATNR>okxAScqGSWGLuzCArluR</MATNR>
<MENGE>974760514.129</MENGE>
<MEINS>XH</MEINS>
</item>
</T_RDA>
</ZTEST_LIGEST>
With Anonymize XML the XML is generated without namespaces
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated with XMas by Nick4Name (https://www.nick4name.eu) -->
<ZTEST_LIGEST>
<I_BANUM>-1648222006</I_BANUM>
<I_BANFN>nY</I_BANFN>
<I_BEDAT>8726-04-23</I_BEDAT>
<T_RDA>
<item>
<BNFPO>80745</BNFPO>
<MATNR>mlcLnJrFkXCGgSKcjhcAQOixFWLQtf</MATNR
<MENGE>676361219.181</MENGE>
<MEINS>j</MEINS>
</item>
</T_RDA>
</ZTEST_LIGEST>
With Validate by XSD, the generated XML file is prepared to be validated by the XSD file
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated with XMas by Nick4Name (https://www.nick4name.eu) -->
<ZTEST_LIGEST p1:noNamespaceSchemaLocation="GenericRequestReply_test_rda.xsd"
xmlns:p1="http://www.w3.org/2001/XMLSchema-instance">
<I_BANUM>1421431750</I_BANUM>
<I_BANFN>Ogp</I_BANFN>
<I_BEDAT>1313-31-48</I_BEDAT>
<T_RDA>
<item>
<BNFPO>06187</BNFPO>
<MATNR>uKXroKtIcYlgvPpgleqGSJo</MATNR>
<MENGE>1816404673.180</MENGE>
<MEINS>l</MEINS>
</item>
</T_RDA>
</ZTEST_LIGEST>
If the XSD file is not customized for validation, XMas can adapt it for you

<?xml version="1.0" encoding="utf-8"?>
<!--Removed: targetNamespace=urn:nick4name.eu:test-->
<!--Removed: xmlns=urn:nick4name.eu:test-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsd:element name="ZTEST_LIGEST">
...
</xsd:schema>
Known limitations
If the XSD contains features that are not yet supported, the file is not imported and an error is notified
Currently:
Features supported | Features not yet supported |
---|---|
Root elements definition by reference (type attribute) or without reference (xsd:complexType under xsd:element, nested) xsd:all xsd:attribute @ref xsd:complexType xsd:simpleType xsd:restriction xsd:simpleContent xsd:complexContent xsd:simpleContent xsd:extension xsd:enumeration | xsd:choice xsd:group xsd:attributeGroup xsd:union xsd:… |
XSD 2 WSDL
If you want to generate a WSDL file from the XSD one select XSD 2 WSDL
You have:
- To set the direction of the interface under Root elements. If there is more than one interface you can also set just one, in inbound mode, to prepare the WSDL for an asynchronous scenario;
- To confirm or set a Namespace;
- To set a service name, Service name;
- Optionally, you can set up 2 endpoints;
- You can decide to produce an indented or linearized output, Save linearized.

Known limitations
WSDL generation support just one xsd:schema structure with one or two root elements. The root elements exceeding are ignored.
Always updated
XMas checks for updates at every run.
You can download XMas from here.
Lascia un commento