axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sameer Bombatkar" <sameer_...@hotmail.com>
Subject Re: Defining a map in WSDL
Date Fri, 22 Aug 2003 09:37:18 GMT
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: Leslie.Zhang@csiro.au
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>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 axis-user-help@ws.apache.org; run by ezmlm
>Precedence: bulk
>list-help: <mailto:axis-user-help@ws.apache.org>
>list-unsubscribe: <mailto:axis-user-unsubscribe@ws.apache.org>
>list-post: <mailto:axis-user@xml.apache.org>
>Delivered-To: mailing list axis-user@ws.apache.org
>Message-ID: 
><754324CDE8E4EE4498D8E0357D91368501068BEC@saab-bt.act.cmis.CSIRO.AU>
>X-Mailer: Internet Mail Service (5.5.2656.59)
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>Return-Path: axis-user-return-17833-sameer_bom=hotmail.com@ws.apache.org
>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


Mime
View raw message