ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Passing a Hash to a remote procedure
Date Tue, 30 Jul 2002 16:22:14 GMT
yeah, that works, the code ended up looking like this and it works fine:

	XmlRpcClient server = new XmlRpcClient(server_url);
	Vector params = new Vector();
	Hashtable ht = new Hashtable();
	ht.put("address",address) ;
	ht.put("zip",zip) ;
	ht.put("name",name) ;


	 Hashtable result =
           (Hashtable) server.execute("process", params);

         for (Enumeration e = result.keys(); e.hasMoreElements() ;) {
            String key = (String) e.nextElement() ;
            System.out.println(key   + "=" + result.get(key));

-----Original Message-----
From: John Twomey []
Sent: Tuesday, July 30, 2002 5:21 AM
Subject: RE: Passing a Hash to a remote procedure

A Java Hashtable will be marshaled into an Structure by this
implementation of XML-RPC.
Check it out here:

See ya,


  John Twomey
  Software Engineer
  GHS Data Management Inc.
  (207) 622-7153 ext. 176

-----Original Message-----
From: []
Sent: Monday, July 29, 2002 5:10 PM
Subject: Passing a Hash to a remote procedure

hello all,
	We have a server written in perl which uses xml-rpc. We are
to write java clients that can communicate with this. The perl server
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"?>
               <string>123 fake street</string>

any help would be cool.


View raw message