cancel
Showing results for 
Search instead for 
Did you mean: 

Consume sap webservices wsdl from .net

Former Member
0 Kudos

Hi everyone

I am trying to consume SAP webservcie form .net application by adding to web reference. when i try to build to create a proxy it is gicing errors.

" An object reference is required for the nonstatic field, method, or property 'localhost.Bapiret2.System.get'An object reference is required for the non static field, method or property 'local.bapiret2.System.get'"

"String does not have definition for XML"

these are tow error but sadly been repeated for 28 times (quite a long list of errors)

ps: guess not so important when i tried to add web reference it never asked me SAP WAS credentials.

can help will be appreciated

cheers

ram

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ram,

this is a bug in SAP and our development is working on a correction.

The problem is that the SAP structure contains a field with the name "System".

Therefore VS gets confused with the coding that is generated because "System" is already used .NET internally.

As a workaround you can regenerate the WSDL such that the variables are generated in uppercase rather than case sensitive.

Best regards,

André

Former Member
0 Kudos

How would one regenerate the WSDL in such a way?

Former Member
0 Kudos

hi Dennis,

There is no need to regenerate Web Service it can be done in another way also

Sachin

Former Member
0 Kudos

Thanks...I think.

Answers (0)