Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to parse SOAP response from ruby client?
    primarykey
    data
    text
    <p>I am learning Ruby and I have written the following code to find out how to consume SOAP services:</p> <pre><code>require 'soap/wsdlDriver' wsdl="http://www.abundanttech.com/webservices/deadoralive/deadoralive.wsdl" service=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver weather=service.getTodaysBirthdays('1/26/2010') </code></pre> <p>The response that I get back is:</p> <pre><code>#&lt;SOAP::Mapping::Object:0x80ac3714 {http://www.abundanttech.com/webservices/deadoralive} getTodaysBirthdaysResult=#&lt;SOAP::Mapping::Object:0x80ac34a8 {http://www.w3.org/2001/XMLSchema}schema=#&lt;SOAP::Mapping::Object:0x80ac3214 {http://www.w3.org/2001/XMLSchema}element=#&lt;SOAP::Mapping::Object:0x80ac2f6c {http://www.w3.org/2001/XMLSchema}complexType=#&lt;SOAP::Mapping::Object:0x80ac2cc4 {http://www.w3.org/2001/XMLSchema}choice=#&lt;SOAP::Mapping::Object:0x80ac2a1c {http://www.w3.org/2001/XMLSchema}element=#&lt;SOAP::Mapping::Object:0x80ac2774 {http://www.w3.org/2001/XMLSchema}complexType=#&lt;SOAP::Mapping::Object:0x80ac24cc {http://www.w3.org/2001/XMLSchema}sequence=#&lt;SOAP::Mapping::Object:0x80ac2224 {http://www.w3.org/2001/XMLSchema}element=[#&lt;SOAP::Mapping::Object:0x80ac1f7c&gt;, #&lt;SOAP::Mapping::Object:0x80ac13ec&gt;, #&lt;SOAP::Mapping::Object:0x80ac0a28&gt;, #&lt;SOAP::Mapping::Object:0x80ac0078&gt;, #&lt;SOAP::Mapping::Object:0x80abf6c8&gt;, #&lt;SOAP::Mapping::Object:0x80abed18&gt;] &gt;&gt;&gt;&gt;&gt;&gt;&gt; {urn:schemas-microsoft-com:xml-diffgram-v1}diffgram=#&lt;SOAP::Mapping::Object:0x80abe6c4 {}NewDataSet=#&lt;SOAP::Mapping::Object:0x80ac1220 {}Table=[#&lt;SOAP::Mapping::Object:0x80ac75e4 {}FullName="Cully, Zara" {}BirthDate="01/26/1892" {}DeathDate="02/28/1979" {}Age="(87)" {}KnownFor="The Jeffersons" {}DeadOrAlive="Dead"&gt;, #&lt;SOAP::Mapping::Object:0x80b778f4 {}FullName="Feiffer, Jules" {}BirthDate="01/26/1929" {}DeathDate=#&lt;SOAP::Mapping::Object:0x80c7eaf4&gt; {}Age="81" {}KnownFor="Cartoonists" {}DeadOrAlive="Alive"&gt;]&gt;&gt;&gt;&gt; </code></pre> <p>I am having a great deal of difficulty figuring out how to parse and show the returned information in a nice table, or even just how to loop through the records and have access to each element (ie. FullName,Age,etc). I went through the whole "getTodaysBirthdaysResult.methods - Object.new.methods" and kept working down to try and work out how to access the elements, but then I get to the array and I got lost.</p> <p>Any help that can be offered would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload