Hi everyone,

I'm new to this list and I have a problem which is seriously holding
back my development :(

I've just finished constructing a web service (CFMX 6.1) which returns a
structure containing items that should be able to be of any data type
(strings, arrays or more structures).

According to all documentation I can find, Axis should convert the
struct data type to a "Map" with the SOAP complex type defined as
follows:

<complexType name="Map">
<sequence>
<element name="item" minOccurs="0" maxOccurs="unbounded">
<complexType>
<all>
<element name="key" type="xsd:anyType"/>
<element name="value" type="xsd:anyType"/>
</all>
</complexType>
</element>
</sequence>
</complexType>

This would work perfectly for me. However when I expose my web service,
the "Map" type is defined in the WSDL file as:

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

Obviously I cannot work with this as the mapItem elements are both
defined as strings rather than anyType as I'd like. Any ideas what I'm
doing wrong? Or what I could do to solve this?

Thanks,
Chris

Chris Rice
[EMAIL PROTECTED]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to