I've been having problems serializing a bean that contains an array of other
beans. It generates a soap packet like:
<properties xmlns:enc="http://www.w3.org/2001/06/soap-encoding" xmlns:ns3=""
enc:arrayType="ns3:properties[0]">
</properties>
The Java serializer generates (with the same bean):
<properties xsi:type="ns3:SWSProperty" xsi:nil="true"/>
I get the error from the service:
Exception: org.xml.sax.SAXParseException: The value of the attribute
"prefix="xmlns",localpart="ns3",rawname="xmlns:ns3"" is invalid. Prefixed
namespace bindings may not be empty.
Now I think the problem is the xmlns:ns3="". I've found the code in param.cpp
that's generating the weird namespace and I'm working on a patch. Just want
someone to confirm that what I'm seeing is incorrect, and/or whether maybe we
should have detected that the original array pointer was NULL as is being
handled by the java client.
---
Wayne Johnson, | There are two kinds of people: Those
3943 Penn Ave. N. | who say to God, "Thy will be done,"
Minneapolis, MN 55412-1908 | and those to whom God says, "All right,
(612) 522-7003 | then, have it your way." --C.S. Lewis
---------------------------------
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.