In this section, we are going to create the ContosoSendOrder Logic App. Since there are no templates available for HTTP receive and AS2 send, we will have to create them ourselves:
- Create a Logic App named ContosoSendOrder
- Navigate to Workflow settings and select the Contoso-SupplyChain integration account
- In Definition, select HTTP request trigger
- Add the Encode to AS2 message connector and select the Contoso-SupplyChain integration account
- Configure the Encode to AS2 message connector as follows:
![](https://static.packt-cdn.com/products/9781788399234/graphics/assets/1f9cba01-350f-4a67-a352-baa6d94edbef.png)
- Configure the HTTP action to POST the message to ShipAnyWhereOrderService:
![](https://static.packt-cdn.com/products/9781788399234/graphics/assets/5be50bf5-ab4b-4a82-899a-6ccc63e16414.png)
- Ensure that the body is binary encoded using the following expression:
base64ToBinary(body('Encode_to_AS2_message')?['AS2Message']?['Content'])
- Post the following X12 message to the ContosoSendOrder Logic App:
ISA*00* *00...