title: Complex soap_header xml objects for ruby savon gem
body: <p>Working on a project with this WSDL: <a href="http://developer.ebay.com/webservices/latest/ebaysvc.wsdl" rel="nofollow">http://developer.ebay.com/webservices/latest/ebaysvc.wsdl</a></p>
  
  <pre><code>$client = Savon.client(
  
  :wsdl =&gt; "http://developer.ebay.com/webservices/latest/ebaysvc.wsdl",
  :endpoint =&gt; "https://api.sandbox.ebay.com/wsapi?callname=AddItem&amp;siteid=0&amp;version=733&amp; Routing=new",
  :headers =&gt; { "Content-Type" =&gt; "application/soap+xml", "SOAPAction" =&gt; "AddItemRequest"},
  :namespace =&gt; "urn:ebay:apis:eBLBaseComponents",
  :soap_header =&gt; { CREDENTIALS GO HERE: SEE BELOW }
  )
  </code></pre>
  
  <p>What I need is a complex type xml format. Where the first part of soap_header is RequestCredentials and has several child nodes, and one of those (Credentials) has 3 child nodes... I also need to escape the lower camel case and just use camel case.</p>
  
  <p>The final result with the xml output should look something like:</p>
  
  <pre><code>&lt;urn:RequestCredentials&gt;
    &lt;urn:eBayAuthToken&gt;
    AUTH TOKEN HERE
    &lt;/urn:eBayAuthToken&gt;
    &lt;urn:Credentials&gt;
      &lt;urn:DevId&gt;DEVID HERE&lt;/urn:DevId&gt;
      ect..... (two more child nodes (AppId, and AuthCert)
    &lt;/urn:Credentials&gt;
  &lt;/urn:RequestCredentials&gt;
  </code></pre>
  
  <p>Here is the error I receive:
  14007
       Error
       SOAP Authentication failed due to missing or invalid security header.</p>
  
  <p>Any ideas on how to correctly format the xml with the savon gem?</p>