Deserialization error:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Hi, On trying to generate Java from a SOAP Response, my code terminates with the following stack trace: 10:33:01 [test1] CTGDIS495I handleException , callreply, org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. 10:33:01 [test1] CTGDIS810E handleException - cannot handle exception , callreply AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}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:147) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1037) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) The parameters passed to getParams() is: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:sy="http://services.ws.itim.ibm.com"; xmlns:my="http://model.ws.itim.ibm.com"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> Name ITEM false Kevin Kovach erglobalid=3282108447695803762,ou=0,ou=people,erglobalid=,ou=Motorists,o=MOTORISTS Person While parsing this SOAP Response, the SOAPBodyElement generated is: http://services.ws.itim.ibm.com";> http://model.ws.itim.ibm.com";> Name ITEM http://model.ws.itim.ibm.com";>false http://model.ws.itim.ibm.com";>Kevin Kovach http://model.ws.itim.ibm.com";>erglobalid=3282108447695803762,ou=0,ou=people,erglobalid=,ou=Motorists,o=MOTORISTS http://model.ws.itim.ibm.com";>Person and it fails with the Deserialization error at the point: Name Could anyone help in understanding why? Is there something wrong with the SOAP Response xmlString? Please help in fixing this. Its really urgent! Thanks in Advance. Archana. -- View this message in context: http://www.nabble.com/Deserialization-error%3Aorg.xml.sax.SAXException%3A-SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize.-tp25377515p25377515.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
t;> >>> > xmlns:tns="urn:TestSearchEngine" >> >>> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; >> >>> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; >> >>> > xmlns:xs="http://www.w3.org/2001/XMLSchema";> >> >>> > >> >>> > >> >>> > > >>> > elementFormDefault="unqualified"> >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > > >>> > name="searchTestRequest"/> >> >>> > > >>> > name="searchTestResponse"/> >> >>> > >> >>> > >> >>> > >> >>> > > >>> > type="tns:TestSearchEngineInterface"> >> >>> > > >>> > transport="http://schemas.xmlsoap.org/soap/http"/> >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > > >>> > name="wsTestsearchdetails"> >> >>> > > >>> > >> >>> > >> location="http://localhost:8080/axis/services/wsTestsearchdetails"/> >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > Anne >> >>> > >> >>> > On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh >> >>> <[EMAIL PROTECTED]> >> >>> > wrote: >> >>> >> >> >>> >> Hi Anne, >> >>> >> >> >>> >> Yes, i need to implement both client and server. as a input >> >>> SOAP >> >>> >> request inside SOAP body payload containing the >> >>> >> element. >> >>> >> >> >>> >> Yes, i have a sample document for the response message >> also. >> >>> >> >> >>> >> >> >>> >> -- some Strings >> >>> >> >> >>> >> >> >>> >> >> >>> >> Now, I am searching for How to Generate java2wsdl and >> >>> wsdl2java >> >>> >> any >> >>> >> tool or command that will able to work wiith Axis 1.3, tomc
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
f the element contains child elements, then you >> will >> >>> > need to redefine the schema for that element. >> >>> > >> >>> > Once you have finalized the WSDL, run wsdl2java with the -s >> option to >> >>> > generate your client stub and server skeleton. It will also >> generate >> >>> a >> >>> > WSDD for you. >> >>> > >> >>> > Anne >> >>> > >> >>> > >> >>> > > >>> > xmlns="http://schemas.xmlsoap.org/wsdl/"; >> >>> > xmlns:tns="urn:TestSearchEngine" >> >>> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; >> >>> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; >> >>> > xmlns:xs="http://www.w3.org/2001/XMLSchema";> >> >>> > >> >>> > >> >>> > > >>> > elementFormDefault="unqualified"> >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > > >>> > name="searchTestRequest"/> >> >>> > > >>> > name="searchTestResponse"/> >> >>> > >> >>> > >> >>> > >> >>> > > >>> > type="tns:TestSearchEngineInterface"> >> >>> > > >>> > transport="http://schemas.xmlsoap.org/soap/http"/> >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > > >>> > name="wsTestsearchdetails"> >> >>> > > >>> > >> >>> > >> location="http://localhost:8080/axis/services/wsTestsearchdetails"/> >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > Anne >> >>> > >> >>> > On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh >> >>> <[EMAIL PROTECTED]> >> >>> > wrote: >> >>> >> >> >>> >> Hi Anne, >> >>> >> >> >>> >> Yes, i need to implement both client and server. as a input >> >>> SOAP >> >>> >> request inside SOAP body payload containing the >> >>> >> ele
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
ed to redefine the schema for that element. > >>> > > >>> > Once you have finalized the WSDL, run wsdl2java with the -s option to > >>> > generate your client stub and server skeleton. It will also generate > >>> a > >>> > WSDD for you. > >>> > > >>> > Anne > >>> > > >>> > > >>> > >>> > xmlns="http://schemas.xmlsoap.org/wsdl/"; > >>> > xmlns:tns="urn:TestSearchEngine" > >>> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > >>> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; > >>> > xmlns:xs="http://www.w3.org/2001/XMLSchema";> > >>> > > >>> > > >>> >>>> > elementFormDefault="unqualified"> > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > >>> > name="searchTestRequest"/> > >>> > >>> > name="searchTestResponse"/> > >>> > > >>> > > >>> > > >>> > >>> > type="tns:TestSearchEngineInterface"> > >>> > >>> > transport="http://schemas.xmlsoap.org/soap/http"/> > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> >>>> > name="wsTestsearchdetails"> > >>> > >>> > > >>> > location="http://localhost:8080/axis/services/wsTestsearchdetails"/> > >>> > > >>> > > >>> > > >>> > > >>> > Anne > >>> > > >>> > On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh > >>> <[EMAIL PROTECTED]> > >>> > wrote: > >>> >> > >>> >> Hi Anne, > >>> >> > >>> >> Yes, i need to implement both client and server. as a input > >>> SOAP > >>> >> request inside SOAP body payload containing the > >>> >> element. > >>> >> > >>> >> Yes, i have a sample document for the response message also. > >>> >> > >>> >> > >>> >> -- some Strings > >>> >> > >>> >> > >>> >> > >>> >> Now, I am searching for How to Generate java2wsdl and > >>> wsdl2java > >>> >> any > >>> >> tool or command that will able to work wiith Axis 1.3, tomcat > >>> 5.5.20. > >>> &g
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
t; > xmlns:tns="urn:TestSearchEngine" >>> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; >>> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; >>> > xmlns:xs="http://www.w3.org/2001/XMLSchema";> >>> > >>> > >>> > >> > elementFormDefault="unqualified"> >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > name="searchTestRequest"/> >>> > >> > name="searchTestResponse"/> >>> > >>> > >>> > >>> > >> > type="tns:TestSearchEngineInterface"> >>> >>> > transport="http://schemas.xmlsoap.org/soap/http"/> >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > name="wsTestsearchdetails"> >>> > >> > >>> > location="http://localhost:8080/axis/services/wsTestsearchdetails"/> >>> > >>> > >>> > >>> > >>> > Anne >>> > >>> > On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh >>> <[EMAIL PROTECTED]> >>> > wrote: >>> >> >>> >> Hi Anne, >>> >> >>> >> Yes, i need to implement both client and server. as a input >>> SOAP >>> >> request inside SOAP body payload containing the >>> >> element. >>> >> >>> >> Yes, i have a sample document for the response message also. >>> >> >>> >> >>> >> -- some Strings >>> >> >>> >> >>> >> >>> >> Now, I am searching for How to Generate java2wsdl and >>> wsdl2java >>> >> any >>> >> tool or command that will able to work wiith Axis 1.3, tomcat >>> 5.5.20. >>> >> and >>> >> java. >>> >> >>> >> There is not a single proper practical example given on Internet >>> for >>> >> Documnet litetal web services with Axis. >>> >> >>> >> Have look into this practically described example to RPC encoded >>> with >>> >> Axis . >>> >> This very helpful. >>> >> http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 >>> >> >>> >> I am searching Same type of example for Documnet litetal web >>> services >>> >> with >>> >> Axis. >>> >> >>> >> Please provide java2wsdl and wsdl2java Tool and Command for >>> Documnet >>> >> litetal web services with Axis. >>> >> any reference, any tutorial, ?? >>> >> >>> >> >>> >> Anne, Thank you very much for your reply. >>> >> >>> >> >>> >> >>> >> >>>
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
gt; >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> > name="searchTestRequest"/> > >> > >> > name="searchTestResponse"/> > >> > > >> > > >> > > >> > >> > type="tns:TestSearchEngineInterface"> > >> > >> > transport="http://schemas.xmlsoap.org/soap/http"/> > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> >>> > name="wsTestsearchdetails"> > >> > >> > > >> > location="http://localhost:8080/axis/services/wsTestsearchdetails"/> > >> > > >> > > >> > > >> > > >> > Anne > >> > > >> > On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh <[EMAIL PROTECTED]> > >> > wrote: > >> >> > >> >> Hi Anne, > >> >> > >> >> Yes, i need to implement both client and server. as a input SOAP > >> >> request inside SOAP body payload containing the > >> >> element. > >> >> > >> >> Yes, i have a sample document for the response message also. > >> >> > >> >> > >> >> -- some Strings > >> >> > >> >> > >> >> > >> >> Now, I am searching for How to Generate java2wsdl and > >> wsdl2java > >> >> any > >> >> tool or command that will able to work wiith Axis 1.3, tomcat > >> 5.5.20. > >> >> and > >> >> java. > >> >> > >> >> There is not a single proper practical example given on Internet for > >> >> Documnet litetal web services with Axis. > >> >> > >> >> Have look into this practically described example to RPC encoded > >> with > >> >> Axis . > >> >> This very helpful. > >> >> http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 > >> >> > >> >> I am searching Same type of example for Documnet litetal web > >> services > >> >> with > >> >> Axis. > >> >> > >> >> Please provide java2wsdl and wsdl2java Tool and Command for > >> Documnet > >> >> litetal web services with Axis. > >> >> any reference, any tutorial, ?? > >> >> > >> >> > >> >> Anne, Thank you very much for your reply. > >> >> > >> >> > >> >> > >> >> > >> >> Regards > >> >> Santosh > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> Anne Thomas Manes wrote: > >> >> > > >> >> > Santosh, > >> >> > > >> >> > Do I understand your problem correctly: You need to implement both > >> >> > client and server, and you must pass a payload containing the > >> >> > element. > >> >> > > >> >> > If so, you must start by defining the schema for the > >> > >> >> > element. Then you should construct a document/literal WSDL that > >> >> > defines an operation for passing in the element. > >> Do > >> >> > you also have a sample document for the response message? You will > >> >> > also have to define the schema for the response document. > >> >> >
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
o implement both >> >> > client and server, and you must pass a payload containing the >> >> > element. >> >> > >> >> > If so, you must start by defining the schema for the >> >> >> > element. Then you should construct a document/literal WSDL that >> >> > defines an operation for passing in the element. >> Do >> >> > you also have a sample document for the response message? You will >> >> > also have to define the schema for the response document. >> >> > >> >> > Anne >> >> > >> >> > On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh >> <[EMAIL PROTECTED]> >> >> > wrote: >> >> >> >> >> >> Hi Anne , >> >> >> >> >> >> 1st of all Thank you very much for your Reply. >> >> >> I was just going through Blogs written by you and earlier post >> that >> >> you >> >> >> replied for others. >> >> >> >> >> >>Yes, it is clear that server required SOAP request is not sent >> by >> >> >> client >> >> >> or requester program. >> >> >> Some difference in SOAP msg. so i got exception. but >> >> >> >> >> >> I have No Choice, i have to use that SOAP request only send >> by >> >> >> requester >> >> >> program. >> >> >> Now in this situation what change i have to do in my WSDL or >> wsdd or >> >> >> code. >> >> >> >> >> >> is it possible that we made some change in WSDL or wsdd. so >> that >> >> i am >> >> >> able to Accept SOAP request and process it further. Give some >> idea >> >> >> regarding this issues keeping it that i have to use that SOAP >> >> request >> >> >> only. >> >> >> >> >> >>Please see the SOAP request send by Requester or client >> >> program >> >> >> :- >> >> >> >> >> >> >> >> >> Content-Type: text/xml; charset=utf-8 >> >> >> SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; >> >> >> >> >> >> >> >> >> >> >> >> > >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; >> >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> >> >> >> >> >> >> >> >> >> >> >> >> 2008-09-09 >> >> >> London >> >> >> >> >> >> >> >> >> Santosh >> >> >> 25 >> >> >> London >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> =x >> >> >> >> >> >> >> >> >> Regards >> >> >> Santosh >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Anne Thomas Manes wrote: >> >> >> > >> >> >> > The message you are sending doesn't match the expected input >> >> specified >> >> >> > by the WSDL. >> >> >> > The service is expecting something lie this: >> >> >> > >> >> >> > >> >> >> > > >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; >> >> >> > xmlns:enc="http:
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
ices with Axis. > >> > >> Have look into this practically described example to RPC encoded with > >> Axis . > >> This very helpful. > >> http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 > >> > >> I am searching Same type of example for Documnet litetal web services > >> with > >> Axis. > >> > >> Please provide java2wsdl and wsdl2java Tool and Command for Documnet > >> litetal web services with Axis. > >> any reference, any tutorial, ?? > >> > >> > >> Anne, Thank you very much for your reply. > >> > >> > >> > >> > >> Regards > >> Santosh > >> > >> > >> > >> > >> > >> Anne Thomas Manes wrote: > >> > > >> > Santosh, > >> > > >> > Do I understand your problem correctly: You need to implement both > >> > client and server, and you must pass a payload containing the > >> > element. > >> > > >> > If so, you must start by defining the schema for the > >> > element. Then you should construct a document/literal WSDL that > >> > defines an operation for passing in the element. Do > >> > you also have a sample document for the response message? You will > >> > also have to define the schema for the response document. > >> > > >> > Anne > >> > > >> > On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]> > >> > wrote: > >> >> > >> >> Hi Anne , > >> >> > >> >> 1st of all Thank you very much for your Reply. > >> >> I was just going through Blogs written by you and earlier post that > >> you > >> >> replied for others. > >> >> > >> >>Yes, it is clear that server required SOAP request is not sent by > >> >> client > >> >> or requester program. > >> >> Some difference in SOAP msg. so i got exception. but > >> >> > >> >> I have No Choice, i have to use that SOAP request only send by > >> >> requester > >> >> program. > >> >> Now in this situation what change i have to do in my WSDL or wsdd or > >> >> code. > >> >> > >> >> is it possible that we made some change in WSDL or wsdd. so that > >> i am > >> >> able to Accept SOAP request and process it further. Give some idea > >> >> regarding this issues keeping it that i have to use that SOAP > >> request > >> >> only. > >> >> > >> >>Please see the SOAP request send by Requester or client > >> program > >> >> :- > >> >> > >> >> > >> >> Content-Type: text/xml; charset=utf-8 > >> >> SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; > >> >> > >> >> > >> >> > >> >>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > >> >> > >> >> > >> >> > >> >> 2008-09-09 > >> >> London > >> >> > >> >> > >> >> Santosh > >> >> 25 > >> >> London > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> =x > >> >> > >> >> > >> >> Regards > >> >> Santosh > >> >> > >> >> > >> >> > >> >> > >> >> Anne Thomas Manes wrote: > >> >> > > >> >> > The message you are sending doesn't match the expected
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
> > > > > > > > > > > name="wsTestsearchdetails"> > > location="http://localhost:8080/axis/services/wsTestsearchdetails"/> > > > > > Anne > > On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh <[EMAIL PROTECTED]> > wrote: >> >> Hi Anne, >> >> Yes, i need to implement both client and server. as a input SOAP >> request inside SOAP body payload containing the >> element. >> >> Yes, i have a sample document for the response message also. >> >> >> -- some Strings >> >> >> >> Now, I am searching for How to Generate java2wsdl and wsdl2java >> any >> tool or command that will able to work wiith Axis 1.3, tomcat 5.5.20. >> and >> java. >> >> There is not a single proper practical example given on Internet for >> Documnet litetal web services with Axis. >> >> Have look into this practically described example to RPC encoded with >> Axis . >> This very helpful. >> http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 >> >> I am searching Same type of example for Documnet litetal web services >> with >> Axis. >> >> Please provide java2wsdl and wsdl2java Tool and Command for Documnet >> litetal web services with Axis. >> any reference, any tutorial, ?? >> >> >> Anne, Thank you very much for your reply. >> >> >> >> >> Regards >> Santosh >> >> >> >> >> >> Anne Thomas Manes wrote: >> > >> > Santosh, >> > >> > Do I understand your problem correctly: You need to implement both >> > client and server, and you must pass a payload containing the >> > element. >> > >> > If so, you must start by defining the schema for the >> > element. Then you should construct a document/literal WSDL that >> > defines an operation for passing in the element. Do >> > you also have a sample document for the response message? You will >> > also have to define the schema for the response document. >> > >> > Anne >> > >> > On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]> >> > wrote: >> >> >> >> Hi Anne , >> >> >> >> 1st of all Thank you very much for your Reply. >> >> I was just going through Blogs written by you and earlier post that >> you >> >> replied for others. >> >> >> >>Yes, it is clear that server required SOAP request is not sent by >> >> client >> >> or requester program. >> >> Some difference in SOAP msg. so i got exception. but >> >> >> >> I have No Choice, i have to use that SOAP request only send by >> >> requester >> >> program. >> >> Now in this situation what change i have to do in my WSDL or wsdd or >> >> code. >> >> >> >> is it possible that we made some change in WSDL or wsdd. so that >> i am >> >> able to Accept SOAP request and process it further. Give some idea >> >> regarding this issues keeping it that i have to use that SOAP >> request >> >> only. >> >> >> >>Please see the SOAP request send by Requester or client >> program >> >> :- >> >> >> >> >> >> Content-Type: text/xml; charset=utf-8 >> >> SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; >> >> >> >> >> >> >> >> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> >> >> >> >> >> >> >> >> 2008-09-09 >> >> London >> >> >> >> >> >> Santosh >> >> 25 >> >> London >> >> >> >> >> >> >> >> >> >> >> >>
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
at i have to use that SOAP request > >> only. > >> > >>Please see the SOAP request send by Requester or client program > >> :- > >> > >> > >> Content-Type: text/xml; charset=utf-8 > >> SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; > >> > >> > >> > >> http://schemas.xmlsoap.org/soap/envelope/"; > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > >> > >> > >> > >> 2008-09-09 > >> London > >> > >> > >> Santosh > >> 25 > >> London > >> > >> > >> > >> > >> > >> =x > >> > >> > >> Regards > >> Santosh > >> > >> > >> > >> > >> Anne Thomas Manes wrote: > >> > > >> > The message you are sending doesn't match the expected input specified > >> > by the WSDL. > >> > The service is expecting something lie this: > >> > > >> > > >> > http://schemas.xmlsoap.org/soap/envelope/"; > >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > >> > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";> > >> > http://schemas.xmlsoap.org/soap/encoding/";> > >> > > >> > some string > >> > > >> > > >> > > >> > > >> > Anne > >> > > >> > > >> > > >> > On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]> > >> > wrote: > >> >> > >> >> Dear All, > >> >> > >> >>I have installed Axis 1.3 (Java) and provided a service to > >> >> Requester(other end). At my end when i invoking web service by > >> passing > >> >> XmlRequest as string from java client program then it returns proper > >> >> Response xml. but > >> >> > >> >>The Service Requester(other end) invoking our web services > >> using > >> >> WFETCH tool. They send SOAP request then from Service Provider > >> end(my > >> >> end) > >> >> returns the soapenv:Server.userException - SimpleDeserializer > >> >> encountered a > >> >> child element, which is NOT expected, in something it was trying to > >> >> deserialize. > >> >> > >> >> Please see below the SOAP Request, Exception / Error and WSDL file. > >> >> > >> >>Requester send SOAP request is :- > >> >> > >> >> Content-Type: text/xml; charset=utf-8 > >> >> SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest"; > >> >> > >> >> > >> >>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > >> >> > >> >> > >> >> > >> >> 2008-09-09 > >> >> London > >> >> > >> >> > >> >> Santosh > >> >> 25 > >> >> London > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> =x > >> >> > >> >> Provider end return Exception / Error is :- > >> >> > >> >> > >> >>>> >> xmlns:soapenv="http://schemas.xmlsoap.org/so
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Hi Anne, Yes, i need to implement both client and server. as a input SOAP request inside SOAP body payload containing the element. Yes, i have a sample document for the response message also. -- some Strings Now, I am searching for How to Generate java2wsdl and wsdl2java any tool or command that will able to work wiith Axis 1.3, tomcat 5.5.20. and java. There is not a single proper practical example given on Internet for Documnet litetal web services with Axis. Have look into this practically described example to RPC encoded with Axis . This very helpful. http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 I am searching Same type of example for Documnet litetal web services with Axis. Please provide java2wsdl and wsdl2java Tool and Command for Documnet litetal web services with Axis. any reference, any tutorial, ?? Anne, Thank you very much for your reply. Regards Santosh Anne Thomas Manes wrote: > > Santosh, > > Do I understand your problem correctly: You need to implement both > client and server, and you must pass a payload containing the > element. > > If so, you must start by defining the schema for the > element. Then you should construct a document/literal WSDL that > defines an operation for passing in the element. Do > you also have a sample document for the response message? You will > also have to define the schema for the response document. > > Anne > > On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]> > wrote: >> >> Hi Anne , >> >> 1st of all Thank you very much for your Reply. >> I was just going through Blogs written by you and earlier post that you >> replied for others. >> >>Yes, it is clear that server required SOAP request is not sent by >> client >> or requester program. >> Some difference in SOAP msg. so i got exception. but >> >> I have No Choice, i have to use that SOAP request only send by >> requester >> program. >> Now in this situation what change i have to do in my WSDL or wsdd or >> code. >> >> is it possible that we made some change in WSDL or wsdd. so that i am >> able to Accept SOAP request and process it further. Give some idea >> regarding this issues keeping it that i have to use that SOAP request >> only. >> >>Please see the SOAP request send by Requester or client program >> :- >> >> >> Content-Type: text/xml; charset=utf-8 >> SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; >> >> >> >> http://schemas.xmlsoap.org/soap/envelope/"; >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> >> >> >> >> 2008-09-09 >> London >> >> >> Santosh >> 25 >> London >> >> >> >> >> >> =x >> >> >> Regards >> Santosh >> >> >> >> >> Anne Thomas Manes wrote: >> > >> > The message you are sending doesn't match the expected input specified >> > by the WSDL. >> > The service is expecting something lie this: >> > >> > >> > http://schemas.xmlsoap.org/soap/envelope/"; >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; >> > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";> >> > http://schemas.xmlsoap.org/soap/encoding/";> >> > >> > some string >> > >> > >> > >> > >> > Anne >> > >> > >> > >> > On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]> >> > wrote: >> >> >> >> Dear All, >> >> >> >>I have installed Axis 1.3 (Java) and provided a service to >> >> Requester(other end). At my end when i invoking web service by >> passing >> >> XmlRequest as string from java client program then it returns proper >> >> Response xml. but >> >> >> >>The Service Requester(other end) invoking our web services >> using >> >> WFETCH tool. Th
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Santosh, Do I understand your problem correctly: You need to implement both client and server, and you must pass a payload containing the element. If so, you must start by defining the schema for the element. Then you should construct a document/literal WSDL that defines an operation for passing in the element. Do you also have a sample document for the response message? You will also have to define the schema for the response document. Anne On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]> wrote: > > Hi Anne , > > 1st of all Thank you very much for your Reply. > I was just going through Blogs written by you and earlier post that you > replied for others. > >Yes, it is clear that server required SOAP request is not sent by client > or requester program. > Some difference in SOAP msg. so i got exception. but > > I have No Choice, i have to use that SOAP request only send by requester > program. > Now in this situation what change i have to do in my WSDL or wsdd or code. > > is it possible that we made some change in WSDL or wsdd. so that i am > able to Accept SOAP request and process it further. Give some idea > regarding this issues keeping it that i have to use that SOAP request only. > >Please see the SOAP request send by Requester or client program :- > > > Content-Type: text/xml; charset=utf-8 > SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; > > > > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > > > > 2008-09-09 > London > > > Santosh > 25 > London > > > > > > =x > > > Regards > Santosh > > > > > Anne Thomas Manes wrote: > > > > The message you are sending doesn't match the expected input specified > > by the WSDL. > > The service is expecting something lie this: > > > > > > http://schemas.xmlsoap.org/soap/envelope/"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";> > > http://schemas.xmlsoap.org/soap/encoding/";> > > > > some string > > > > > > > > > > Anne > > > > > > > > On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]> > > wrote: > >> > >> Dear All, > >> > >>I have installed Axis 1.3 (Java) and provided a service to > >> Requester(other end). At my end when i invoking web service by passing > >> XmlRequest as string from java client program then it returns proper > >> Response xml. but > >> > >>The Service Requester(other end) invoking our web services using > >> WFETCH tool. They send SOAP request then from Service Provider end(my > >> end) > >> returns the soapenv:Server.userException - SimpleDeserializer > >> encountered a > >> child element, which is NOT expected, in something it was trying to > >> deserialize. > >> > >> Please see below the SOAP Request, Exception / Error and WSDL file. > >> > >>Requester send SOAP request is :- > >> > >> Content-Type: text/xml; charset=utf-8 > >> SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest"; > >> > >> > >> http://schemas.xmlsoap.org/soap/envelope/"; > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > >> > >> > >> > >> 2008-09-09 > >> London > >> > >> > >> Santosh > >> 25 > >> London > >> > >> > >> > >> > >> > >> =x > >> > >> Provider end return Exception / Error is :- > >> > >> > >>>> xmlns:soap
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Hi Anne , 1st of all Thank you very much for your Reply. I was just going through Blogs written by you and earlier post that you replied for others. Yes, it is clear that server required SOAP request is not sent by client or requester program. Some difference in SOAP msg. so i got exception. but I have No Choice, i have to use that SOAP request only send by requester program. Now in this situation what change i have to do in my WSDL or wsdd or code. is it possible that we made some change in WSDL or wsdd. so that i am able to Accept SOAP request and process it further. Give some idea regarding this issues keeping it that i have to use that SOAP request only. Please see the SOAP request send by Requester or client program :- Content-Type: text/xml; charset=utf-8 SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest"; http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> 2008-09-09 London Santosh 25 London =x Regards Santosh Anne Thomas Manes wrote: > > The message you are sending doesn't match the expected input specified > by the WSDL. > The service is expecting something lie this: > > > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";> > http://schemas.xmlsoap.org/soap/encoding/";> > > some string > > > > > Anne > > > > On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]> > wrote: >> >> Dear All, >> >>I have installed Axis 1.3 (Java) and provided a service to >> Requester(other end). At my end when i invoking web service by passing >> XmlRequest as string from java client program then it returns proper >> Response xml. but >> >> The Service Requester(other end) invoking our web services using >> WFETCH tool. They send SOAP request then from Service Provider end(my >> end) >> returns the soapenv:Server.userException - SimpleDeserializer >> encountered a >> child element, which is NOT expected, in something it was trying to >> deserialize. >> >> Please see below the SOAP Request, Exception / Error and WSDL file. >> >>Requester send SOAP request is :- >> >> Content-Type: text/xml; charset=utf-8 >> SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest"; >> >> >> http://schemas.xmlsoap.org/soap/envelope/"; >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> >> >> >> >> 2008-09-09 >> London >> >> >> Santosh >> 25 >> London >> >> >> >> >> >> =====x >> >> Provider end return Exception / Error is :- >> >> >> > 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:Server.userException >> org.xml.sax.SAXException: >> SimpleDeserializer encountered a >> child element, which is NOT expected, in something it was trying to >> deserialize. >> >> > >> xmlns:ns1="http://xml.apache.org/axis/";>xmlapps.testgo1.com >> >> >> >> >> >> ===x >> >> WSDL file is :- >> >> >> > xmlns="http://schemas.xmlsoap.org/wsdl/"; >> xmlns:apachesoap="http://xml.apache.org/xml-soap"; >> xmlns:impl="urn:TestSearchEngine" xmlns:intf="urn:TestSearchEngine" >> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; >> xmlns:wsdl="http:/
Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
The message you are sending doesn't match the expected input specified by the WSDL. The service is expecting something lie this: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";> http://schemas.xmlsoap.org/soap/encoding/";> some string Anne On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]> wrote: > > Dear All, > >I have installed Axis 1.3 (Java) and provided a service to > Requester(other end). At my end when i invoking web service by passing > XmlRequest as string from java client program then it returns proper > Response xml. but > >The Service Requester(other end) invoking our web services using > WFETCH tool. They send SOAP request then from Service Provider end(my end) > returns the soapenv:Server.userException - SimpleDeserializer encountered a > child element, which is NOT expected, in something it was trying to > deserialize. > > Please see below the SOAP Request, Exception / Error and WSDL file. > >Requester send SOAP request is :- > > Content-Type: text/xml; charset=utf-8 > SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest"; > > > http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > > > > 2008-09-09 > London > > > Santosh > 25 > London > > > > > > =x > > Provider end return Exception / Error is :- > > > 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:Server.userException > org.xml.sax.SAXException: > SimpleDeserializer encountered a > child element, which is NOT expected, in something it was trying to > deserialize. > > xmlns:ns1="http://xml.apache.org/axis/";>xmlapps.testgo1.com > > > > > > ===x > > WSDL file is :- > > >xmlns="http://schemas.xmlsoap.org/wsdl/"; > xmlns:apachesoap="http://xml.apache.org/xml-soap"; > xmlns:impl="urn:TestSearchEngine" xmlns:intf="urn:TestSearchEngine" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema";> > > > > > > > > > > > > > > > > > > >name="searchTestRequest"/> > >name="searchTestResponse"/> > > > > > > type="impl:TestSearchEngineInterface"> > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > > > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > namespace="urn:TestSearchEngine" use="encoded"/> > > > > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > namespace="urn:TestSearchEngine" use="encoded"/> > > > > > > > > > > name="wsTestsearchdetails"> > >location="http://localhost:8080/axis/services/wsTestsearchdetails"/> > > > > > > > > =x > > > > 1. I am thinking that SOAP request what they send that is not proper/ > requiered to my end(provider). if so what change i have to do. > > I am googling it from last 3 day's and found some tricks which i > tried but > Nothing works. > > > Thanx and Regards > Santosh > > > > > -- > View this message in context: > http://www.nabble.com/soapenv%3AServer.userException---SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize-tp16296688p16296688.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Dear All, I have installed Axis 1.3 (Java) and provided a service to Requester(other end). At my end when i invoking web service by passing XmlRequest as string from java client program then it returns proper Response xml. but The Service Requester(other end) invoking our web services using WFETCH tool. They send SOAP request then from Service Provider end(my end) returns the soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Please see below the SOAP Request, Exception / Error and WSDL file. Requester send SOAP request is :- Content-Type: text/xml; charset=utf-8 SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest"; http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> 2008-09-09 London Santosh 25 London =x Provider end return Exception / Error is :- http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> soapenv:Server.userException org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. http://xml.apache.org/axis/";>xmlapps.testgo1.com ===x WSDL file is :- http://schemas.xmlsoap.org/wsdl/"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="urn:TestSearchEngine" xmlns:intf="urn:TestSearchEngine" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://schemas.xmlsoap.org/soap/http"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:TestSearchEngine" use="encoded"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:TestSearchEngine" use="encoded"/> http://localhost:8080/axis/services/wsTestsearchdetails"/> =x 1. I am thinking that SOAP request what they send that is not proper/ requiered to my end(provider). if so what change i have to do. I am googling it from last 3 day's and found some tricks which i tried but Nothing works. Thanx and Regards Santosh -- View this message in context: http://www.nabble.com/soapenv%3AServer.userException---SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize-tp16296688p16296688.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Hi, I have created a web-service using axis 1.2 and deployed it on a server. When I make test calls to this web-service using java code, I get proper results. Following is the java code that I use to call the web-service: String endpoint = "http://wstest.com/axis/services/testservices";; Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName("urn:TestUrn" , "TestSearchMethod" )); String sResultantXML = (String)call.invoke( new Object[] { sRequestXML } ); But, when the same web-service is being called using "wfetch" it returns the following error message http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>soapenv:Server.userExceptionorg.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.http://xml.apache.org/axis/";>esrv2 The soap request used in wfetch is as follows: \r\n http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>\r\n \r\n \r\n \r\n \r\n \r\n \r\n I think that the problem is because of the "\r\n" occurances in the Soap Request xml. I have searched on the net regarding this issue but have not come across a valid solution for this. I will be thankful if anyone can help. Thanks. -- View this message in context: http://www.nabble.com/SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize.-tp15735525p15735525.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Hi, Thank u so much for responding.. I am attaching the files u have asked for. Hope this will help u.. I am using axis 1.4 .. Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.5 Created-By: 1.4.2_08-b03 (Sun Microsystems Inc.) Name: org/apache/axis Implementation-Title: Apache Axis Implementation-Version: 1.4 1855 April 22 2006 Implementation-Vendor: Apache Web Services Thanks, mgainty wrote: > > can you post the code ClientDeployConfiguration.java > and also post the code for AdminServiceV001ServiceLocator.java > please display client_deploy_xyz.wsdd > > which version axis are you working with ..presumably 1.3 or 1.4? > > which version axis.jar are you working with (display contents of > manifest.mf > as contained within axis.jar..) > > M- > - Original Message - > From: "axisnewbee" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, January 29, 2008 9:32 AM > Subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child > element, which is NOT expected, in something it was trying to deserialize. > > >> >> Hi Experts, >> >> Can i now why i am getting this error. >> >> Below is the scenario: >> >> >> I am using a functionality which is using two wsdl's.. These wsdls are >> generated by WebSPhere WebServices. >> >> I am using one client_deploy.wsdd for our security purposes and creating >> a >> engine configuration for that >> >> >> public static EngineConfiguration xyz_config = new >> FileProvider("client_deploy_xyz.wsdd"); >> >> I am passing this engine Configurator for the serviceLocator of the >> client >> code of both wsdls. >> >> service1 = new >> AdminServiceV001ServiceLocator(ClientDeployConfiguration.xyz_CONFIG); >> service2 = new >> PricingServiceV001ServiceLocator(ClientDeployConfiguration.xyz_config); >> >> I my application when i try to use both services interchagably i am > getting >> this error.. >> >> Sequece .. >> first used service1 >> next used service2 >> third again used serice1 >> >> i get a >> >> >> 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(SimpleDeseriali > zer.java:145) >> >> at >> > org.apache.axis.encoding.DeserializationContext.startElement(Deserialization > Context.java:1035) >> >> at >> > org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) >> >> at >> > org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java: > 1141) >> >> at > org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) >> >> at >> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) >> >> at org.apache.axis.client.Call.invoke(Call.java:2467) >> >> at org.apache.axis.client.Call.invoke(Call.java:2366) >> >> at org.apache.axis.client.Call.invoke(Call.java:1812) >> >> >> Can anyone tell me what is the problem .. >> Do let me know if you have any clarifications .. >> >> Note: >> >> if i use different EngineConfigators i dont get this error >> >> >> public static EngineConfiguration admin_config = new >> FileProvider("client_deploy_xyz.wsdd"); >> public static EngineConfiguration pricing_config = new >> FileProvider("client_deploy_xyz.wsdd"); >> >> but we have quick a lot of servies to be used in our applications.. and i > am >> not sure if this the correct solution. >> >> >> >> >> Thanks, >> >> >> >> >> >> -- >> View this message in context: > http://www.nabble.com/org.xml.sax.SAXException%3A-SimpleDeserializer-encount > ered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying- > to-deserialize.-tp15160285p15160285.html >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > http://www.nabble.com/file/p15168037/client_deploy_poe.wsdd client_deploy_poe.wsdd http://www.nabble.com/file/p15168037/ClientDeployConfiguration.java ClientDeployConfiguration.java http://www.nabble.com/file/p15168037/STSAdminServiceV001ServiceLocator.java STSAdminServiceV001ServiceLocator.java -- View this message in context: http://www.nabble.com/org.xml.sax.SAXException%3A-SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize.-tp15160285p15168037.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
can you post the code ClientDeployConfiguration.java and also post the code for AdminServiceV001ServiceLocator.java please display client_deploy_xyz.wsdd which version axis are you working with ..presumably 1.3 or 1.4? which version axis.jar are you working with (display contents of manifest.mf as contained within axis.jar..) M- - Original Message - From: "axisnewbee" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 29, 2008 9:32 AM Subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. > > Hi Experts, > > Can i now why i am getting this error. > > Below is the scenario: > > > I am using a functionality which is using two wsdl's.. These wsdls are > generated by WebSPhere WebServices. > > I am using one client_deploy.wsdd for our security purposes and creating a > engine configuration for that > > > public static EngineConfiguration xyz_config = new > FileProvider("client_deploy_xyz.wsdd"); > > I am passing this engine Configurator for the serviceLocator of the client > code of both wsdls. > > service1 = new > AdminServiceV001ServiceLocator(ClientDeployConfiguration.xyz_CONFIG); > service2 = new > PricingServiceV001ServiceLocator(ClientDeployConfiguration.xyz_config); > > I my application when i try to use both services interchagably i am getting > this error.. > > Sequece .. > first used service1 > next used service2 > third again used serice1 > > i get a > > > 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(SimpleDeseriali zer.java:145) > > at > org.apache.axis.encoding.DeserializationContext.startElement(Deserialization Context.java:1035) > > at > org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) > > at > org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java: 1141) > > at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) > > at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) > > at org.apache.axis.client.Call.invoke(Call.java:2467) > > at org.apache.axis.client.Call.invoke(Call.java:2366) > > at org.apache.axis.client.Call.invoke(Call.java:1812) > > > Can anyone tell me what is the problem .. > Do let me know if you have any clarifications .. > > Note: > > if i use different EngineConfigators i dont get this error > > > public static EngineConfiguration admin_config = new > FileProvider("client_deploy_xyz.wsdd"); > public static EngineConfiguration pricing_config = new > FileProvider("client_deploy_xyz.wsdd"); > > but we have quick a lot of servies to be used in our applications.. and i am > not sure if this the correct solution. > > > > > Thanks, > > > > > > -- > View this message in context: http://www.nabble.com/org.xml.sax.SAXException%3A-SimpleDeserializer-encount ered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying- to-deserialize.-tp15160285p15160285.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Hi Experts, Can i now why i am getting this error. Below is the scenario: I am using a functionality which is using two wsdl's.. These wsdls are generated by WebSPhere WebServices. I am using one client_deploy.wsdd for our security purposes and creating a engine configuration for that public static EngineConfiguration xyz_config = new FileProvider("client_deploy_xyz.wsdd"); I am passing this engine Configurator for the serviceLocator of the client code of both wsdls. service1 = new AdminServiceV001ServiceLocator(ClientDeployConfiguration.xyz_CONFIG); service2 = new PricingServiceV001ServiceLocator(ClientDeployConfiguration.xyz_config); I my application when i try to use both services interchagably i am getting this error.. Sequece .. first used service1 next used service2 third again used serice1 i get a 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:145) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) Can anyone tell me what is the problem .. Do let me know if you have any clarifications .. Note: if i use different EngineConfigators i dont get this error public static EngineConfiguration admin_config = new FileProvider("client_deploy_xyz.wsdd"); public static EngineConfiguration pricing_config = new FileProvider("client_deploy_xyz.wsdd"); but we have quick a lot of servies to be used in our applications.. and i am not sure if this the correct solution. Thanks, -- View this message in context: http://www.nabble.com/org.xml.sax.SAXException%3A-SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize.-tp15160285p15160285.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
I'm not too familiar with Rampart, but the security handlers we're using are mandated by our customer. So, we have to use them, as well as Axis 1.2.1. I can't seem to find a consistent resolution on this list, so right now I'm trying to tweak the server-config.wsdd. - Original Message From: Martin Gainty <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Monday, December 3, 2007 9:06:45 PM Subject: Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. do these security handlers have any advantages over rampart ? M- - Original Message - From: Peter To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 7:56 PM Subject: Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. We're using 3rd party security handlers that only work in Axis 1.2.1. Srinivas Gupta Martin Gainty <[EMAIL PROTECTED]> wrote: DIV { MARGIN:0px;} Synivas- why not upgrade? M-- - Original Message - From: Srinivas Gupta To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 5:22 PM Subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Hello, I have a test client whose classes were generated by Axis 1.2.1 wsdl2java, and I use this to hit services also generated by wsdl2java. The services comprise what we call a "data provider". I have used this test client against many data providers without any problems. But now I'm getting the following exception when I try to hit a new data provider: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize This data provider is using the same WSDL as all of the other data providers. The only thing that might be different with this data provider is its server-config.wsdd. I've tried tweaking the server-config.wsdd, but to no avail. For example, I tried changing style="document" to style="rpc". I wish that I could upgrade to Axis 1.4 or Axis 2.0, but we are constrained to Axis 1.2.1 because of project requirements... Does anyone have any suggestions? Thank you. Srinivas Gupta Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
do these security handlers have any advantages over rampart ? M- - Original Message - From: Peter To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 7:56 PM Subject: Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. We're using 3rd party security handlers that only work in Axis 1.2.1. Srinivas Gupta Martin Gainty <[EMAIL PROTECTED]> wrote: Synivas- why not upgrade? M-- - Original Message - From: Srinivas Gupta To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 5:22 PM Subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Hello, I have a test client whose classes were generated by Axis 1.2.1 wsdl2java, and I use this to hit services also generated by wsdl2java. The services comprise what we call a "data provider". I have used this test client against many data providers without any problems. But now I'm getting the following exception when I try to hit a new data provider: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize This data provider is using the same WSDL as all of the other data providers. The only thing that might be different with this data provider is its server-config.wsdd. I've tried tweaking the server-config.wsdd, but to no avail. For example, I tried changing style="document" to style="rpc". I wish that I could upgrade to Axis 1.4 or Axis 2.0, but we are constrained to Axis 1.2.1 because of project requirements... Does anyone have any suggestions? Thank you. Srinivas Gupta -- Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. -- Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
We're using 3rd party security handlers that only work in Axis 1.2.1. Srinivas Gupta Martin Gainty <[EMAIL PROTECTED]> wrote:DIV { MARGIN: 0px }Synivas- why not upgrade? M-- - Original Message - From:SrinivasGupta To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 5:22PM Subject: org.xml.sax.SAXException:SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Hello, I have a test client whose classes were generated by Axis1.2.1 wsdl2java, and I use this to hit services also generated bywsdl2java. The services comprise what we call a "data provider". Ihave used this test client against many data providers without anyproblems. But now I'm getting the following exception when I try to hita new data provider: org.xml.sax.SAXException: SimpleDeserializerencountered a child element, which is NOT expected, in something it was tryingto deserialize This data provider is using the same WSDL as all of theother data providers. The only thing that might be different with thisdata provider is its server-config.wsdd. I've tried tweaking theserver-config.wsdd, but to no avail. For example, I tried changingstyle="document" to style="rpc". I wish that I could upgrade to Axis 1.4or Axis 2.0, but we are constrained to Axis 1.2.1 because of projectrequirements... Does anyone have any suggestions? Thankyou. Srinivas Gupta - Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. - Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Synivas- why not upgrade? M-- - Original Message - From: Srinivas Gupta To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 5:22 PM Subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Hello, I have a test client whose classes were generated by Axis 1.2.1 wsdl2java, and I use this to hit services also generated by wsdl2java. The services comprise what we call a "data provider". I have used this test client against many data providers without any problems. But now I'm getting the following exception when I try to hit a new data provider: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize This data provider is using the same WSDL as all of the other data providers. The only thing that might be different with this data provider is its server-config.wsdd. I've tried tweaking the server-config.wsdd, but to no avail. For example, I tried changing style="document" to style="rpc". I wish that I could upgrade to Axis 1.4 or Axis 2.0, but we are constrained to Axis 1.2.1 because of project requirements... Does anyone have any suggestions? Thank you. Srinivas Gupta -- Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Hello, I have a test client whose classes were generated by Axis 1.2.1 wsdl2java, and I use this to hit services also generated by wsdl2java. The services comprise what we call a "data provider". I have used this test client against many data providers without any problems. But now I'm getting the following exception when I try to hit a new data provider: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize This data provider is using the same WSDL as all of the other data providers. The only thing that might be different with this data provider is its server-config.wsdd. I've tried tweaking the server-config.wsdd, but to no avail. For example, I tried changing style="document" to style="rpc". I wish that I could upgrade to Axis 1.4 or Axis 2.0, but we are constrained to Axis 1.2.1 because of project requirements... Does anyone have any suggestions? Thank you. Srinivas Gupta Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
etadata. > > > > > > I should note that in my server-config.wsdd file I have all of the > > necessary > > > serializes/deserializers listed (WSDL2Java created them). I'm also > > defining > > > my service as follows: > > > > > > > > > > > > Thank you! > > > > > > Lindsey > > > > > > Anne Thomas Manes wrote: > > > Can you post the WSDL please? > > > > > > On 2/12/07, Lindsey Hess wrote: > > > > Hi, > > > > > > > > I've run Axis 1.4's WSDL2Java against my WSDL and associated schemas, > > and > > > > generated a number of classes. My WSDL contains a number of complex > > types. > > > > > > > > When I invoke a web service from some client code, I get the following > > > > exception: > > > > > > > > "simpledeserializer encountered a child element, which is NOT > expected, > > in > > > > something it was trying to deserialize" > > > > > > > > I don't understand why I'm getting this, as I'm setting the required > > > > parameters in my server code as specified in my WSDL. Does anyone have > > any > > > > suggestions? > > > > > > > > Thank you, > > > > > > > > Lindsey > > > > > > > > > > > > Everyone is raving about the all-new Yahoo! Mail beta. > > > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > Any questions? Get answers on any topic at Yahoo! Answers. Try it now. > > > --0-1514824370-1171307635=:47831-- > > > > > > > > > > > > > > > > > > > Get your own web address. > > Have a HUGE year through Yahoo! Small Business. > > > > > > > > > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! Games. > > - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. - Everyone is raving about the all-new Yahoo! Mail beta.
Re: simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
I got around the previous exception by defining bean mappings for all complex types. Now I get the following exception: "Invalid element in SearchResponseType - metadata" I have a bean mapping set up for "metadata", which is a complex type. So, I'm not sure what's going on. Has anyone seen this before? Lindsey Anne Thomas Manes <[EMAIL PROTECTED]> wrote: You need to define bean mappings for all complex types. On 2/12/07, Lindsey Hess wrote: > Thank you. Perhaps I'm getting further along. I tried the code that you > said is appropriate, and I now get the following exception: > > "org.xml.sax.SAXException: Deserializing parameter 'id': could not find > deserializer for type {urn:ifis-wsdl}SearchResponseType" > > Do you have any ideas, Anne? > > Thank you, > > Lindsey > > Anne Thomas Manes wrote: > That would be appropriate. > > On 2/12/07, Lindsey Hess wrote: > > Thanks, Anne. I will try your suggestions. Is it necessary to set the > > resultType for my my call? Should I do something like this: > > > > QName qnSearchResponse=new QName("urn:ifis-wsdl", "SearchResponseType"); > > callSearch.setReturnType(qnSearchResponse); > > > > Or is that wrong or unncessary? > > > > Anne Thomas Manes wrote: > > Lindsey, > > > > First issue: You've imported your schema namespace incorrectly. You > > can't use the to import a schema. You must use > > instead. must appear within the > > definition. > > > > Second issue: Based on your current WSDL, your method signature looks like > > this: > > > > searchResponse search(searchRequest); > > > > If you want your method signature to accept and return parameters > > rather than value objects, then you must define the WSDL using the > > "wrapped" convention (see [1]), and in your WSDD you should define the > > service thus: > > > > > > > > Third issue: Remove the "namespace" attribute from your > > and definitions. (The namespace attribute should be used > > only with style="rpc".) They should be defined thus: > > > > > > and > > > > > > I've also seen a recurring problem with schemas that have a namespace > > URI that ends with "#". If you fix the issues above and still have > > this problem, I suggest your try removing the "#" from the namespace. > > > > Anne > > > > On 2/12/07, Lindsey Hess wrote: > > > Hi Anne, > > > > > > Attached is the WSDL. > > > > > > From my client code, I'm doing this: > > > > > > Object[] opParamsSearch=(new PostiveInteger(m_Timeout), queryType); > > > //queryType is a complex type > > > > > > SearchResponseType searchResponse; > > > try{ > > > > > > > > > searchResponse=(SearchResponseType)callSearch.invoke(opParamsSearch); > > > }catch(Exception e) > > > { > > > e.printStackTrace(); > > > } > > > > > > > > > It may not be apparent from the WSDL, but SearchResponseType returns an > id > > > and a result of type ResultType. ResultType is a complex type. It > contains > > > a number of required parameters, included a complex type called > metadata. > > > Metadata is essentially an array. So, every search response will contain > > an > > > id, results, and an array of metadata. > > > > > > I should note that in my server-config.wsdd file I have all of the > > necessary > > > serializes/deserializers listed (WSDL2Java created them). I'm also > > defining > > > my service as follows: > > > > > > > > > > > > Thank you! > > > > > > Lindsey > > > > > > Anne Thomas Manes wrote: > > > Can you post the WSDL please? > > > > > > On 2/12/07, Lindsey Hess wrote: > > > > Hi, > > > > > > > > I've run Axis 1.4's WSDL2Java against my WSDL and associated schemas, > > and > > > > generated a number of classes. My WSDL contains a number of complex > > types. > > > > > > > > When I invoke a web service from some client code, I get the following > > > > exception: > > > > > > > > "simpledeserializer encountered a child element, which is NOT > expected, > > in > > > > something it was trying to deserialize" > > > > > > > &g
Re: simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Thanks, Anne. I will try your suggestions. Is it necessary to set the resultType for my my call? Should I do something like this: QName qnSearchResponse=new QName("urn:ifis-wsdl", "SearchResponseType"); callSearch.setReturnType(qnSearchResponse); Or is that wrong or unncessary? Anne Thomas Manes <[EMAIL PROTECTED]> wrote: Lindsey, First issue: You've imported your schema namespace incorrectly. You can't use the to import a schema. You must use instead. must appear within the definition. Second issue: Based on your current WSDL, your method signature looks like this: searchResponse search(searchRequest); If you want your method signature to accept and return parameters rather than value objects, then you must define the WSDL using the "wrapped" convention (see [1]), and in your WSDD you should define the service thus: Third issue: Remove the "namespace" attribute from your and definitions. (The namespace attribute should be used only with style="rpc".) They should be defined thus: and I've also seen a recurring problem with schemas that have a namespace URI that ends with "#". If you fix the issues above and still have this problem, I suggest your try removing the "#" from the namespace. Anne On 2/12/07, Lindsey Hess wrote: > Hi Anne, > > Attached is the WSDL. > > From my client code, I'm doing this: > > Object[] opParamsSearch=(new PostiveInteger(m_Timeout), queryType); > //queryType is a complex type > > SearchResponseType searchResponse; > try{ > > searchResponse=(SearchResponseType)callSearch.invoke(opParamsSearch); > }catch(Exception e) > { > e.printStackTrace(); > } > > > It may not be apparent from the WSDL, but SearchResponseType returns an id > and a result of type ResultType. ResultType is a complex type. It contains > a number of required parameters, included a complex type called metadata. > Metadata is essentially an array. So, every search response will contain an > id, results, and an array of metadata. > > I should note that in my server-config.wsdd file I have all of the necessary > serializes/deserializers listed (WSDL2Java created them). I'm also defining > my service as follows: > > > > Thank you! > > Lindsey > > Anne Thomas Manes wrote: > Can you post the WSDL please? > > On 2/12/07, Lindsey Hess wrote: > > Hi, > > > > I've run Axis 1.4's WSDL2Java against my WSDL and associated schemas, and > > generated a number of classes. My WSDL contains a number of complex types. > > > > When I invoke a web service from some client code, I get the following > > exception: > > > > "simpledeserializer encountered a child element, which is NOT expected, in > > something it was trying to deserialize" > > > > I don't understand why I'm getting this, as I'm setting the required > > parameters in my server code as specified in my WSDL. Does anyone have any > > suggestions? > > > > Thank you, > > > > Lindsey > > > > > > Everyone is raving about the all-new Yahoo! Mail beta. > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > Any questions? Get answers on any topic at Yahoo! Answers. Try it now. > --0-1514824370-1171307635=:47831-- > > > - Get your own web address. Have a HUGE year through Yahoo! Small Business.
Re: simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Lindsey, First issue: You've imported your schema namespace incorrectly. You can't use the to import a schema. You must use instead. must appear within the definition. Second issue: Based on your current WSDL, your method signature looks like this: searchResponse search(searchRequest); If you want your method signature to accept and return parameters rather than value objects, then you must define the WSDL using the "wrapped" convention (see [1]), and in your WSDD you should define the service thus: Third issue: Remove the "namespace" attribute from your and definitions. (The namespace attribute should be used only with style="rpc".) They should be defined thus: and I've also seen a recurring problem with schemas that have a namespace URI that ends with "#". If you fix the issues above and still have this problem, I suggest your try removing the "#" from the namespace. Anne On 2/12/07, Lindsey Hess <[EMAIL PROTECTED]> wrote: Hi Anne, Attached is the WSDL. From my client code, I'm doing this: Object[] opParamsSearch=(new PostiveInteger(m_Timeout), queryType); //queryType is a complex type SearchResponseType searchResponse; try{ searchResponse=(SearchResponseType)callSearch.invoke(opParamsSearch); }catch(Exception e) { e.printStackTrace(); } It may not be apparent from the WSDL, but SearchResponseType returns an id and a result of type ResultType. ResultType is a complex type. It contains a number of required parameters, included a complex type called metadata. Metadata is essentially an array. So, every search response will contain an id, results, and an array of metadata. I should note that in my server-config.wsdd file I have all of the necessary serializes/deserializers listed (WSDL2Java created them). I'm also defining my service as follows: Thank you! Lindsey Anne Thomas Manes <[EMAIL PROTECTED]> wrote: Can you post the WSDL please? On 2/12/07, Lindsey Hess wrote: > Hi, > > I've run Axis 1.4's WSDL2Java against my WSDL and associated schemas, and > generated a number of classes. My WSDL contains a number of complex types. > > When I invoke a web service from some client code, I get the following > exception: > > "simpledeserializer encountered a child element, which is NOT expected, in > something it was trying to deserialize" > > I don't understand why I'm getting this, as I'm setting the required > parameters in my server code as specified in my WSDL. Does anyone have any > suggestions? > > Thank you, > > Lindsey > > > Everyone is raving about the all-new Yahoo! Mail beta. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any questions? Get answers on any topic at Yahoo! Answers. Try it now. --0-1514824370-1171307635=:47831-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Can you post the WSDL please? On 2/12/07, Lindsey Hess <[EMAIL PROTECTED]> wrote: Hi, I've run Axis 1.4's WSDL2Java against my WSDL and associated schemas, and generated a number of classes. My WSDL contains a number of complex types. When I invoke a web service from some client code, I get the following exception: "simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize" I don't understand why I'm getting this, as I'm setting the required parameters in my server code as specified in my WSDL. Does anyone have any suggestions? Thank you, Lindsey Everyone is raving about the all-new Yahoo! Mail beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize
Hi, I've run Axis 1.4's WSDL2Java against my WSDL and associated schemas, and generated a number of classes. My WSDL contains a number of complex types. When I invoke a web service from some client code, I get the following exception: "simpledeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize" I don't understand why I'm getting this, as I'm setting the required parameters in my server code as specified in my WSDL. Does anyone have any suggestions? Thank you, Lindsey - Everyone is raving about the all-new Yahoo! Mail beta.
FW: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
From: Cid, Jose Sent: Monday, May 02, 2005 5:24 PMTo: 'axis-user@ws.apache.org'Subject: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Can anyone shed some light as to what may be going on here. I am use axis 1.2RC3. Multiref is false (server-config.wsdd). A snippet of my client code is shown below: ... Service svc = (Service) serviceMap.get( SERVICE_INSTANCE ); String szServiceAddress = (String) serviceMap.get( SERVICE_ADDRESS ); String szNameSpace = (String) serviceMap.get( SERVICE_NAME_SPACE ); String szPortName = (String) serviceMap.get( SERVICE_PORT_NAME ); Call call = (Call) svc.createCall( ); call.setProperty( Call.SESSION_MAINTAIN_PROPERTY, new Boolean( true ) ); call.setTargetEndpointAddress( szServiceAddress ); call.setOperationName( new QName( szNameSpace, "getUnitDetail" ) ); call.setPortTypeName( new QName( szNameSpace, szPortName ) ); Properties sessionProperties = getSession( ); if ( sessionProperties != null ) { // Using previous session String szCookie = sessionProperties.getProperty( SESSION_COOKIE ); if ( szCookie != null ) { call.setProperty( HTTPConstants.HEADER_COOKIE, szCookie ); } } Object[] aObj = null; Object someObj = call.invoke( aObj ); // => Also tried to invoke it this way... //GetUnitDetailResponse gudResponse = (GetUnitDetailResponse) call.invoke( aObj );... ===> to server: GET //axis/services/UnitServiceApi?wsdl HTTP/1.1User-Agent: Java/1.4.2_06Host: localhost:8090Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2Connection: keep-alive ===> from server: HTTP/1.1 200 OKServer: Apache-Coyote/1.1Content-Type: text/xml;charset=utf-8Transfer-Encoding: chunkedDate: Mon, 02 May 2005 20:59:26 GMT 1803http://dsview.avocent.com/server/webservices/units" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://dsview.avocent.com/server/webservices/units" xmlns:intf="http://dsview.avocent.com/server/webservices/units" xmlns:tns1="urn:units:webservices:server:dsview:avocent:com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> targetNamespace="urn:units:webservices:server:dsview:avocent:com" xmlns="http://www.w3.org/2001/XMLSchema"> http://schemas.xmlsoap.org/soap/http"/> http://localhost:8090//axis/services/UnitServiceApi"/> ===> The method invocation: --sent: POST //axis/services/UnitServiceApi HTTP/1.0Content-Type: text/xml; charset=utf-8Accept: application/soap+xml, application/dime, multipart/related, text/*User-Agent: Axis/1.2RC3Host: localhost:8090Cache-Control: no-cachePragma: no-cacheSOAPAction: ""Content-Length: 410 http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://dsview.avocent.com/server/webservices/units"/> --Returned: HTTP/1.1 200 OKServer: Apache-Coyote/1.1Content-Type: text/xml;charset=utf-8Date: Mon, 02 May 2005 20:59:39 GMTConnection: close http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> anID aName 1.2.3.4 someType Problem is in my client code I ge