Skip to Content
avatar image
Former Member

Consume sap webservices wsdl from .net

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 11, 2007 at 08:23 PM

    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é

    Add comment
    10|10000 characters needed characters exceeded