Konvertieren Sie diese XML-Anforderung in eine ordnungsgemäße Savon-Anforderung
Kann das jemand konvertieren:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://test.org/" xmlns:hon="http://schemas.datacontract.org/2004/07/TEST.RVU.Entity">
<soapenv:Header/>
<soapenv:Body>
<tem:Authenticate>
<!--Optional:-->
<tem:authenticationDet>
<!--Optional:-->
<hon:AccountType>0</hon:AccountType>
<!--Optional:-->
<hon:Password>bacon</hon:Password>
<!--Optional:-->
<hon:UserName>smith</hon:UserName>
</tem:authenticationDet>
</tem:Authenticate>
</soapenv:Body>
</soapenv:Envelope>
Wie kann ich mit Soap gem SAVON dies in einer korrekten Syntax schreiben, die die client.request-Methode verarbeiten kann?
Ich habe es versucht:
client.request :tem, :authenticate, body: { "authenticationDet" => { "AccountType" => 0, "Password" => "bacon", "UserName" => "smith"}}
aber ich bekomme einen HTTP 400 Fehler.
Irgendein Rat?