Naming conflict error while consuming SAP Web Service in .net


You can fix this issue by adding Global before all calls giving the error. This has happened cos of system namespace in BAPI and Windows.

Example

Another possible solution of this is by adding an alias for System.XML and change System.XML with SysXml as below:

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;
      }
   }
}

Updated on: 18-Dec-2019

137 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements