Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

C# Web Service Proxy - Autogenerated Error

Hi all,

I'm trying to consume a SAP Webservice in a C# console application within Visual Studio 2005. I've added the web reference to the WSDL and as such Reference.cs has been automatically generated. My problem is that I'm receiving two different errors at multiple different locations within this file.

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

On the line System.Xml.Serialization.XmlElementAttribute(Form=_System_._Xml_.Schema.XmlSchemaForm.Unqualified) (Surrounded by square brackets, I'm not sure how to escape the hyperlink code), I'm receiving the following errors respectively:

System - An object reference is required for the nonstatic field, method, or property 'WSTest.dotnetWS.Bapiret2.System.get'

XML - 'string' does not contain a definition for 'Xml'

I'm not sure why, as this code has been automatically generated, that I'm receiving these errors, is there something that I need to change in order to rectify this problem?

Thanks,

Cal

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question