我试图创建以下肥皂信封,但我无法在某个对象中同时添加类型和VALUE
<env:Envelope>
<env:Body>
<typens:SendRequest>
<typens:someStuff>123</typens:someStuff>
<typens:someAuthStuff xsi:type="somenamespace:SomeObject">VALUE</typens:someAuthStuff>
</typens:SendRequest>
</env:Body>
</env:Envelope>
这是我的留言:
client.call(:send, message: {
someStuff: 123,
someAuthStuff: { '@xsi:type' => 'somenamespace:SomeObject' },
}
)
但是......我怎样才能添加&#39; VALUE&#39;在someAuthStuff中?
与How to use objects with xsi:types in Savon非常相似的问题,但现在在Savon 2.x中