The method which I am taking about returns a String, so there is no way I can change it to return Element. Is there any workaround to this problem ? What do I need to do in order to eliminate this exception ? Probably use another De-serializer ? If so, how ?
Thanks, Vijay. -----Original Message----- From: Parimi Srinivas [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 7:47 PM To: '[EMAIL PROTECTED]' Subject: RE: SimpleDeserializer throws a SAXException. this may not be solution, why can't you return Element[] ? -----Original Message----- From: Vemuri, Vijay [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 12:58 PM To: '[EMAIL PROTECTED]' Subject: SimpleDeserializer throws a SAXException. Hi, I have had this problem for a while now. I get the following exception when I call a web service on a remote client. The return value of that web service method is a SOAP document (returned to the client as a String). I figured out that I am getting the following exception because the XML file has nested elements. That's why the SimpleDeserializer is throwing an exception when it calls the OnStartChild function. How do I get around this problem ? Can I use another Deserializer for this purpose ? How do I approach this problem ? Thanks, Vijay. ============================================================================ ==== org.xml.sax.SAXException: SimpleDeser cannot handle structured data! at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(Unknown Source) at org.apache.axis.encoding.DeserializationContextImpl.startElement(Unknown Source) at org.apache.axis.message.SAX2EventRecorder.replay(Unknown Source) at org.apache.axis.message.MessageElement.publishToHandler(Unknown Source) at org.apache.axis.message.RPCElement.deserialize(Unknown Source) at org.apache.axis.message.RPCElement.getParams(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source)
