From kingsley at localyokelmedia.com Tue Apr 1 13:50:00 2014 From: kingsley at localyokelmedia.com (Kingsley Kerce) Date: Tue, 1 Apr 2014 09:50:00 -0400 Subject: [Xml-compile] Including type attributes in a SOAP call Message-ID: Hello, 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? Thank you, Kingsley -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at overmeer.net Tue Apr 1 14:04:16 2014 From: mark at overmeer.net (Mark Overmeer) Date: Tue, 1 Apr 2014 16:04:16 +0200 Subject: [Xml-compile] Including type attributes in a SOAP call In-Reply-To: References: Message-ID: <20140401140416.GU5163@moon.overmeer.net> * 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