How to enable a SAP FM or BAPI for XML-RPC or SOAP

2019-09-13 04:54发布

问题:

I just created a Function Module, made it Remote-Enabled, and now I want to invoke it via XML-RPC over HTTP. I'm on SAP NetWeaver App Server ABAP v7. What other configuration is required in order to expose my FM over XML-RPC? How do I configure the end-point URL and all that?

Many thanks.

回答1:

There are several explanations on the subject in on SDN, as here and here which describe the generation of a webservice from a function module, and here, which describe the basic webservice configuration (ie SICF).



回答2:

What concerns XML-RPC

No, this is not possible to directly call SAP FM in XML-RPC style. You have two workarounds:

  1. Use SAP SOAP adapter for calling SOAP-enabled FMs
  2. Make a SOAP wrapper for your XML-RPC call in whatever programming environment you have. It is rather simple

What concerns SOAP

It is natively supported, there are plenty of manuals how to do it.