This is how Map can be described in deploy.wsdd

<typeMapping encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; qname="java:Map" serializer="org.apache.axis.encoding.ser.MapSerializerFactory" deserializer="org.apache.axis.encoding.ser.MapDeserializerFactory" type="java:java.util.Map"/>

which will be described in ur wsdl as

<schema targetNamespace="http://xml.apache.org/xml-soap"; xmlns="http://www.w3.org/2001/XMLSchema";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<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 maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem"/>
</sequence>
</complexType>


<complexType name="mapItem">
 <sequence>
 <element name="key" nillable="true" type="xsd:string"/>
 <element name="value" nillable="true" type="xsd:string"/>
 </sequence>
</complexType>

</schema>

the Web Service method which returns a map can be received into SOAP request and response messages.

Sameer.
.....................................................







From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Defining a map in WSDL
Date: Fri, 22 Aug 2003 16:39:47 +1000
MIME-Version: 1.0
Received: from apache.org ([208.185.179.12]) by mc10-f22.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 21 Aug 2003 23:40:40 -0700
Received: (qmail 1157 invoked by uid 500); 22 Aug 2003 06:39:51 -0000
Received: (qmail 1047 invoked from network); 22 Aug 2003 06:39:49 -0000
X-Message-Info: JGTYoYF78jE3bNuroOZbbjJXxxxpomJ0
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: Internet Mail Service (5.5.2656.59)
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 22 Aug 2003 06:40:40.0695 (UTC) FILETIME=[4DC9F070:01C36878]



Well this is pain in the neck. I have been trying to define a map, like java hash map, in WSDL. Have anyone done this before. Would you like to share your experience?

LEs

==========================================
Leslie ZHANG
E - Service Integration
Mathematical and Information Sciences
CSIRO
GPO Box 664, Canberra, ACT 2601, Australia
Ph: (02) 6216 7072, Fax: (02) 6216 7111
==========================================
"The future doesn't belong to the fainthearted; it belongs to the brave."
--- Ronald Reagan


_________________________________________________________________
Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




Reply via email to