This is a scenario which i have come across during my previous project. I have seen lot of posts in the forum asking about how to expose a remote function module, what is the URL to be generated, how to generate wsdl etc. So i thought this blog might be helpful for the beginners.
Follow these steps to expose the Remote Enabled Function Module as webservice.
- Import the Remote Function Module from R3 system to repository
- Create a message interface for the Remote Function Module.
The output and the input message are the request and response parameters of the Remote function module.
- Create a scenario in the Integration Directory.
- Create a Business Service MY_RFC_WS for SOAP Sender and R3 System for RFC receiver.
- Create a SOAP Sender Communication Channel
Create an RFC Communication Channel for RFC Receiver
- Create the Receiver Agreement
- Create the Sender Agreement
- Create the Interface Determination
- Create the Receiver Determination
- Now we have to generate the wsdl for the scenario we have created. For that in the integration directory in the main menu select Tools->Define Web Service click Continue and in the next screen for the Specify URL for webservice put
Note : The inbound address for SOAP messages is: http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
- Enter the values for specify interface
- Specify the Sender
Click Continue and click Finish now you will get a wsdl file which can be downloaded and saved. You can use some Webservice testing tools like XML Spy or SOAP UI to test the webservice using the wsdl we have generated.