Note that there are some explanatory texts on larger screens.

plurals
  1. POsavon response.body does not contains xml attributes
    primarykey
    data
    text
    <p>I have following savon response: (contains notes, and other attributes such as create date, create user, location etc)</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;S:Body&gt; &lt;ns2:getSomeAPIResponse xmlns:ns2="http://v2_0.some.webservices.csx.dtv.com/"&gt; &lt;return type="COMMENT" createDate="2013-11-21T10:32:17.000Z" createUser="5" location="BOSTON"&gt;my fifth note&lt;/return&gt; &lt;return type="COMMENT" createDate="2013-11-21T09:04:18.000Z" createUser="POSSTD" location="BOSTON"&gt;fourth note&lt;/return&gt; &lt;return type="COMMENT" createDate="2013-11-21T08:49:20.000Z" createUser="POSSTD" location="BOSTON"&gt;third note&lt;/return&gt; &lt;return type="COMMENT" createDate="2013-11-21T08:43:42.000Z" createUser="POSSTD" location="BOSTON"&gt;second note&lt;/return&gt; &lt;return type="COMMENT" createDate="2013-11-21T08:43:42.000Z" createUser="POSSTD" location="BOSTON"&gt;first note&lt;/return&gt; &lt;/ns2:getSomeAPIResponse &gt; &lt;/S:Body&gt; &lt;/S:Envelope&gt; </code></pre> <p>When I try to get the response.body, it contains the notes but not the attribures such as create user, create date, location etc. which are missing, as in:</p> <pre><code>{:get_some_api_response=&gt; {:return=&gt; ["my fifth note", "fourth note", "third note", "second note", "first note"], :"@xmlns:ns2"=&gt;"http://v2_0.some.webservices.csx.dtv.com/"}} </code></pre> <p>I need to have these attributes as well, if possible, in the response.body, or by any other possible means. Any help please?</p>
    singulars
    1. This table or related slice is empty.
    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.
    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