[Xml-compile] setting nil attribute with wsdl derived clients
Mark Overmeer
mark at overmeer.net
Wed Jan 7 11:57:28 GMT 2009
* Mark Blackman (m.blackman at fairfx.com) [090107 11:40]:
> I need to submit an explicit NIL for a SOAP parameter, however I'm
> merely using
> the WSDL derived client (via compileClient) and so I'm not sure how to
> encode
> an xsi:nil="true" attribute in the %request hash. any suggestions?
>
> This is the definition of the parameter in the WSDL
>
> <s:element minOccurs="1" maxOccurs="1" name="DateOfBirthFilter"
> nillable="true" type="s:dateTime" />
should work like:
DateOfBirthFilter => 'NIL'
NIL is a special constant. See also tests in t/54nil.t
--
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