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 Parag Kadam <ac...@yahoo.com> on 2003/10/09 22:20:45 UTC

Arrays with Derived Complex Type : Exception SimpleDeserializer encountered a child element

Hi,
I have a java base class and its derivation (both valid java beans), a java bean which contains an array of the base class.
 
I have an operation in a webservice which takes a complex type (java bean). The complex type (java bean) has 2 string attributes and an array. The array is defined to be of the base class mentioned above.
 
I am using Sun JAX-RPC RI on the client to invoke the webservice. On invoking the web-service, the axis engine throws a SAX Exception "SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.". 
 
Can anybody help me on this ?
 
<service> element in server-config.wsdd is 
 <service name="InteractorService" provider="java:RPC">
  <parameter name="allowedMethods" value="invoke"/>
  <parameter name="className" value="com.x.impl.interactor.InteractorWS"/>
  <beanMapping languageSpecificType="java:com.x.interactor.ejb.InvocationInfo" qname="ns1:InvocationInfo" xmlns:ns1="urn:InteractorService"/>
  <beanMapping languageSpecificType="java:com.x.interactor.ejb.PropertyValue" qname="ns1:PropertyValue" xmlns:ns1="urn:InteractorService"/>
  <beanMapping languageSpecificType="java:com.x.interactor.ejb.StringPropertyValue" qname="ns1:StringPropertyValue" xmlns:ns1="urn:InteractorService"/>
 </service>
 
signature of method on the class handling webservice calls. 
public void invoke(InvocationInfo info) throws Exception
 
 
thanks
 
Parag


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search