Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Nested members in XML-RPC  RSS feed

 
Sean Bruton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to tie into a perl script that uses the Frontier perl modules to implement XML-RPC... anyways, it's returning nested objects:
HTTP/1.1 200 OK
Date: Wed, 23 Jan 2002 06:46:42 GMT
Server: libwww-perl-daemon/1.24
Content-Length: 1631
Content-Type: text/xml
<?xml version="1.0"?>
<methodResponse>
<params>
<param><value><struct>
<member><name>msaccess</name><value><struct>
<member><name>sfgsdgggdfg</name><value><string>D:\Code\Current Projects\nt_tester\nt_test.mdb</string></value></member>
</struct></value>
</member>
<member><name>sql</name><value><struct>
<member><name>import</name><value><array><data>
<value><string>Nimda</string></value><value><string>frussell</string></value></data></array></value>
</member>
<member><name>PerfMetrics</name><value><array><data>
<value><string>PerfMetrics</string></value><value><string>sa</string></value></data></array></value>
</member>
<member><name>SQLSETUP</name><value><array><data>
<value><string></string></value><value><string>sa</string></value></data></array></value>
</member>
<member><name>MQIS</name><value><array><data>
<value><string>MQIS</string></value><value><string></string></value></data></array></value>
</member>
<member><name>LocalServer</name><value><array><data>
<value><string></string></value><value><string>frussell</string></value></data></array></value>
</member>
<member><name>test</name><value><array><data>
<value><string>support</string></value><value><string>support</string></value></data></array></value>
</member>
<member><name>SQLSETUP2K</name><value><array><data>
<value><string></string></value><value><string>sa</string></value></data></array></value>
</member>
<member><name>Sanity</name><value><array><data>
<value><string>Sanity</string></value><value><string>sa</string></value></data></array></value>
</member>
</struct></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>
as you can see there are some nested structs in there, but all i can seem to get at w/ java is the top struct and two strings (the names of the two next nested structs)... any ideas???
 
Sean Bruton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nevermind...
it's been a long long time since i've slept...
was looking at the keys, somehow forgot hash.get(key)...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!