簡體   English   中英

SOAP web 服務,更改命名空間而不編輯代碼?

[英]SOAP web service, change namespace without editing code?

我是否能夠在不編輯代碼的情況下更改所有 SOAP web 服務方法中的命名空間?

這條線...

<ConfirmIdentity xmlns="http://www.domain.com"> ?

這可能嗎?

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ConfirmIdentity xmlns="http://www.domain.com">
      <ConfirmIdentityRequest>
        <ApplicationCrediential>
          <API_Username>string</API_Username>
          <API_Password>string</API_Password>
        </ApplicationCrediential>
        <SessionId>string</SessionId>
      </ConfirmIdentityRequest>
    </ConfirmIdentity>
  </soap:Body>
</soap:Envelope>

據我所知,您無法更改命名空間,它是在 class 和方法的上下文中設置的。 即使你以某種方式從另一個包裝它,它仍然會覆蓋。 您唯一的選擇是代理消費者。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM