[Xml-compile] Including type attributes in a SOAP call
Mark Overmeer
mark at overmeer.net
Tue Apr 1 14:04:16 GMT 2014
* Kingsley Kerce (kingsley at localyokelmedia.com) [140401 13:50]:
> Using XML::Compile::WSDL11, I can load a .wsdl and invoke
> $wsdl->explain($call_name, PERL => 'INPUT', ...
> such that the types of the call's parameters are properly described in
> detail, e.g.,
> # is a xsd:long
>
> Making the call results in a SOAP message that does not include type
> information in the attributes, e.g., xsi:type="xsd:long". If explain() is
> aware of the types, I would (naively) think that the call is also aware of
> and able to include the types. How may I adjust my configuration so that
> when a call is made the type information is included in the attributes?
The concept of xsi:type is ugly, and usually not required: the schema
tells both sides what the type of the element is.
If you are unlucky enough to require the use of xsi:type, then you
have to tell XML::Compile where to look for those elements, which
alternatives can be expected on which place. Start reading in
XML::Compile::Schema section "Handling xsi:type"
--
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