Today I downloaded SoapUI (http://downloads.sourceforge.net/soapui) to test out the SOAP interface of SugarCRM.
I pointed SoapUI at http://demo.sugarcrm.com/sugarcrm/soap.php?wsdl and let it do its thing.
However, I got errors like these:
The attribute 'parent_id' cannot be introduced by restriction since it is not allowed in the base type kbtag_list@http://www.sugarcrm.com/sugarcrm.
The attribute 'name' cannot be introduced by restriction since it is not allowed in the base type kbtag_list@http://www.sugarcrm.com/sugarcrm.
So I downloaded the wsdl file locally, and removed these 2 offending sections here:
<xsd:complexType name="kbtag_list">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute name="id" type="xsd:string"/>
<xsd:attribute name="parent_id" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="kbtag_docs_list">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute name="id" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
That fixed the problem and it parsed the wsdl file and created a project for me. I was then able to send requests.
So my question is, why does the wsdl file use 2 attributes which aren't allowed by the kbtag_list base type? What's going on?
Thanks!


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks