I am using doc/lit wrapped. I actually would prefer *not* to have to use the wrappers.
But I am having another problem where axis is throwing a NPE when I try to return an
array of org.w3c.dom.Elements. Since I have not yet been able to sort that out, I figured
I could go the wrapper approach, but then I ran into this trouble. I am able to force the
generatation of the wrappers with the -w flag to the command-line approach, but not with
the ant task.
The above-mentioned NPE is really my problem, and I am just stumped. It must be user
error, but I just can't find it. I was going to report it as a bug, but my simplified
test case didn't exhibit the problem. So I completely rebuilt my wsdl starting with the
simplified test case version, even used the test case server code, and I get the NPE...
Caused by: java.lang.NullPointerException
at org.apache.axis.utils.ArrayUtil.getArrayComponentPD(ArrayUtil.java:153)
at org.apache.axis.utils.ArrayUtil.internalIsConvertable(ArrayUtil.java:116)
at org.apache.axis.utils.ArrayUtil.isConvertable(ArrayUtil.java:96)
at
org.apache.axis.encoding.TypeMappingImpl.getSerializer(TypeMappingImpl.java:334)
Thanks,
Linus
[EMAIL PROTECTED] wrote:
Linus,
Why do you want the array wrapper?
You may need to use a different doc type, what type are you using?
-----Original Message-----
From: Linus Kamb [mailto:[EMAIL PROTECTED]
Sent: Friday, July 15, 2005 3:54 PM
To: [email protected]
Subject: wsdl2java not producing array wrappers
I am trying to pass arrays of things using wrapper elements (ArrayOf<foo>).
However, I cannot get java2wsdl (called via the axis-wsdl2java ant task) to
generate the wrapper element for arrays of xsd:strings or
org.w3c.dom.Element (apachesoap:Element)
objects. It produces wrappers for other complex elements.
Any thoughts?
Thanks,
Linus