cancel
Showing results for 
Search instead for 
Did you mean: 

.NET application consumes CRM BAPI_BUPA_SEARCH web service

Former Member
0 Kudos

Hi,

SAP CRM5.0 Business Partner does not contain Search BAPI. So I exposed the BP Search web service from function module BAPI_BUPA_SEARCH.

However, when added the generated WSDL (

http://XXXX.yyyy.net:8000/sap/bc/srt/rfc/sap/Z_BUBA_SEARCH_2?sap-client=130&wsdl=1.1) to the web reference in VS.NET 2005, I am getting the following errors when build the .Net application:

An object reference is required for the nonstatic field, method, or property 'BPSearch.SAPWS.Bapiret2.System.get' C:\SAP\BPSearch\BPSearch\BPSearch\Web References\SAPWS\Reference.cs

'string' does not contain a definition for 'Xml' C:\SAP\BPSearch\BPSearch\BPSearch\Web References\SAPWS\Reference.cs

Does anyone know what might cause the problem?

Thanks

Steve

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The error is because of the "System" keyword in the WSDL file. You need to remove it.

Regards.

Former Member
0 Kudos

Thanks Jitesh,

You are right. For some reason, the WSDL file contains the "System' keyword as a property of Bapiret2 class. After I renamed the property from System to SystemField, it compiled successfully.

Steve

Answers (0)