Skip to Content

Part 3; Understanding the Power of SAP HCI: SOAP2SOAP Scenario Configuration

Configure the Systems, Security Artifacts and Communication Channel

  Introduction: In Parts 1 and 2 of this series of blogs, issues relating to setting up the modeling environment with necessary tools as well as the security artifacts necessary for configuring a working scenario have been discussed. In this blog, a sample working scenario will be further developed (configured), deployed as well monitoring features examined. So, let’s get started. Below is the diagram of the working scenario discussed here before configuration;

workspace 2.png

Top down approach will be adopted in configuring this scenario; the following steps need to be performed;

  1. Configure sender system, receiver system (name of the sender and receiver system, this is optional) and Sender authorization (this is the Public Key pair )
  2. Import WSDL file from SAP PI repository or locally
  3. Parameters file for reference to Artifacts
  4. Mapping between Sender and Receiver system or import existing mapping object from SAP PI Repository
  5. Sender and Receiver communication channels


Configuring the Scenario

1) Configure Sender and Receiver Systems: Click on the sender system as seen in the diagram, check the property area and enter appropriate name for your sender system without whitespaces between names. Under sender authorization, click on the browse option to import your Public SSL Key from where it stored as shown in the diagram below and this is usually in the case of certificate based authentication;

workspace 3.png

Follow the above steps to configure the receiver system name as well but there is no need to browse Public Key on the receiver side.

2 Import WSDL file from SAP PI or local file system; For this blog, existing service interface from SAP PI is imported. To do, right click on the name of the Integration project in the explorer and choose the “Import PI Content” option and choose the option of the type of artifact to be imported and in this case, service interface. Tip: your WSDL file should have at least one operation, a service name and port name. When you export a WSDL from the integration builder Directory it will contain the necessary elements. Proceed to import the WSDL/service interface for both the sender and the receiver system and this will be used during mapping. Right Click Integration project à Import PI Content. The WSDL file could also be imported from a local file system, so it is not always mandatory to have SAP PI to use SAP HCI.

3 Create Parameters file for reference to parameters: This parameter file to be created will contain the reference parameters to be used in this this scenario, this parameters include, the location of the WSDL file, endpoints during the configuration of the communication channels. To create the parameter file, right click on the Integration Project, choose New, Other, General, file. Name the file as “parameters.prop” , follow the wizard and make sure it is saved in this directory “src.main.resources” and click the finish button.


file 1.png

The parameters.prop file is created and the entries for the location of the WSDL files and the endpoints can be entered as seen in the figure below;

parameter 1.png

To reference this parameters during configuration of the channels, the values on the right handside before the “=” sign is enclosed the double curly braces, e.g {{SOAPSender_WSDL_URL}}.

4. Mapping between Sender and Receiver system: To implement the mapping, two options arepossible, an existing mapping that meets the requirement for passing data from the source system to the target system can be imported from SAP PI using the same steps for importing service interfaces. However, the mapping used in this scenario is defined locally within the integration designer. To create a new mapping, right click on the integration project, click new, other, then under SAP HANA Cloud Integration, choose message mapping and follow the wizard.

/wp-content/uploads/2014/02/mapping1_398124.png

Choose the source and target element (these are the WSDL file imported from SAP PI ESR earlier, it could also be WSDL file imported from a local file system) and switch to the definition tab to do your graphical mapping and use all the functionalities in SAP PI graphical mapping. However, there is no possibility for creating user defined functions for now, and only graphical mapping is supported. In this demo, the concatenation function has been used and the drag and drop functionalities of the graphical mapping displayed in the figure below;

/wp-content/uploads/2014/02/mapping2_398125.png

Go to the modeling area, and right click on the mapping artifact, choose the option “assign mapping” and select the mapping was created earlier.

5. Sender and Receiver communication channels: The communication channels will be configured in this step. Right click on the channel artifact on the sender side and choose the SOAP Adapter as the adapter type.

/wp-content/uploads/2014/02/channel1_398126.png

Choose the Adapter specific icon to configure the endpoint and link to WSDL URL, here the parameters defined in the “parameters.prop” file will be used.

/wp-content/uploads/2014/02/channel2_398127.png

Repeat the steps above to configure the receiver communication channel as well. Save all the changes to the Integration project and you should the screen below;

/wp-content/uploads/2014/02/workspace4_398129.png

Deploying the Integration Project

Once all the configurations are done and all the changes saved, then it is time to deploy. If the red marker appears on the integration project after saving, then it shows the configuration is not complete check the problem console to fix this. To deploy the project to the Cloud, right click on the project and choose the option “Deploy Integration Content”. A pop up is shown, asking for the tenant ID, once this is provided the deployment will be completed, if there is a problem or an error, a pop up will indicate this.

/wp-content/uploads/2014/02/deploy_398130.png

Click on ok and the deployment will be complete.

Testing

This scenario will be tested by triggering a message from SOAP UI (SOAP UI 4.0.1 other versions may give problems). To do this, the WSDL file will be loaded into SOAP UI, and the SSL settings will be done by uploading the Private Key of the Public Key (loaded into Sender System) into SOAP UI. This is done using these steps;

  • File —Preferences—SSL settings and uploading the Private Key from the Key store and the password if any.

Of great importance is the URL to be called from SOAP UI. After the WSDL file (WSDL file used on the sender side) is loaded into SOAP UI, click on the edit endpoint option and construct your endpoint in this format

https://<serverurl>/cxf/<path-defined-in-the-sender-communication-channel-endpoint>

  1. e.g https://<servername>/cxf/demo/blog/meterbilling

Once all this is done, then messages can be sent from SOAP UI to SAP HCI.

Monitoring

After messages have been sent, then monitoring can be done in SAP HCI. Switch to Integration Operation perspective to monitor the messages being received by HCI. The diagram below shows the sample messages received by SAP HCI and further details and different search functionalities can be used from the monitoring tool.

/wp-content/uploads/2014/02/eclipsemonitoring_398135.png

The monitoring screen shows different messages that have been received, some failed and some were successfully processed. Monitoring is also possible by Integration Designer/Developer using the SAP HCI WebUI interface for processed messages in the cloud!


/wp-content/uploads/2014/02/webui5_398137.png

Conclusion:

  In understanding the Power of SAP HCI, these sets of 3 blogs provides a complete walk-through scenario for using SAP HCI as an iPaaS (integration platform as a service). SAP Hana Cloud Integration makes it easy! You are now able to setup the environment and configure an iFlow. We have seen that SAP HCI is a, light weight, cloud based solution which provides possibilities to use prepackaged integration content out-of-the-box and re-use existing SAP PI content. If you have questions, do not hesitate to contact me. I’m looking forward to update you in my next blogs where I will describe the new connectivity options and additional features of SAP HCI.


Written By; Abidemi Olatunbosun, Rojo Consultancy BV, The Netherlands

Contributor; Geert van den Reek, Rojo Consultancy BV, The Netherlands

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Apoorva Singh

    Hi Abidemi.

    That is a nice blog. We are going to integrate SAP Cloud for customer to SAP ERP using SAP HCI. The project requires bringing their BW + 3rd party reports into SAP Cloud for customer system. What would you suggest the best approach would be.

    Regards

    Apoorva

    (0) 

Leave a Reply