title: Perl XML-RPC output format/schema
body: <p>I'm writing a script in Perl to use two XML-RPC APIs. With one of them it works fine, with the other one i always get an empty result. 
  After contacting the vendor of the second API, they sent me a PHP sample script to operate with the API. I couldn't find any differences in the setup, so after some debbuging i discovered that the XML sent differs by a few \ns:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;methodCall&gt;
  &lt;methodName&gt;solde&lt;/methodName&gt;
  &lt;params&gt;
  &lt;param&gt;&lt;value&gt;&lt;struct&gt;
  &lt;member&gt;&lt;name&gt;utilisateur&lt;/name&gt;&lt;value&gt;&lt;string&gt;user&lt;/string&gt;&lt;/value&gt;&lt;/member&gt;
  &lt;member&gt;&lt;name&gt;motDePasse&lt;/name&gt;&lt;value&gt;&lt;string&gt;pass&lt;/string&gt;&lt;/value&gt;&lt;/member&gt;
  &lt;/struct&gt;&lt;/value&gt;
  &lt;/param&gt;
  &lt;/params&gt;
  &lt;/methodCall&gt;
  </code></pre>
  
  <p>This is sent by the Perl script(i've tried with XML::RPC, Frontier::Client, RPC::XML - no luck in any case).
  The PHP script(the one that works) sends this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;methodCall&gt;
  &lt;methodName&gt;solde&lt;/methodName&gt;
  &lt;params&gt;
  &lt;param&gt;
  &lt;value&gt;&lt;struct&gt;
  &lt;member&gt;&lt;name&gt;identification&lt;/name&gt;
  &lt;value&gt;&lt;struct&gt;
  &lt;member&gt;&lt;name&gt;utilisateur&lt;/name&gt;
  &lt;value&gt;&lt;string&gt;user&lt;/string&gt;&lt;/value&gt;
  &lt;/member&gt;
  &lt;member&gt;&lt;name&gt;motdePasse&lt;/name&gt;
  &lt;value&gt;&lt;string&gt;pass&lt;/string&gt;&lt;/value&gt;
  &lt;/member&gt;
  &lt;/struct&gt;&lt;/value&gt;
  &lt;/member&gt;
  &lt;/struct&gt;&lt;/value&gt;
  &lt;/param&gt;
  &lt;/params&gt;
  &lt;/methodCall&gt;
  </code></pre>
  
  <p>The only difference between the two i see is a few newlines. I've sent POST requests with curl with the two XMLs, and in case #1 i get no result, in case #2 it works.
  Obviously the implementation of the second API(written in PHP btw) is more pretentious(reminder - in API #1 it works with the first XML, API #2 - no result).</p>
  
  <p>What can i do, apart from generate the XML myself, to address this issue? Is there a way to tell any one of the existing Perl XML-RPC libraries to format the XML in such a way that the server will like it?</p>