Run SAP example maps using endpoint for V2 REST API

Prerequisites

  1. Import the example .zip projects on <WINDOWS_pack_install_dir>/examples/sap/SAP_pack_examples_windows.zip into Design Server.
  2. Create a package for the project including all maps and files.
  3. Deploy package into ITX-RS server instance.
  4. Set config.yaml property rest.mode to fenced.

Below are examples of REST calls using curl commands to execute Pack for SAP example maps:

  • JALE Inbound example
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/LegacyToInboundJALE?input=1;FILE;legacy.txt&return=log&audit_file=always' -H 'accept: */*'
  • JALE Outbound example
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/JALEOutboundToLegacy?input=1%3BJALE%3B-a%20<program_id>%20-g%20<gateway_host>%20-x%20<gateway_port>%20-tv%20-ar3&return=log&audit_file=always' -H 'accept: */*'
  • JBAPI
    Note: You must edit the GET rule with the adapter command line prior to exporting.
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/xSingleStyle?return=log&audit_file=always' -H 'accept: */*'
  • DXOB example
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/LegacyToDX0050?return=log&audit_file=always' -H 'accept: */*'
  • EDI examples
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/850_to_Orders?return=log&audit_file=always' -H 'accept: */*'
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/InvoicePackets?return=log&audit_file=always' -H 'accept: */*'
    curl -X 'PUT' 'http://localhost:8080/tx-rest/v2/run/validate_output?return=log&audit_file=always' -H 'accept: */*'