Chris,

This is a bug in Axis 1.1.  A pretty serious one that for some reason went
unnoticed.  Generally, since CFML is typeless, everything can be a string,
so this is harmless in many (most?) cases.  I have fixed the current Axis
1.2 source.


If you really need this fixed, you can use an updated axis.jar.  This is not
supported, your mileage may vary, etc, etc. The 1.2alpha release does NOT
have the fix, so you will need to get a recent build of the CVS source.

You would need to put this jar file on the classpath before webservices.jar,
which can be found in CFusionMX/lib.

--
Tom Jordahl
Macromedia

________________________________________
From: Chris Rice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 5:19 AM
To: CF-Talk
Subject: Problem using structures with SOAP...

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