on 03-31-2008 12:53 AM
I have tried to import WSDL for two Web Services based on function modules into a Visual Studio C# project.
In both cases, the WSDL generates the web service; however when I build the project, both services have syntax errors in the Reference.cs file for all components of the Bapiret2 class.
Each component generates the following two error messages:
"An object reference is required for the nonstatic field, method or property '<namespace>.System.get"
and
"'string' does not contain a definition for 'Xml'"
In each case, the error messages refer to the line that reads:
"[System.Xml.Serialization.XmlElementAttribute (Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]"
that precedes the "Set" & "Get" methods for each Bapiret2 class component. The errors highlight the "System" and "X,l" components following "Form=" .
Has anyone seen this before?
I'm using SAP 2004s with Support Stack 15, and Visual Studio 2005 SP1 with the Enterprise Services Explorer add-on.
Thanks,
D.
Simply store the WSDL on your local drive, open it, and rename the element 'System' into 'SYSTEM', then generate the proxy using the modified WSDL.
- Juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.