Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with structure -> map in SOAP encoding

Status
Not open for further replies.

Chris192

Programmer
Joined
Feb 10, 2004
Messages
1
Location
GB
Hoping someone can help me here as I'm getting desperate! :)

I'm exposing a web service using ColdFusion MX 6.1. According to all documentation I can find, Axis should convert the structure data type to "Map" with this defined as follows:

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

This would work perfectly for me. However when I expose my web service, the map type is defined as:

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

I cannot work with this as the mapItem elements are both defined strings rather than anyType in the documented specification, and I need to use other complex types as values in the mapItem.

Anyone got any ideas?

Kind regards,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top