Yes! My client was built using axis1.3 too. I had to access the 2d array using the code I posted: <complexTypeVariable>.getParameters(i).getItem()[j]
Whereas I want <complexTypeVariable>.getParameters(i,j) The problem is, afaik, the use of ArrayOf_xsd_string to describe the 2nd dimension of the array. The client generates the ArrayOf_* source from wsdl and this class includes a getter, setter for the array it wraps around. Therefore I have to use getItem() to get the array back from the 2nd dimension... As I said earlier, maybe there's something wrong with my methods? -----Original Message----- From: Julien Wajsberg [mailto:[EMAIL PROTECTED] Sent: 17 January 2006 17:20 To: [email protected] Subject: Re: axis1.3 support for 2D arrays Did you actually try a client code with this WSDL ? I think both dimension are correctly serialized... ArrayOf_* is just a name. Rutherford, Matthew a écrit : >What im looking for is the 2D array to be defined in terms of >org.apache.axis.encoding.ser.ArraySerializerFactory. At the moment, >only 1 dimension of the array is serialized like this, with the other >serialized using an ArrayOf_xsd_string class. This means in my client >code I have to reference the array using complexTypeVariable.getParameters(i).getItem(). > >I'd like it 'clean' so that both dimensions are serialised using >ArraySerializerFactory, thus removing the need for me to call getItem() >on the ArrayOf_xsd_string. I call this clean as I am opening up an >application via this web services api for other teams & technologies >(.NET) to utilise, thus my reason for not wanting clients to have to >make arbitrary getItem() calls. > >Maybe I do not need to do this, maybe there's another way perhaps? > >-----Original Message----- >From: Julien Wajsberg [mailto:[EMAIL PROTECTED] >Sent: 17 January 2006 09:14 >To: [email protected] >Subject: Re: axis1.3 support for 2D arrays > >Rutherford, Matthew a écrit : > > > >>Hi >>I have a complex data type that I need to generate wsdl for via Axis. >>It contains a 2D array of type String. So far, I have not been able to >>generate the wsdl correctly. >>It ends up as: >> >>(...) >> >>What am I missing? Or does Axis not support wsdl generation for 2D arrays? >> >> >> > >What's the problem ? It seems good to me... > ------ > > >----------------------------------------------------------------------- >--------- The information contained herein is confidential and is >intended solely for the addressee. Access by any other party is >unauthorised without the express written permission of the sender. If >you are not the intended recipient, please contact the sender either >via the company switchboard on +44 (0)20 7623 8000, or via e-mail >return. If you have received this e-mail in error or wish to read our >e-mail disclaimer statement and monitoring policy, please refer to >http://www.drkw.com/disc/email/ or contact the sender. 3167 >----------------------------------------------------------------------- >--------- > > > > -------------------------------------------------------------------------------- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 --------------------------------------------------------------------------------
