DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9659>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9659

SimpleDeser cannot handle structured data!





------- Additional Comments From [EMAIL PROTECTED]  2002-06-25 20:25 -------
I'm experiencing a similar problem with deserialization of complex data types.  
Here's the WSDL:

<?xml version="1.0" encoding="UTF-8" ?> 
<wsdl:definitions targetNamespace="http://echo.services"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:impl="http://echo.services-impl"; 
xmlns:intf="http://echo.services"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:tns1="http://types.echo.services"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<wsdl:types>
<schema targetNamespace="http://types.echo.services"; 
xmlns="http://www.w3.org/2001/XMLSchema";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"; /> 
<complexType name="MyComplexType">
<sequence>
<element name="simpleItem" nillable="true" type="xsd:string" /> 
</sequence>
</complexType>
<element name="MyElement" nillable="true" type="tns1:MyComplexType" /> 
</schema>
</wsdl:types>
<wsdl:message name="echoRequest">
<wsdl:part element="tns1:MyElement" name="MyElement" /> 
</wsdl:message>
<wsdl:message name="echoResponse">
<wsdl:part element="tns1:MyElement" name="MyElement" /> 
</wsdl:message>
<wsdl:portType name="Echo">
<wsdl:operation name="echo" parameterOrder="MyElement">
<wsdl:input message="intf:echoRequest" name="echoRequest" /> 
<wsdl:output message="intf:echoResponse" name="echoResponse" /> 
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="EchoServiceSoapBinding" type="intf:Echo">
<wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"; /> 
<wsdl:operation name="echo">
<wsdlsoap:operation soapAction="" /> 
<wsdl:input name="echoRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://types.echo.services"; use="literal" /> 
</wsdl:input>
<wsdl:output name="echoResponse">
<wsdlsoap:body namespace="http://types.echo.services"; use="literal" /> 
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="EchoService">
<wsdl:port binding="intf:EchoServiceSoapBinding" name="EchoService">
<wsdlsoap:address 
location="http://localhost:8080/SimpleApp/services/EchoService"; /> 
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Trace:


HTTP/1.1 500 Internal Server Error

Server: WebSphere Application Server/4.0

Content-Type: text/xml; charset=utf-8

Content-Language: en

Connection: close



<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode 
xmlns:ns1="http://xml.apache.org/axis/";>ns1:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: Invalid element in 
services.echo.types.MyComplexType - MyElement</faultstring>
   <detail>
    <ns2:stackTrace 
xmlns:ns2="http://xml.apache.org/axis/";>org.xml.sax.SAXException: Invalid 
element in services.echo.types.MyComplexType - MyElement&#xd;
        at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild
(BeanDeserializer.java:271)&#xd;
        at org.apache.axis.encoding.DeserializationContextImpl.startElement
(DeserializationContextImpl.java:859)&#xd;
        at org.apache.axis.message.SAX2EventRecorder.replay
(SAX2EventRecorder.java:199)&#xd;
        at org.apache.axis.message.MessageElement.publishToHandler
(MessageElement.java:644)&#xd;
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:201)
&#xd;
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:259)
&#xd;
        at org.apache.axis.providers.java.RPCProvider.processMessage
(RPCProvider.java:161)&#xd;
        at org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:289)&#xd;
        at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:71)&#xd;
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)&#xd;
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)&#xd;
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:287)&#xd;
        at org.apache.axis.transport.http.AxisServlet.doPost
(AxisServlet.java:559)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&#xd;
        at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)&#xd;
        at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)&#xd;
        at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)&#xd;
        at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)&#xd;
        at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)&#xd;
        at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)&#xd;
        at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)&#xd;
        at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)&#xd;
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)&#xd;
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)&#xd;
        at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
(WebAppInvoker.java:91)&#xd;
        at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:184)&#xd;
        at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:67)&#xd;
        at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:122)&#xd;
        at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
(OSEListener.java:315)&#xd;
        at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
(HttpConnection.java:60)&#xd;
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:323)&#xd;
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)&#xd;
        at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)&#xd;
</ns2:stackTrace>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

And version of Axis:

Apache Axis version: beta2+
Built on Jun 24, 2002 (06:30:32 EDT)

Reply via email to