Note that there are some explanatory texts on larger screens.

plurals
  1. POSavon Issue Relating to Corrupt Requests
    text
    copied!<p>I updated my Savon version to 0.9.6 and my server requests seem to be malforming. Before the update, I was using Savon 0.9.2. </p> <p>I have a similar problem as someone mentioned in the post below, however, it differs in that the repeated items include full objects. I've tried using arrays, with no luck. <a href="https://stackoverflow.com/questions/6574250/savon-how-can-i-specify-a-custom-xml-in-a-hash-body-for-a-soap-request">Savon: How can I specify a custom XML in a hash body for a SOAP request?</a></p> <p>The requests are built this way:</p> <pre><code>#Address object address = { 'AddressCode' =&gt; 'Dest', 'Line1' =&gt; '1234 Anywhere Street', 'City' =&gt; 'Anywhere', 'Region' =&gt; 'Somewhere', 'PostalCode' =&gt; '12345', 'Country' =&gt; 'USA' } #Building the request request = {"Request" =&gt; { 'CompanyCode' =&gt; 'DEFAULT', 'DocType' =&gt; 'Word', 'Addresses' =&gt; {'BaseAddress' =&gt; [address]} }} </code></pre> <p><strong>0.9.6 (Broken) Request portion</strong></p> <pre><code> &lt;ser:Request&gt; &lt;ser:CompanyCode&gt;DEFAULT&lt;/ser:CompanyCode&gt; &lt;ser:DocType&gt;Word&lt;/ser:DocType&gt; &lt;ser:Addresses&gt; &lt;ins0:Addresses&gt; &lt;ins0:BaseAddress&gt;AddressCodeDestLine11234 Anywhere StreetCityAnywhere RegionSomewherePostalCode12345CountryUS&lt;/ins0:BaseAddress&gt; &lt;/ser:Addresses&gt; &lt;/ser:Request&gt; </code></pre> <p><strong>0.9.2 (Working) Request portion</strong></p> <pre><code>&lt;ser:Request&gt; &lt;ser:CompanyCode&gt;DEFAULT&lt;/ser:CompanyCode&gt; &lt;ser:DocType&gt;Word&lt;/ser:DocType&gt; &lt;ser:Addresses&gt; &lt;ser:BaseAddress&gt; &lt;ser:AddressCode&gt;Dest&lt;/ser:AddressCode&gt; &lt;ser:Line1&gt;1234 Anywhere Street&lt;/ser:Line1&gt; &lt;ser:City&gt;Anywhere&lt;/ser:City&gt; &lt;ser:Region&gt;Somewhere&lt;/ser:Region&gt; &lt;ser:PostalCode&gt;12345&lt;/ser:PostalCode&gt; &lt;ser:Country&gt;US&lt;/ser:Country&gt; &lt;/ser:BaseAddress&gt; &lt;/ser:Addresses&gt; &lt;/ser:Request&gt; </code></pre> <p>Does anyone have any ideas? I would really appreciate any advice you are willing to offer.</p> <p>Thank you!</p>
 

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