Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Hello Integration Team,




In this blog, I shall explain how we can  generate WSDL from existing function module and use it in SAP Cloud Platform Integration

Benefits:

We can use all the existing standard BAPIs along with custom BAPIs from SAP  ERP instead of developing new web services

Background:

RFC adapter in SAP Cloud Platform Integration  yet to be built, hence as of now, we can connect to RFC via a SOAP Adapter in SAP Cloud Platform Integration.

We can expose the RFC as a soap service using SE37 and configure the endpoint using SOAMANAGER.

 

However, there is an easier way to do the same, just by using a particular format to generate the wsdl file.

In the following scenario, we’ll be using an RFC at the receiver end via a SOAP receiver channel in SAP Cloud Platform Integration

Prerequisites:

The BAPI needs to be remote enabled.



 

Procedure:

 

  1. To obtain the wsdl of the BAPI, follow the below format: http://<host>:<port>/sap/bc/soap/wsdl11?services=<BAPI Name>&sap-client=<client>&sap-user=<user>&sap-password=<password>


You can test the wsdl in the browser and then import it in the wsdl folder in SAP Cloud Platform Integration.

 



  1. Create a SOAP adapter and use the URL in the location field (towards the end of the wsdl file) in the address.


The address will be in the form: http://<host>:<port>/sap/bc/soap/rfc



 

Use the wsdl in the SAP Cloud Platform Integration . The service, endpoint and operation fields will get populated automatically.

 



  1. Save and test the scenario.


3 Comments