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.