cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using Web Services in Visual Studio

Former Member
0 Kudos

I'm using VB.NET to access SAP BAPI's via web services from a 4.7 system. This works really well (and in my view is simpler than the .Net connector) until I try and add a Web reference to a SAP web service that returns a BAPIRET2 structure - as soon as I add the reference, I get a load of "Reference to a non-shared member requires an object reference" errors - one for each line in the BAPIRET2 definition that VS automatically adds.

Specific Example (guess who's been using OSS too long!):

1. Browse the R/3 Web Service Repository at:

http://yourmachinename:8000/sap/bc/bsp/sap/WebServiceBrowser/search.html

2. Search for BAPI_USER_GET_DETAIL, click the small "wsdl" link.

3. Copy the resulting URL, in VS add a web reference and type the necessary security details

4. Immediately in the task list 15 build errors show - one for each line of the BAPIRET2 definition.

Would be very grateful for any help on this!

Thanks

Martin Dolphin

Bentley Motors Limited

martin.dolphin@bentley.co.uk

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Did you ever get this figured out? I am having exactly the same problem in code generated by VS, with the BAPIRET2 structure.

Any help you could provide would be greatly appreciated.

Thanks!

Leighton Wingerd

Adirondack Solutions, Inc.

lwingerd@adirondacksolutions.com