在 .net 中使用 SAP Web 服務時出現命名衝突錯誤


可以在引發錯誤的所有呼叫中新增 Global 來修復此問題。這是因為 BAPI 和 Windows 中的系統名稱空間導致的。

示例

此問題的另一種可能的解決方案是為 System.XML 新增一個別名,並將 System.XML 更改為 SysXml,如下所示

using SysXml = System.Xml;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=SysXml.Schema.XmlSchemaForm.Unqualified)]
public string Type {
   get {
      return this.typeField;
      set {
         this.typeField = value;
      }
   }
}

更新時間:18-Dec-2019

157 次瀏覽

開啟 職業生涯

完成課程以獲得認證

開始學習
廣告
© . All rights reserved.