Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

error in testing a ws

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I generated a ws using ibm libraries. Also i generated a java client using ibm libraries too. It works fine. But, when i generated an axis client, i got this error:

23-oct-2009 10:12:58 org.apache.axis.client.Call invoke
SEVERE: Exception:
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:188)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.tdp.impl.ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.procesarOrdenTrabajo(ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.java:233)
at com.tdp.impl.ServicioProvisorPlantaInternaProxy.procesarOrdenTrabajo(ServicioProvisorPlantaInternaProxy.java:45)
at com.tdp.impl.ClientePruebaWS.main(ClientePruebaWS.java:48)
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
faultActor: null
faultDetail:
stackTrace: 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:188)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.tdp.impl.ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.procesarOrdenTrabajo(ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.java:233)
at com.tdp.impl.ServicioProvisorPlantaInternaProxy.procesarOrdenTrabajo(ServicioProvisorPlantaInternaProxy.java:45)
at com.tdp.impl.ClientePruebaWS.main(ClientePruebaWS.java:48)


org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
at org.apache.axis.client.Call.invoke(Call.java:1874)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.tdp.impl.ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.procesarOrdenTrabajo(ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.java:233)
at com.tdp.impl.ServicioProvisorPlantaInternaProxy.procesarOrdenTrabajo(ServicioProvisorPlantaInternaProxy.java:45)
at com.tdp.impl.ClientePruebaWS.main(ClientePruebaWS.java:48)
Caused by: 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:188)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
... 5 more

This is my wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://impl.tdp.com/ws/messages" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://impl.tdp.com/ws/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:documentation>
<wsdl:appinfo source="WMQI_APPINFO">
<MRWSDLAppInfo imported="true">
<binding hasEncoding="false" imported="true" name="ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Binding" originalBindingStyle="document"/>
</MRWSDLAppInfo>
</wsdl:appinfo>
</wsdl:documentation>
<wsdl:types>
<xsd:schema xmlns:mrm="http://impl.tdp.com/ws/messages" targetNamespace="http://impl.tdp.com/ws/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="ws/messages/MSG_ORDTRABXML_REQRESP.xsd"/>
</xsd:schema>
</wsdl:types>

<wsdl:message name="procesarOrdenTrabajo_in">
<wsdl:part element="tns:TdPRq" name="TdPRq"/>
</wsdl:message>
<wsdl:message name="procesarOrdenTrabajo_out">
<wsdl:part element="tns:TdPRs" name="TdPRs"/>
</wsdl:message>

<wsdl:portType name="ServicioProvisorPlantaInterna">
<wsdl:operation name="procesarOrdenTrabajo">
<wsdl:input message="tns:procesarOrdenTrabajo_in" name="procesarOrdenTrabajo_Input"/>
<wsdl:output message="tns:procesarOrdenTrabajo_out" name="procesarOrdenTrabajo_Output"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Binding" type="tns:ServicioProvisorPlantaInterna">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="procesarOrdenTrabajo">
<soap:operation/>
<wsdl:input name="procesarOrdenTrabajo_Input">
<soap:body parts="TdPRq" use="literal"/>
</wsdl:input>
<wsdl:output name="procesarOrdenTrabajo_Output">
<soap:body parts="TdPRs" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Service">
<wsdl:port binding="tns:ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Binding" name="ServicioProvisorPlantaInterna">
<soap:address location="http://localhost:9080/PruebasWS/services/ServicioProvisorPlantaInterna"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Its running on a was 6.0.
I was looking for a solution but all said that i check my wsdl again. I did it many times but i have not got a solution. Hope you can help me. thanks
 
angel sar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any ideas? any help? Is it an error to generate a client using a diferent library?
Please I need your help.
Thanks.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

angel sar wrote:Any ideas? any help? Is it an error to generate a client using a diferent library?


Well, you can try that yourself by using, for instance, wsimport in the Java 6 JDK.
Best wishes!
 
Greenhorn
Posts: 2
Android Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what
 
reply
    Bookmark Topic Watch Topic
  • New Topic