of custom objects from a web service using
Axis2?
Thanks
From: Chinmoy Chakraborty [mailto:cch...@gmail.com]
Sent: Tuesday, June 23, 2009 10:20 PM
To: axis-user@ws.apache.org
Subject: Re: Problem serializing array of complex types
Are you using Object array
Are you using Object array and putting your custom objects there? I tried
with custom object array and it worked.
e.g Suppose you have objects of class A. Just use A[] and it will work.
Chinmoy
On Wed, Jun 24, 2009 at 1:04 AM, Besecker, Kyle
wrote:
> I created a web-service and it works great
I created a web-service and it works great for low level complexity
stuff. However, when I attempt to send arrays from the service, I begin
to run into trouble.
Initially I attempted to send an array of custom objects. I was able to
send a single object, but when I attempted to use an array, I got
sets the XmlType in the following way:
>> elemField.setXmlType(new javax.xml.namespace.QName("http://...";,
>> "ArrayOfY"));
>> typeDesc.addFieldDesc(elemField);
>>
>> the newer ones do it like this:
>> elemField.setXmlType(new
ld);So the prefix "ArrayOf" is missing. If I add "ArrayOf" manually to the
generated code everything works great. So I think it is not a schemaquestion.Thanx,Grmlfz> --- Urspr�ngliche Nachricht ---> Von: iksrazal <
[EMAIL PROTECTED]>> An: axis-user@ws.apache.org>
hing works great. So I think it is not a schema
question.
Thanx,
Grmlfz
> --- Urspr�ngliche Nachricht ---
> Von: iksrazal <[EMAIL PROTECTED]>
> An: axis-user@ws.apache.org
> Betreff: Re: Problem serializing array of complex types
> Datum: Thu, 29 Dec 2005 16:26:13 -0200
>
> Grml
add "ArrayOf" manually to the
generated code everything works great. So I think it is not a schema
question.
Thanx,
Grmlfz
> --- Ursprüngliche Nachricht ---
> Von: iksrazal <[EMAIL PROTECTED]>
> An: axis-user@ws.apache.org
> Betreff: Re: Problem serializing array o
Grmlfz,
I'm not understanding your problem. I've used those evil soapenc arrays quite
a bit. What's does or doesn't it do? Your wsdl files are the same always,
right ? What you show different is seemingly schema stuff, which doesn't have
anything to do with wsdl2java.
Try clarifying your que
Hi!
I'm using WSDL2Java to generate Java-files from a customers WSDL-files.
These WSDL-files use complex types containing arrays of other complex types.
Till now we used 1.1RC2 to generate the Java-files. This worked well
serializing the array to somthing like this:
M