我想用SAVON生成以下soap标题,但无法真正找到任何适当的文档,任何帮助将不胜感激。
<SOAP-ENV:Header>
<trp:protocolVersion>4.0</trp:protocolVersion>
<trp:id>*******</trp:id>
<trp:userId>*******</trp:userId>
<trp:service crv:objectType=“SERVICE”>
<crv:memberClass>xxxxxx</crv:memberClass>
<crv:memberCode>xxxxxx</crv:memberCode>
<crv:subsystemCode>xxxxxxxx</crv:subsystemCode>
<crv:serviceCode>xxx</crv:serviceCode>
</trp:service>
</SOAP-ENV:Header>
这是我到目前为止所做的,但我正在努力在标题中构建嵌套的objectType
{
"trp:protocolVersion" => 4.0
"trp:id" => id,
"trp:userId" => user_id
"trp:service" => {
'',
:attributes!=> {
'trp:service' => {'objectType' =>'SERVICE'}} },
}