Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Nested members in XML-RPC

 
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)...
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic