Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Savon soap请求ruby格式_Ruby_Soap_Savon - Fatal编程技术网

Savon soap请求ruby格式

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/"

我目前正在做一个新的项目,我对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/" 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]
}