[Xml-compile] Unexpected return type extension ?

Mark Overmeer mark at overmeer.net
Mon Nov 18 10:58:12 GMT 2013


* DEIGNAN Ciaran (C.DEIGNAN at rsd.com) [131118 10:37]:
> Is there a way to tell XML::Compile that "extensions of expected
> types are ok" ?

Not in the generic case.  That is the disadvantage of being a "compiler":
you need to know what to expect beforehand.  That's also an advantage:
the chance that you receive something unexpected is smaller... that's a
good thing for interfaces.

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

>From your example, I cannot see whether this uses substitutionGroup's
(which is simple to use, automagically works... generate example template
to see how) or xsi:type.  For the latter see xsiType() in
XML::LibXML::Cache and
http://search.cpan.org/~markov/XML-Compile-1.39/lib/XML/Compile/Schema.pod#Handling_xsi:type
(which does lack the reference to the ::Cache::xsiType()... I'll add
that for the next release)
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list