1

我需要发送具有以下格式的 SOAP 消息(从我给出的示例中删减):-

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xmlns:ret="http://www.another.com/ret"
                  xmlns:ser="http://www.another.com/ret/retTransaction/service"
                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <ser:store>
      <ret:retTransaction>
        <ret:retailTransaction xsi:type="ret:NormalTransaction">                                           <ret:applicationId>POS</ret:applicationId>   
        </ret:retailTransaction>
      </ret:retTransaction>
    </ser:store>
  </soapenv:Body>
</soapenv:Envelope>

有问题的操作是“存储”。该操作在添加服务引用之后的代理中有一个“对象”参数。

如何确保发送格式正确的消息?特别是 SOAP 信封中的多个命名空间?

谢谢

4

0 回答 0