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
PraticaFromXml.Struct.wsdl
Description: XML document
