ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carroll" <...@microbrightfield.com>
Subject RE: Passing a Hash to a remote procedure
Date Mon, 29 Jul 2002 21:18:39 GMT

You'll want to use a java Hashtable (java.util.Hashtable), which is the
equivalent of 
an XML-RPC struct.  

-Jim

> -----Original Message-----
> From: kenglish@netmore.net [mailto:kenglish@netmore.net] 
> Sent: Monday, July 29, 2002 5:10 PM
> To: rpc-user@xml.apache.org
> Subject: Passing a Hash to a remote procedure
> 
> 
> hello all,
> 	We have a server written in perl which uses xml-rpc. We 
> are trying to write java clients that can communicate with 
> this. The perl server takes in a hash-ref (as called in perl) 
> or a struct...It seems that the java client can only send a 
> vector or array. Is there a way to pass a struct? 
>    basically the xml request looks like this :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <methodCall>
> <methodName>process</methodName>
>   <params>
>     <param>
>       <value>
>          <struct>
>            <member>                
>              <name>name</name>
>              <value>
>                <string>kevin</string>
>              </value>
>            </member>
>            <member>                
>              <name>address</name>
>              <value>
>                <string>123 fake street</string>
>              </value>
>            </member>
>            <member>                
>              <name>zip</name>
>              <value>
>                <string>90210</string>
>              </value>
>            </member>
>          </struct>
>        </value>
>      </param>
>   </params>
> </methodCall>
> 
> any help would be cool.
> 
> kevin
> 

Mime
View raw message