This document describes how to create an Inbound Hierarchical IntegrateSynchronous interface in SAP PO with Skyvva V3 connector module.
Creating an inbound hierarchical synchronous interface (Salesforce)
Login to the Salesforce org and then select SKYVVA Integration Cloud.
Go to Integration Tab and create New Integration under that go to the interfaces tab and then create New interface as shown below.
In V3 we have to create the message type in skyvva as explained below.
Initially we have to create Metadata Provider.
Now create Istructure repository
Now create Message type for hierarchical request and response
Now we have to use the message type in both request and response interface and also the child request and response interfaces
In this example, I have created the interface under “Lalitha_Test_Integration“
- Create Inbound parent request interface
If we use the message type defined in skyvva then we have to do mapping in skyvva as shown.
Now save the mapping and the inbound parent interface.
- Create Inbound child request interface
Add this child interface as i chained interface in the parent interface related tab
Save the inbound child interface.
- Create an outbound parent response interface
Do the mapping for outbound response interface
Save the mapping and the outbound response interface.
- Create an outbound child response interface
Save the interface and add this child interface as ichained interface in the parent response interface related tab
Download the inbound and outbound parent interface WSDL’s and upload it into SAP PO for mapping.
Import the WSDL and Save and activate it.
For new V3 we have to define the response business structure. We can use same response datatype for both source and target
Create response datatype for skyvva response
Since in this example, we are sending data from SOAPUI to Salesforce. So, we need to create data types for request and response
DataType for Request –
Save and activate the request data type.
DataType for Response–
Save and activate the response data type.
Now create Message type for both Request and Response as shown below.
Request Message type –
Save and activate the request message type.
Response Message type –
Now Save and activate the response message type.
Create Outbound and inbound service interfaces as shown below.
Provide the necessary details as shown and then save and activate it.
- Message mapping
Create request and response message mapping as shown below.
Request Mapping –
Select the Source structure and target structure and complete the mapping.
Response Mapping –
We don’t need response mapping as we are using java mapping to get the business and the standard response based on the business requirement
Now save and activate both the mapping
- Operation Mapping
Create Operation mapping as shown below.
This is for request mapping
Here in the response mapping, we use java class to convert the JSON response to XML and also to get the business or standard response based on our requirement.
Java class: com/sap/transformation/IntegrateV3ResponseTransformation
Now select the inbound and outbound service interfaces and the respective request and response mappings.
Then save and activate the operation mapping.
- Creation of Integrated Configuration Objects
After creating the objects in ESR. We have to configure these objects in the integration directory.
First, we have to create Configuration Scenario.
An Integration scenario has the following objects.
- Business System for Sender and Receiver
- Sender and Receiver Communication channel
- Integrated Configuration
These are the objects we should create. We have to define our business system e.g. for the SAP-Backend. For Salesforce you can use our proposal “Salesforce” as the business system. We have to import these business systems from SLD.
- Configuring the Sender SOAP communication channel
Create sender communication channel as shown below.
Since we are using SOAPUI as a source. So, here we are using SOAP adapter in the sender channel.
Provide the necessary details. After that save and activate the channel.
- Configuring the SOAP receiver channel
Configuration for Tab “General”
Specify the parameters as shown in the above screenshot.
Below is the configuration for the “Advanced” Tab.
The value “TserverLocation” has to be entered for the parameter Variable Header (XHeaderName1).
Below are the settings for Tab “Module”. Here, the SKYVVA V3 module containing the logic for session handling and transformation logic.
Configuration of module parameters are described in detail below
- Skyvva Module Parameters
“Skyvva/V3/Integration” to be used with SOAP receiver channel. Module parameters are outlined below
- Integrated Configuration
Create integrated configuration objects as shown below.
Enter the required data e.g. the Communication Component, Interface and Namespace and then click on create button to create an ICO.
Now go through the tabs from left to right to configure the relevant objects. In this first tab “Inbound Processing” here we have to specify the sender communication channel.
Here in the “Receiver” tab, we have to specify the receiver business system.
In Receiver interfaces tab specify the operation mapping.
In the “outbound processing” tab, we have to specify the receiver channel.
- Testing the inbound synchronous Interface.
I am sending the data from SOAPUI. We are getting the JSON Response from Salesforce. Again we are converting the JSON response to XML with Java class which we have used in response mapping in SAP PO.
This is the business response from skyvva.
If we test the interface without skyvva response interface then we will get the standard response as shown below.