I have the exact same issue. If you search on Google, you will find some bug reports related to this. Not sure whether it has been fixed as I am getting it with the latest 1.5 I believe version.
-- Kind Regards Schalk Neethling From: Bartolomeo Nicolotti [mailto:[email protected]] Sent: 02 October 2009 03:15 PM To: [email protected] Cc: Marco Damilano; Livio Costamagna Subject: axis wsdl not working with axis2 Hello, we've generated a webservice and related attached wsdl with axis(not 2) Eclipse 3.2.2 plugin. The web service is receiving one string and returning 3 strings, very simple. Then we've used axis2 wsdl2java to generate the client with: wsdl2java.sh --noBuildXML -S ../../JavaSource -ns2p http://Servizi.Pratica.APWebServices=com.siap.APPraticaXmlClient -uri ./PraticaFromXml.wsdl The request is correctly received from the server side, the response is received, as the sniffer report, by the client, but we got: Thu Oct 01 15:13:11 CEST 2009:generaPraticaDaRes.percProvvigioneTotale20091001151201403-1 caught an exception: 24442574 org.a pache.axis2.AxisFault e.toString():org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement importaReturn, e.getMessage():org.apache.axis2.databinding.ADBException: Unexpected subelement importaReturn org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) com.siap.APPraticaXmlClient.PraticaFromXmlServiceStub.fromOM(PraticaFromXmlServiceStub.java:2200) com.siap.APPraticaXmlClient.PraticaFromXmlServiceStub.importa(PraticaFromXmlServiceStub.java:191) com.siap.TPUtility.TPPraticaAtlanteUtil.generaPraticaDaSIAPDocumentable(TPPraticaAtlanteUtil.java:56) com.siap.DPKWebServices.Util.DynPkgOTAServiceUtil.generaPraticaDaSIAPDocumentable(DynPkgOTAServiceUtil.java:1001) com.siap.DPKWebServices.OTAMessages.WSMH_OTA_HotelRes_Literal.handleMessage(WSMH_OTA_HotelRes_Literal.java:166) com.siap.DPKWebServices.OTAMessages.WSMD_SerialSimple.dispatchWebService_Message(WSMD_SerialSimple.java:31) com.siap.DPKWebServices.Util.DynPkgOTAServiceDispacher.dispatchWebService_Message_internals(DynPkgOTAServiceDispacher.java:15 3) com.siap.DPKWebServices.Util.DynPkgOTAServiceDispacher.dispatchWebService_Message(DynPkgOTAServi Analogous messages with -d jaxbri -d xmlbeans and also with doc-literal, doc-wrapped, rpc-encoded servers. We've tried also with ASP.net and we got the same behaviour. The only client that worked was the one generated from the wsdl from axis(not2) Eclipse 3.2.2 plugin. The problem seems that the response type <element name="importaReturn" type="tns1:StructImportOut"/> is not recognized. Could someone have a look at the wsdl and tell us why? Many thanks Best regards -- Bartolomeo Nicolotti SIAP s.r.l. www.siapcn.it v.S.Albano 13 12049 Trinità (CN) Italy ph:+39 0172 652553 centralino: +39 0172 652511 fax: +39 0172 652519 <http://www.marbil.co.za> AfriGIS e-mail facility may not be used for the distribution of chain letters or offensive email. AfriGIS hereby distances itself from and accepts no liability for the unauthorized use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. AfriGIS furthermore disclaims liability for any unauthorized instruction for which permission was not granted. Required as per Sec 50 Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607. AfriGIS e-mail facility may not be used for the distribution of chain letters or offensive email. AfriGIS hereby distances itself from and accepts no liability for the unauthorized use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. AfriGIS furthermore disclaims liability for any unauthorized instruction for which permission was not granted. Required as per Sec 50 Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607.
