You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jean-Marc Taillant <ta...@bst.bsf.alcatel.fr> on 2002/05/23 05:44:13 UTC

Any element

Hi all,
I have a problem when i try to deserialize "any" wsdl type, i have a complex type ( used in my SOAP response) as follow:

  <complexType name ='test'>
        <sequence>
          <any />
        </sequence>
</complexType>

and i my SOAP response i got the following ( all the request is ok):

  <test>
        <data> .... ( in this case it is an XML tree, but can be something else!)
        </data>    ....
  </test>

I get the following exception on the client side:

org.xml.sax.SAXException: Invalid element in Test - Data
       at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:208)
       at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:831)
       at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:199)
       at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:589)
       at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:224)
       at org.apache.axis.message.RPCElement.getParams(RPCElement.java:248)
       at org.apache.axis.client.Call.invoke(Call.java:1701)
       at org.apache.axis.client.Call.invoke(Call.java:1608)
       at org.apache.axis.client.Call.invoke(Call.java:1169)
       at TestCfg.main(TestCfg.java:29)


----------------
Do i need to set the encoding style to "litteralXml" ?

Other issues?

Thanks and regards,

Jean Marc