Savon和Ruby调用Web服务
我有一个SOAP请求Savon和Ruby调用Web服务,ruby,savon,Ruby,Savon,我有一个SOAP请求 <Register> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" > <soap:Header/><soap:Body> <Register> <identifiers>?</identifiers> <userId></userId> <password pwct="?
<Register>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" >
<soap:Header/><soap:Body>
<Register>
<identifiers>?</identifiers>
<userId></userId>
<password pwct="?">?</password>
<locale>?</locale>
</Register>
Fully Formed Request that works is
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header/>
<soap:Body>
<Register>
<identifiers>
<DIdentifiers>
<Section name="IDENTIFIERS">
<Property name="Type" value="Support" />
<Property name="Version" value="3.80 Jan 03 2013" />
<Property name="Timestamp" value="2015/06/08 11:57:48 GMT" />
<Property name="SerialNumber" value="00004" />
<Property name="Hostname" value="gmail.com" />
<Property name="ProductNumber" value="C00004" />
</Section><Section name="INTERFACE_IDENTIFIERS">
<Property name="InterfaceAddress" value="45.34.54.6"/>
<Property name="InterfaceMacAddress" value="00579FGHslkf"/>
</Section>
</DIdentifiers>
</identifiers>
<userId> <userId>
<password pwct="TRUE">shirl123</reg:password>
<locale>en_US</locale>
<Register>
</soap:Body>
</soap:Envelope>
I have added
WSDL client = Savon::client(wsdl: " ")
And calling method
client.call(:Register, message: { })
但这是行不通的
我提到了这个
大家好,欢迎来到stack overflow。你尝试了什么ruby代码?(即使它不工作,我们也可以帮助您调试它)。你能编辑你的问题并把ruby代码放在那里吗?(不要在注释中添加代码,因为格式很糟糕)。此外-添加任何其他可能与你的问题相关的内容,例如你想做什么?当你尝试使用ruby时,你遇到了什么错误?不要再问了,改进你之前的问题。(不要在注释中添加代码,因为格式很糟糕)。使用版本2。没有理由固守旧版本。您的有效负载进入Savon中呼叫的
消息
散列。
I'm passing
DeviceIdentifiers: {
:Section=> {
{ :Property => nil,
:attributes! => { :Property => { "name" => Type, "value" =>Support} }
}
}