|Perl: the Markov chain saw|
Suppressing nil attribute in empty SOAP tagby ptum (Priest)
|on Oct 12, 2011 at 22:24 UTC||Need Help??|
ptum has asked for the
wisdom of the Perl Monks concerning the following question:
I'm using SOAP::Lite in a client which consumes a SOAP service over which I have no control. Traditionally, I've used code like this:
When the method doesn't call for any arguments, I just pass undef in $datagram, and it worked just fine, producing XML like this:
Recently, the vendor has updated their web service, and they no longer accept the xsi:nil="true" attribute.
How can I suppress that nil attribute using SOAP::Lite, so that my tag looks more like this?
No good deed goes unpunished. -- (attributed to) Oscar Wilde