You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Wayne Johnson <wd...@yahoo.com> on 2007/03/01 15:27:10 UTC
Problem serializing a complex array
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.
Re: Problem serializing a complex array
Posted by Wayne Johnson <wd...@yahoo.com>.
Thanks for the response. I've opened several bugs for all the patches I currently have. It all appears to be working now, so I'm hoping that this is the last of them.
Thanks.
Nadir Amra <am...@us.ibm.com> wrote: Wayne,
Seems to be a problem. When creating JIRA and patch, please attach sample
wsdl and soap response. thanks.
Nadir K. Amra
Wayne Johnson wrote on 03/01/2007 08:27:10 AM:
> I've been having problems serializing a bean that contains an array
> of other beans. It generates a soap packet like:
>
> xmlns:ns3="" enc:arrayType="ns3:properties[0]">
>
>
> The Java serializer generates (with the same bean):
>
>
> 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
---
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
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
Re: Problem serializing a complex array
Posted by Nadir Amra <am...@us.ibm.com>.
Wayne,
Seems to be a problem. When creating JIRA and patch, please attach sample
wsdl and soap response. thanks.
Nadir K. Amra
Wayne Johnson <wd...@yahoo.com> wrote on 03/01/2007 08:27:10 AM:
> 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org