toycannon
14 years agoNew Contributor
Does the free version of soapUI support complextype xsds?
I've created a simple WADL and referenced a xsd that defines a complextype within a complextype but after I load the WADL and attempt to "recreate a default representation for the schema" I do not see the entire structure. For example the WADL looks like the following:
<application xsi:schemaLocation=" http://research.sun.com/wadl/2006/10 wadl.xsd http://localhost/wadl tenants.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tenants="http://localhost/wadl" xmlns="http://research.sun.com/wadl/2006/10">
<grammars>
<include href="tenants.xsd"/>
</grammars>
<resources base="http://mdtnj010ngst.teval.att.com/">
<resource path="/tenants">
<method name="POST" id="Authentication">
<request>
<representation mediaType="application/xml" element="tenants:tenants"/>
</request>
<response status="201">
<representation mediaType="application/xml" element="tenants:tenants"/>
<fault status="401"/>
</response>
</method>
</resource>
</resources>
</application>
and the xsd looks like:
<schema targetNamespace="http://localhost/wadl" elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://localhost/wadl">
<element name="tenants" minOccurs="1">
<complexType>
<element name="name" type="string"/>
<element name="user_ids" minOccurs="1">
<complexType>
<element name="user_id" type="string" maxOccurs="unbounded"/>
</complexType>
</element>
<element name="created-at" type="string"/>
<element name="updated-at" type="string"/>
</complexType>
</element>
</schema>
but when I attempt to recreate the schema I see the following:
<wadl:tenants xmlns:wadl="http://localhost/wadl">
<!--You may enter the following 4 items in any order-->
<name>?</name>
<user_ids/>
<created-at>?</created-at>
<updated-at>?</updated-at>
</wadl:tenants>
I've tried to modify the embedded complexType element to look like the following:
<element name="user_id" type="string" maxOccurs="unbounded"/>
but that makes matters worst. What am I doing wrong or is this not supported in the free version of soapUI.
Thanks
<application xsi:schemaLocation=" http://research.sun.com/wadl/2006/10 wadl.xsd http://localhost/wadl tenants.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tenants="http://localhost/wadl" xmlns="http://research.sun.com/wadl/2006/10">
<grammars>
<include href="tenants.xsd"/>
</grammars>
<resources base="http://mdtnj010ngst.teval.att.com/">
<resource path="/tenants">
<method name="POST" id="Authentication">
<request>
<representation mediaType="application/xml" element="tenants:tenants"/>
</request>
<response status="201">
<representation mediaType="application/xml" element="tenants:tenants"/>
<fault status="401"/>
</response>
</method>
</resource>
</resources>
</application>
and the xsd looks like:
<schema targetNamespace="http://localhost/wadl" elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://localhost/wadl">
<element name="tenants" minOccurs="1">
<complexType>
<element name="name" type="string"/>
<element name="user_ids" minOccurs="1">
<complexType>
<element name="user_id" type="string" maxOccurs="unbounded"/>
</complexType>
</element>
<element name="created-at" type="string"/>
<element name="updated-at" type="string"/>
</complexType>
</element>
</schema>
but when I attempt to recreate the schema I see the following:
<wadl:tenants xmlns:wadl="http://localhost/wadl">
<!--You may enter the following 4 items in any order-->
<name>?</name>
<user_ids/>
<created-at>?</created-at>
<updated-at>?</updated-at>
</wadl:tenants>
I've tried to modify the embedded complexType element to look like the following:
<element name="user_id" type="string" maxOccurs="unbounded"/>
but that makes matters worst. What am I doing wrong or is this not supported in the free version of soapUI.
Thanks