[ http://issues.apache.org/jira/browse/AXIS2-644?page=comments#action_12378159 ]
Siamak Haschemi commented on AXIS2-644: --------------------------------------- Hello. First I'd like to congratulate you for your 1.0 Version! Well, runnig WSDL2Java for client and server for the attached WSDL file still generates code that doesn't work. The Server now responses <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Client</faultcode> <faultstring>Data binding error</faultstring> <detail> <Exception>org.apache.axis2.AxisFault: Data binding error; nested exception is: java.lang.RuntimeException: Data binding error at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.haschemi.InheritanceMessageReceiverInOnly.invokeBusinessLogic(InheritanceMessageReceiverInOnly.java:53) at org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.RuntimeException: Data binding error at org.haschemi.InheritanceMessageReceiverInOnly.fromOM(InheritanceMessageReceiverInOnly.java:109) at org.haschemi.InheritanceMessageReceiverInOnly.invokeBusinessLogic(InheritanceMessageReceiverInOnly.java:45) ... 20 more Caused by: java.lang.NullPointerException at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3041) at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3058) at org.apache.xmlbeans.impl.store.Locale.doNamespaces(Locale.java:900) at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1135) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231) at org.example.www.common.SaveRequestDocument$Factory.parse(SaveRequestDocument.java:128) at org.haschemi.InheritanceMessageReceiverInOnly.fromOM(InheritanceMessageReceiverInOnly.java:99) ... 21 more </Exception> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> Seems to be reladed to AXIS2-649 http://issues.apache.org/jira/browse/AXIS2-649 I would be very happy if I could use the (existing) possibilities of XMLBeans handling abtract-types and implementation of those with Axis2! Thank you very much, Siamak Haschemi > [Axis2]Deserialization of XMLBeans > ----------------------------------- > > Key: AXIS2-644 > URL: http://issues.apache.org/jira/browse/AXIS2-644 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: databinding > Environment: Axis2 RC5 > Reporter: Siamak Haschemi > Attachments: inheritance.wsdl > > Hello. > I have a problem with extension-types. > I used a litte WSDL-file to test the possibilities of extension-types. Well, > the WSDL-file is very simple. It contains: > - a Basetype "abstract-product-type" > - a conrete-type "beer-type" > - a INOnly request "save" > Generating client and server with WSDL works and a added the following lines > to the skeleton: > public void save(org.example.www.inheritance.SaveRequestDocument param0) { > final SaveRequest saveRequest = param0.getSaveRequest(); > final AbstractProductType abstractProductType = saveRequest.getProduct(); > System.out.println("InheritanceSkeleton.save() product = " + > abstractProductType); > } > The request from the client is > <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Header/> > <soapenv:Body> > <saveRequest xmlns="http://www.example.org/inheritance/"> > <product xmlns:inh="http://www.example.org/inheritance/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="inh:beer-type"> > <name>Klausthaler</name> > </product> > </saveRequest> > </soapenv:Body> > </soapenv:Envelope> > And the output of the server is "InheritanceSkeleton.save() product = null" > So, please can you take a look at my files? > Thank you very much, > Siamak Haschemi -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
