Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 78899
Status: new
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Request: use a sane default serializer when none is available
I'm using a WSDL with a complex type defined. Via http://plosquare.blogspot.ca/2009/03/debugging-serialization-in-soaplite.html, I discovered that that this complex type is not being serialized properly - it is ending up as xsi:nil="true". I found that using this serializer made things work: sub SOAP::Serializer::as_MyComplexType { my ($self, $value, $name, $type, $attr) = @_; return [$name, { 'xsi:type' => $type, %$attr }, $value]; } Since this is about as generic as it can get, I would suggest using this as a fallback serializer if nothing better can be found.