I think this exception is thrown when the deployment description (wsdd) doesn't 
corresponding to the wsdl description. The client sends a request which is 
different to the expected request. 

I had the same problem too. I solved the problem by deploying the service with 
the actual wsdd file on the server. So ru wsdl2java again an deploy the 
deploy.wsdd.

Christian


-----Ursprüngliche Nachricht-----
Von: Kumar [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 29. Juni 2005 16:27
An: axis-user@ws.apache.org
Betreff: Error on Client or Service Side ?

Hi All,

I have below request and response soap messages. Now, I get an axis
fault when I request the service but  I dont see any error or log
messages generated on the server side when I make the request. Is
there a problem  on the client side itself or on the service side. Can
anyone please clarify what the axis fault means in this context .



request soap message from client
------------------------------------------------------
<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>      
      <capturedList xmlns="http://ws.amex.com/wsdl/api";>         
         <capturedListRequest xmlns="http://ws.amex.com/schema/api";>            
            <pcn-array>a</pcn-array>            
            <pcn-array>b</pcn-array>         
         </capturedListRequest>      
      </capturedList>   
   </soapenv:Body></soapenv:Envelope>
   




axis fault as viewed in tcpmontor response window
------------------------------------------------------------------------------
<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>soapenv:Server.userException</faultcode>
         <faultstring>org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it
was trying to deserialize.</faultstring>
         <detail>
            <ns1:stackTrace
xmlns:ns1="http://xml.apache.org/axis/";>org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected,
in something it was trying to deserialize.      at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:143)
       at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1031)
  at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)    
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
       at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:347)     at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)       at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)       
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) 
at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)    at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)  at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)   at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:653) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)    at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
 at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
        at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
       at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
 at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
       at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
 at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
     at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
   at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
       at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)     
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
  at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
 at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
     at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
 at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
       at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)    
at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)     at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)</ns1:stackTrace>
            <ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/";>330337</ns2:hostname>
         </detail>
      </soapenv:Fault>
   </soapenv:Body></soapenv:Envelope>   




Thanks & Regards,
Kumar.

Reply via email to