axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dorner Thomas <>
Subject Help please - Complex Types
Date Wed, 21 Jul 2004 11:42:33 GMT

this is my second post for this problem - unfortunately no one can help me!?

My Problem is:
I send a HashMap from a WebService-Client to my WebService - no Problem so
The WSDL for the HashMap looks like this:

<schema elementFormDefault="qualified"
	<complexType name="mapItem">
			<element name="key" nillable="true"
type="xsd:anyType" /> 
			<element name="value" nillable="true"
type="xsd:anyType" /> 
	<complexType name="Map">
			<element maxOccurs="unbounded" minOccurs="0"
name="item" type="apachesoap:mapItem" /> 

Now i can see the value for the HashMap is defined as xsd:anyType, so I can
send everything.

When I now use to send an Array in the HashMap for the value I got some

org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
which is NOT expected, in something it was trying to deserialize.

Why this error???
--> the value of the HashMap looks like this:

<item xmlns:soapenc=""
xmlns:ns2="" xmlns="">
		<item xsi:type="soapenc:string">teset</item>
            <item xsi:type="soapenc:string">test</item>

So I have more then one item in the value of the HashMap

Okay,on the other hand -  when I send an Array to a Class which was defined
in the wsdl like this:

<element name="isActual">
			<element maxOccurs="unbounded"
name="isActualVersionOBIDs" type="xsd:string" /> 
			<element maxOccurs="unbounded" name="isActualKem"
type="xsd:string" /> 
			<element name="isActualLanguageID" type="xsd:string"

There is no Problem!
--> Axis know there is a Array coming and deserialize it.

Maybe I had define in my WSDL that the value can hold xsd:anyType with
I think this defines an Array[] of anyType - in Doc/lit - wrapped style?

Can someone tell me, what the hell I must do to send an Array in my HashMap
without an error when 
Axis want to deserialize the Value?

Some help will be appreciated

Thanks Tomi

View raw message