Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Exercise 3 - Migrate and Test SOAP to REST Scenario

In this exercise, we will create and migrate a SOAP to REST scenario. For this particular scenario, not all attributes of the ICO on SAP Process Orchestration could be mapped to the parameters in the integration flow on Cloud Integration, so a couple of manual adjustments will need to be carried out which we will do as a part of the exercise.

  1. Open your previously created package, and switch to the Artifacts tab, then switch to Edit Mode.

  2. Click on Migrate to start the migration wizard.

  3. Configure the SAP Process Orchestration system as before. For this expand the Name section and choose your system. Lastly, click Next Step to proceed with configuring the scenario.

  4. Click on Show Filters and fill in “http://pi-elevation.bootcamp.com“ for Namespace. Choose the interface “SI_Employee_Out” from the drop-down list. Click Next Step.

  5. The template “P2P_SYNC_JSON_REC_0001” should already be selected. Click Next Step.

  6. Maintain a Name for your integration flow, e.g., following the pattern soap_to_rest_sync_<userxx> where xx is your user number from 00 to 99. Then, click on Review.
    image

  7. Verify the information and click on Migrate.
    image

  8. Again, the integration flow will be generated within your integration package. As you can see from the summary page, the REST receiver adapter on SAP Process Orchestration has been mapped to the HTTP adapter in Cloud Integration. Click on View Artifact to take a closer look.

  9. For this particular scenario, not all attributes of the ICO on SAP Process Orchestration could be mapped to the parameters in the integration flow on Cloud Integration, so a couple of manual adjustments need to be carried out.
    Note, the attribute mapping will be improved with future increments of the migration tool so that manual interaction is reduced to a bare minimum.
    Click on Configure
    image

  10. Switch to tab More and select "XML to JSON Converter" as Type.
    image

  11. Enable "Suppress JSON Root Element" make sure the "Use Namespace Mapping" is not checked and press Save.
    image

  12. Press Close to close the Message box and close the configure Pop-Up as well.
    image

  13. Switch to Edit mode at the top right corner
    image

  14. Add the Namespace Mapping “xmlns:ns0=http://pi-elevation.bootcamp.com” in the Runtime Configuration of the integration flow.

  15. In the HTTP connection of the “Request Reply”, verify that the Authentication is set to “Basic”. The credential name is automatically mapped from the REST receiver adapter on SAP Process Orchestration. This needs to be changed to the credential name maintained on the tenant, here maintain the Credential Name “PIMAS_Demo”.

  16. Next, click on the JSON to XML Converter and switch to the Processing details. Enter “MT_Employee_RESP” as <b<Name and select the namespace you created earlier.

  17. Press Save and then Deploy to deploy the integration flow.
    image

  18. You can check the deployment status via the monitor dashboard. Navigate to Monitor > Integrations, and select the Manage Integration Content tile.
    image

  19. Your integration flow should be in status Started. From here, you get the endpoint that you need to call to test the scenario. Copy the endpoint as we will use it in the next step.
    image

Verify the Interface via Insomnia

  1. Open Insomnia and duplicate the Request you created in exercise 2.
    image

  2. As name provide "Employee" and press Create.
    image

  3. Replace the URL with the endpoint of your new integration flow.
    image

  4. Replace the XML Payload to following value:

<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:pi="http://pi-elevation.bootcamp.com">
  <soapenv:Header />
  <soapenv:Body>
      <pi:MT_Employee_REQ>
          <employee_name>John Doe 124</employee_name>
          <employee_salary>320800</employee_salary>
          <employee_age>60</employee_age>
          <profile_image></profile_image>
      </pi:MT_Employee_REQ>
  </soapenv:Body>
</soapenv:Envelope>


image

  1. Press Send. Response should be "200 OK".
    image

Congratulations

You've now successfully completed the migration assessment and migrated scenarios from PI/PO to SAP Integration Suite using the migration assessment and migration capability of SAP Integration Suite.