this wsdl works in axis2-1.4 to generate all classes wsdl2Java -ss -g -uri SiteDTO.wsdl
you'll probably want to hand tweak services.xml notice the replacement of <!-- attribute ref='soapenc:arrayType' wsdl:arrayType='impl:SiteDTO[]'/ --> with <xsd:complexType name='SiteDTO' minOccurs='0' maxOccurs='unbounded' nillable='true'> Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: RE: Array question Date: Thu, 11 Sep 2008 16:26:44 -0500 From: [EMAIL PROTECTED] To: [email protected] Thanks for your help! Marc From: Martin Gainty[mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 20085:14 PM To: [email protected] Subject: RE: Array question sounds like the service faulted pls supply the wsdl so we can try Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official businessof Sender. This transmission is of a confidential nature and Sender does notendorse distribution to any party other than intended recipient. Sender doesnot necessarily endorse content contained within this transmission. Subject: RE: Array question Date: Thu, 11 Sep 2008 15:51:48 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Martin, Thanks for theinput but it didn’t work.Here’s the codewith the additional line you indicated I needed.I’m stillgetting: org.xml.sax.SAXException: No deserializer for {urn:DemandResponse}SiteDTO call.setOperationName( 'getSites' ); call.setReturnType( XMLType.SOAP_ARRAY ); call.registerTypeMapping(ArrayList.class, XMLType.SOAP_ARRAY, newArraySerializerFactory(), new ArrayDeserializerFactory()); call.addParameter('tokenId', org.apache.axis.Constants.XSD_INT, javax.xml.rpc.ParameterMode.IN); call.addParameter('username', org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN); sites = (ArrayList) call.invoke( new Object[] { tokenId, 'mhorv1' } ); From: Martin Gainty[mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 20085:51 PM To: [email protected] Subject: RE: Array question Marc- you'll need to associate the ArrayList java type to SOAP_ARRAY via call.registerTypeMapping(ArrayList.class, XMLType.SOAP_ARRAY, newArraySerializerFactory(), new ArrayDeserializerFactory());<BR> then the call with a cast to ArrayList should work..<BR> ArrayList results = (ArrayList)call.invoke(...);<BR> BTW: the version of your axis implementation is REALLY outdated you might want to think about updating to Axis 2..<BR> HTH<BR> Martin<BR> NB: be sure to do the registerTypeMapping for all the params as well..<BR> ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official businessof Sender. This transmission is of a confidential nature and Sender does notendorse distribution to any party other than intended recipient. Sender doesnot necessarily endorse content contained within this transmission. Subject: Array question Date: Mon, 8 Sep 2008 15:22:17 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] there. I was wondering if someone could provide me with an exampleof (or point me in the direction of) a java client which calls a web servicethat returns an array of a bean.I’m using Axis 1.4 dated April 22, 2006 and have alreadyresearched this question only to find the majority of the responses wererelated to earlier releases. The relevant portion of my client code is: call.setOperationName('getSites' );call.setReturnType(XMLType.SOAP_ARRAY );call.addParameter('tokenId', org.apache.axis.Constants.XSD_INT, javax.xml.rpc.ParameterMode.IN);call.addParameter('username', org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);Object[] obj =(Object[]) call.invoke( new Object[] { tokenId, 'test' } ); I’m receivingthe following exception:org.xml.sax.SAXException: No deserializer for {urn:DemandResponse}SiteDTO I’m sure I’m missing something in the client but I don’tknow/understand what it is.I wrote the original interface and implementation and thenused Java2Wsdl and Wsdl2Java to generate the wsdl, server side code and wsdd. Thanks,Marc Get more out of the Web. Learn 10 hidden secrets of WindowsLive. Learn Now Stay up to date on your PC, the Web, and your mobile phonewith Windows Live. See Now _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
SiteDTO.wsdl
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
