How To: Generate a WSDL from a RFC Function Module
WSDL – Web Service Description language – (WSDL, pronounced ‘wiz-del’) is an XML-based language that provides a model for describing Web services. (A web service is typically an application programming interface (API) or Web API that is accessed via Hypertext Transfer Protocol (HTTP) and executed on a remote system, hosting the requested service.)
An example in layman’s terms is, you can have a RFC (Remote Function Call) function module which is used in SAP for example to create a sales document. You then have a company outside of your system which needs to send the input parameters to your system in order to create the sales document. The process to follow below will create the interface WSDL which the external company can use to place the data.
- Select the Function module for which you wish to create the WSDL, either from transaction SE80 or Se37.
- Check in the Attributes of the FM that the FM has a processing type of “Remote-Enabled Module”.
- From within the FM use the following menu path: Utilities–>More Utilities–>Create Web Service –>From the Function Module.
- Then follow the Create Web service Wizard.
- You will need to create a workbench transport request.
- Then go to transaction WSCONFIG to see the web service for SOAP runtime. Double click on the web service.
- Go to transaction WSADMIN and select the web service.
- Then use the menu path: Web Service–>WSDL to generate the WSDL.
- You are now able to use the WSDL and URL. Use a user interface like SOAPUI to send values and check the response.