Scenario on RFC to SOAP

11
Scenario on RFC to SOAP By Viswanadh, PI Competency Team, Yash Technologies In this blog, we will discuss on how to design and configure a scenario to use sender RFC adapter and receiver SOAP adapter. RFC adapter in XI Adapter Engine supports Secure Network Communications (SNC). It is used to get connected to SAP R/3 system, used for synchronous communications and receive RFC messages when triggered in SAP R/3 System. SNC protects the data communication paths between the various components of the SAP System. RFC adapter converts the RFC data into RFC XML (XML message format) and send it Integration engine for further processing using the pipe line steps. SOAP adapter in XI Adapter Engine is used to exchange SOAP message between Integration server and Web service servers. Though you can specify security settings to be used to sign/verify the message to add security to the message exchange, scenario is developed selecting HTTP as transport protocol and SOAP 1.1 as message protocol. The scenario in this posting is to trigger RFC message to XI that will send SOAP message to Web Service server to execute its method like sending a SMS to remote mobile and gets the response message and passes it to source R/3 System. Find below the step-by-step procedure to achieve this scenario: Development in R/3 System: a. RFC is created at the R/3 side with the following parameter  

Transcript of Scenario on RFC to SOAP

Page 1: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 1/11

Scenario on RFC to SOAP

By Viswanadh, PI Competency Team, Yash Technologies

In this blog, we will discuss on how to design and configure a scenario to use sender RFC adapter

and receiver SOAP adapter.

RFC adapter in XI Adapter Engine supports Secure Network Communications (SNC). It is used to getconnected to SAP R/3 system, used for synchronous communications and receive RFC messageswhen triggered in SAP R/3 System. SNC protects the data communication paths between the variouscomponents of the SAP System.

RFC adapter converts the RFC data into RFC XML (XML message format) and send it Integrationengine for further processing using the pipe line steps.

SOAP adapter in XI Adapter Engine is used to exchange SOAP message between Integration serverand Web service servers. Though you can specify security settings to be used to sign/verify themessage to add security to the message exchange, scenario is developed selecting HTTP astransport protocol and SOAP 1.1 as message protocol.

The scenario in this posting is to trigger RFC message to XI that will send SOAP message to WebService server to execute its method like sending a SMS to remote mobile and gets the responsemessage and passes it to source R/3 System.

Find below the step-by-step procedure to achieve this scenario:

Development in R/3 System: 

a.  RFC is created at the R/3 side with the following parameter  

Page 2: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 2/11

 

Designing activities in Integration Repository: 

1.  Enable the option “import of RFC/IDOC permitted” of Software component version toimport RFC into XI as illustrated in below: 

No need of Creating Objects for Outbound Interface when we import the RFC from R/3 system, weget the relevant Data Type, Message Type and Message Interface along with it.

Page 3: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 3/11

2.  In this scenario we are using method “SendSMSToIndia” from Free Web Serviceof “webservicex”. http://www.webservicex.net/WS/WSDetails.aspx?WSID=59&CATID=4  

So, the scenario has been made interesting which would send an SMS to a remote mobile.

The SendSMSToIndia Method sends the SMS to Given Mobile Number as Input parameters

SendSMSToIndia Method

Input parameters: 

Mobile Number, FromEmailAddress, Message

Output information: 

FromEmailAddress, Mobile Number, Provider, State, Status

3. 

SOAP Connection parameters would be as follows:

Target URL : http://www.webservicex.net/SendSMS.asmx?WSDL  

SOAP Action: http://www.webserviceX.NET/SendSMSToIndia  

 

Inbound Data Type

For Inbound data type, download the WSDL file 

SAVE as SendSMS.wsdl and create a new External Definition using the SendSMS.wsdl WSDL File

4.  Create Outbound Message Interface

Page 4: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 4/11

 

5. 

Create Inbound Message Interface

6.  Create Message Mapping to convert RFC structure to Web Service Request

Page 5: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 5/11

 

7.  Create another Message Mapping to convert Web service Response to RFC Response

8.  Create Interface Mapping

Page 6: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 6/11

 

Save the objects and activate them

Configuration activities in Integration Directory: 

1.  Configure Sender RFC communication channel

Page 7: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 7/11

 

Note: As soon as you create Sender RFC communication channel, save and activate it.

Immediately now create a RFC destination in R/3 System of type TCP/IP with server registeredprogram as mentioned in this communication channel against Program ID. 

Remember first activate then create RFC destination in R/3 system.  

2. 

Configure Receiver SOAP communication Channel.

Page 8: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 8/11

 

3.  Configure sender agreement

4.  Configure receiver agreement

Page 9: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 9/11

 

5. 

Configure Interface determination

6.  Configure Receiver Determination

Page 10: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 10/11

 

7.  Save them and activate.

Testing the scenario: 

1. 

Run the Function Module in SE37 in R/3 System which will send RFC message to XI

Using RFC sender adapter the message is converted to RFC XML and then routed toIntegration server for Receiver determination, Mapping and routing to SOAP adapter in adapterengine. 

SOAP adapter sends SOAP message to web service method which will execute to send amessage to remote Mobile in this case.  

Response message is sent to XI and there after it retraces to RFC which would be waiting forthe response. There by it is going to be synchronous processing of the message.  

Page 11: Scenario on RFC to SOAP

8/10/2019 Scenario on RFC to SOAP

http://slidepdf.com/reader/full/scenario-on-rfc-to-soap 11/11