[ https://issues.apache.org/jira/browse/AXIS2-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515198 ]
Deepal Jayasinghe commented on AXIS2-3009: ------------------------------------------ How can we guess what the issues is without looking at the WSDL file, you could do one of the following two steps - Download Axis2 1.3-RC2 and test with that - Attach the WSDL file Thanks Deepal > Problem in returning comples type by WebService > ----------------------------------------------- > > Key: AXIS2-3009 > URL: https://issues.apache.org/jira/browse/AXIS2-3009 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: client-api > Affects Versions: 1.2 > Environment: Axis2 -1.2 > Reporter: Amit Panwar > > Hi > I am using axis2-1.2 . When i m trying to call the webservice it > giving a RunTimeException. > Exception in thread "main" java.lang.RuntimeException: > java.lang.RuntimeException: Unexpected subelement Text > at > com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46923) > at > com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.findMatchingProducts(IlsAdminPublicAPIWSHttpportStub.java:3380) > at > com.agilis.ils.ws.clientcode.IlsProductAdminWSClient.main(IlsProductAdminWSClient.java:203) > Caused by: java.lang.RuntimeException: Unexpected subelement Text > at > com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub$FindMatchingProductsResponse$Factory.parse(IlsAdminPublicAPIWSHttpportStub.java:33121) > at > com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46861) > I think this is beacuse of returning a complex type from webservice . > > if (reader.isStartElement() && new > javax.xml.namespace.QName("http://ws.ils.agilis.com/xsd","return").equals(reader.getName())) > I think this code is giving error. > If anybody have any idea , then please reply. > > Thanks in advance. > > Thanks and regards > Amit Panwar -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]