Create Assembly

  1. Click Assemble.
  2. Hover the mouse over the invoke placed in the assembly by default and click the Trash can icon to remove it.
  3. Scroll down to see the available web service operations. Drag the checkRequest operation onto the assembly line.

    Two map operations and an invoke are created automatically.
  4. Click the map policy on the left of the invoke.
  5. Click the Pencil icon in the input column.
  6. Click input.
  7. Set the following properties:
    Field Type
    Context variable request.body.CheckRequestElement
    Content type application/json
    Name CheckRequestElement
    Definition #definitions/JSONCheckRequest
  8. When you’re finished, click Done.
  9. Click the circle button next to Amount in the Input list. Click the circle button next to the Amount in the Output list.
  10. Map the remaining inputs to the remaining corresponding outputs. For example, click the circle buttons for PayorAccountNamefrom the Input list and click the corresponding PayorAccountName in the Output list, and so on.
  11. Close the Map configuration window. Save your changes by clicking the Save icon.
  12. Click the Invoke policy action.
  13. Set the Target URL to the following URL. Copy this URL exactly, substituting only the x in id=x with the client ID value you noted earlier. Make sure there are no spaces in the URL.
  14. Close the Invoke configuration window.
  15. Click the second Map policy. Then, click the Pencil icon in the output column.
  16. Click Output.
  17. Set the content type to application/json and set the definition to #definitions/JSONCheckResponse. Then, click Done.
  18. Map the input fields to their corresponding output fields. Close the configuration window when you’re done.
  19. Save your changes.