Savon soap请求ruby格式
我目前正在做一个新的项目,我对savon来说是个新手。 我目前正在使用ruby-1.8.7和savon-1.0.0,我有以下SOAP XML请求Savon soap请求ruby格式,ruby,soap,savon,Ruby,Soap,Savon,我目前正在做一个新的项目,我对savon来说是个新手。 我目前正在使用ruby-1.8.7和savon-1.0.0,我有以下SOAP XML请求 <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices">
<soapenv:Header/>
<soapenv:Body>
<web:InvokeComponent1 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<PartnerName xsi:type="xsd:string">ABC</PartnerName>
<ComponentName xsi:type="xsd:string">TestingServices</ComponentName>
<arg1Value xsi:type="xsd:string">[CONTROL]
RequestID=83f6baab
RequestTime=13:14:15
RequestDate=08/08/2013
GenerateLead=N
Auto=Y
</arg1Value>
<RaUID xsi:type="xsd:string">username</RaUID>
<RaPW xsi:type="xsd:string">password1</RaPW>
<AgNO xsi:type="xsd:string">12345</AgNO>
</web:InvokeComponent1>
</soapenv:Body>
</soapenv:Envelope>
在“soap.body”值之后添加了一行,它也适用于SAVON 1.0.0和Ruby 1.8.7
:AgNO=> 'XXXXXXXXX...}},
:order! => [:PartnerName, :ComponentName,:arg1Value,:RaUID,:RaPW,:AgNO]
}
savon 1.0.0已弃用。你为什么要用它?为什么你要在一个新项目上使用ruby 1.8.7?好吧,让我试试Savon的新版本,这个项目是已经存在的更大项目的一部分,它正在使用1.8.7。我不能只为这个项目切换到新版本。
:AgNO=> 'XXXXXXXXX...}},
:order! => [:PartnerName, :ComponentName,:arg1Value,:RaUID,:RaPW,:AgNO]
}