axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurkan, Ozzie (MAN-Corporate)" <>
Subject RE: How do I tell Axis to deserilize an xml-soapSOAPStruct in stu bs?
Date Mon, 15 Dec 2003 18:51:09 GMT
This is a snippet from my wsdl, and I see that the "mapItem" definition is
under the apachesoap namespace. See, if moving it will fix it...

<schema targetNamespace=""
  <import namespace="" /> 
  <complexType name="mapItem">
  <element name="key" nillable="true" type="xsd:string" /> 
  <element name="value" nillable="true" type="xsd:string" /> 
  <complexType name="Map">
  <element maxOccurs="unbounded" minOccurs="0" name="item"
type="apachesoap:mapItem" /> 


-----Original Message-----
From: Scott Ellsworth [] 
Sent: Friday, December 12, 2003 7:01 PM
Subject: How do I tell Axis to deserilize an xml-soapSOAPStruct in stubs?

Howdy, all.

I have read through the responses to my last post, and tried various 
experiments, but I think I am just missing something.  Here is a more 
specific, and thus hopefully easier question that might illuminate what 
I am missing.

I am trying to deserialize the following return from my 
SOAP::Lite-based server using axis-generated stub classes, and it is 
complaining that it cannot deserialize the SOAPStruct being returned.  
I have tried to provide one, and I am not sure why it is not being 

			<s-gensym3 xsi:type="namesp2:SOAPStruct">
				<admin xsi:type="xsd:int">
				<guest xsi:type="xsd:int">

In the envelope, they defined namesp2 as 
xmlns:namesp2="", thus I better define 
what to do with an  I also need to 
tell it how to interpret the names and values.

I do this with the following <types> element - one defining my map, one 
defining the entries in the map, and one to tell it how to handle an 
xml-soap SOAPStruct:

namespace="" />
			<complexType name="mapItem">
					<element name="key" nillable="true"
type="string" />
					<element name="value"
nillable="true" type="string" />
			<complexType name="Map">
					<element maxOccurs="unbounded"
minOccurs="0" name="item" 
type="tns:mapItem" />
namespace="" />
			<complexType name="SOAPStruct">
					<element name="Map" type="tns:Map"/>

This should have defined what to do with an 
{}SOAPStruct, as well as the Map and MapItems it 

When I run this, I get the error

      [java] Error: org.xml.sax.SAXException: Deserializing parameter 
's-gensym48':  could not find deserializer for type 

This confuses me, though, because my WSDL contains a SOAPStruct def, as 
well as the map and map item I would have expected to have used.

For completeness, here are the messages and operations.

	<message name="idNameMapResponse">
		<part name="idNameMapReturnValue" type="tns:Map" />

		<operation name="get_user_ids_by_name">
			<input message="tns:config_nameRequest" />
			<output message="tns:idNameMapResponse" />

View raw message