Trying to optimize a wsdl file (generated for me by soapcpp2) by subclassing a return object. Works fine in gsoap, but soapui complains when I try to import the wsdl. Here's the relevant snips from the wsdl:
<complexType name="ReturnStatus">
<sequence>
<element name="success" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="locked" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="infoStrings" type="NetManager:ArrayOfstring" minOccurs="1" maxOccurs="1" nillable="false"/>
<element name="returnObject" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="HealthCheckReturnStatus">
<complexContent>
<extension base="NetManager:ReturnStatus">
<sequence>
<element name="returnObject" type="NetManager:healthcheckreturnobject" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
And from the error log:
Fri Jul 25 14:43:12 EDT 2008:ERROR:An error occured [http://192.168.2.39/NetManagerServicesBinding.wsdl:0: error: cos-element-consistent: Type of 'returnObject' is inconsistent with another element with the same name in this content model.], see error log for details
Fri Jul 25 14:43:12 EDT 2008:WARN:Error:
http://192.168.2.39/NetManagerServicesBinding.wsdl:0: error: cos-element-consistent: Type of 'returnObject' is inconsistent with another element with the same name in this content model.
Fri Jul 25 14:43:12 EDT 2008:ERROR:An error occured [com.eviware.soapui.impl.wsdl.support.xsd.SchemaException], see error log for details
Fri Jul 25 14:43:12 EDT 2008:ERROR:Loading of definition failed for [http://192.168.2.39/NetManagerServicesBinding.wsdl]; com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading schema types
Fri Jul 25 14:43:12 EDT 2008:ERROR:An error occured [Error loading schema types], see error log for details
Fri Jul 25 14:43:12 EDT 2008:ERROR:Error loading schema types from
http://192.168.2.39/NetManagerServicesBinding.wsdl, see log for details
Its complaining about the redefinition of returnObject.
Using soapui pro 2.0.2 (due to problems with 2.0.3).
Cheers!
Jon