ruby savon gem的复杂soap_头xml对象

ruby savon gem的复杂soap_头xml对象,ruby,xml,wsdl,savon,Ruby,Xml,Wsdl,Savon,使用此WSDL处理项目: 我需要的是一个复杂类型的xml格式。其中,soap_头的第一部分是RequestCredentials,有几个子节点,其中一个(凭据)有3个子节点。。。我还需要避开较低的camel case,只使用camel case xml输出的最终结果应该如下所示: <urn:RequestCredentials> <urn:eBayAuthToken> AUTH TOKEN HERE </urn:eBayAuthToken> &

使用此WSDL处理项目:

我需要的是一个复杂类型的xml格式。其中,soap_头的第一部分是RequestCredentials,有几个子节点,其中一个(凭据)有3个子节点。。。我还需要避开较低的camel case,只使用camel case

xml输出的最终结果应该如下所示:

<urn:RequestCredentials>
  <urn:eBayAuthToken>
  AUTH TOKEN HERE
  </urn:eBayAuthToken>
  <urn:Credentials>
    <urn:DevId>DEVID HERE</urn:DevId>
    ect..... (two more child nodes (AppId, and AuthCert)
  </urn:Credentials>
</urn:RequestCredentials>

在这里验证令牌
德维德在这里
发射型计算机断层扫描仪。。。。。(另外两个子节点(AppId和AuthCert)
以下是我收到的错误: 14007 错误 由于缺少或无效的安全标头,SOAP身份验证失败

关于如何使用savon gem正确格式化xml有什么想法吗

<urn:RequestCredentials>
  <urn:eBayAuthToken>
  AUTH TOKEN HERE
  </urn:eBayAuthToken>
  <urn:Credentials>
    <urn:DevId>DEVID HERE</urn:DevId>
    ect..... (two more child nodes (AppId, and AuthCert)
  </urn:Credentials>
</urn:RequestCredentials>