[Xml-compile] Unexpected return type extension ?

DEIGNAN Ciaran C.DEIGNAN at rsd.com
Mon Nov 18 10:36:40 GMT 2013



Hi Mark and list,



Is there a way to tell XML::Compile that "extensions of expected types are ok" ?



I'm calling a web service called "createNote". It can create different types of node, for example a folder or a record.



The service returns information about the node created. The WSDL says it returns "AbstractNodeType", but in fact it returns a FolderType or a RecordType.

These types are extensions of the AbstractNodeType, for example



<xs:complexType name="FolderType">

<xs:complexContent>

<xs:extension base="tns:AbstractNodeType">

<xs:sequence>

<xs:element name="autoFolder" type="xs:boolean"></xs:element>

<xs:element name="discriminatoryFolder" type="xs:boolean"></xs:element>

<xs:element minOccurs="0" name="closedDate" type="xs:dateTime"></xs:element>

<xs:element minOccurs="0" name="closedReason" type="xs:string"></xs:element>

<xs:element minOccurs="0" name="crPhysicalUid" type="xs:string"></xs:element>

<xs:element minOccurs="0" name="description" type="xs:string"></xs:element>

<xs:element name="manageAutoFolder" type="xs:boolean"></xs:element>

<xs:element minOccurs="0" name="note" type="xs:string"></xs:element>

<xs:element minOccurs="0" name="openedDate" type="xs:dateTime"></xs:element>

<xs:element minOccurs="0" name="openedReason" type="xs:string"></xs:element>

<xs:element minOccurs="0" name="vital" type="xs:boolean"></xs:element>

<xs:element minOccurs="0" name="historical" type="xs:boolean"></xs:element>

<xs:element maxOccurs="unbounded" minOccurs="0" name="storageScale" nillable="true" type="tns:StorageScaleType"></xs:element>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>



On the whole this appears to me to be a "good thing", however it does surprise XML::Compile.

It says



  error: decode error: element `autoFolder' not processed for {http://www.rsd.com/public/governanceManager/recordManagement/v4/schema}createNodeResponse/return/node at /soap:Envelope/soap:Body/ns2:createNodeResponse/return/ns2:node/autoFolder



I'm using

XML-Compile version       1.39

XML-Compile-SOAP version  2.38



Thanks for any pointers,

Ciaran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20131118/3de0cbbe/attachment.htm


More information about the Xml-compile mailing list