Deploying the email-triggered web service invocation sample project

Following this guide, you can deploy and test the sample project web service invocation via email in IPS.

Prerequisites

  1. Access to a Gmail account (other email providers may also work, provided that you include appropriate values for the connector.id.protocol, connector.id.host and connector.id.port values under project property configurations).

  2. If you haven’t already done so,

    • define a container image with user adroitlogic, name ips-worker and tag 17.07 (you can utilize the Select Existing button on the container image creation page to use the already defined image from the image repository).

    • create a cluster using the abovementioned container image.

  3. Find the host system’s address on the host-only network associated with your IPS virtual machine. This will usually be the first IP address of the host-only network IP range, e.g. if your VM’s host-only address (obtained using ips_installer ip) is 192.168.99.100 the corresponding address on the host would be 192.168.99.1.

Deployment

  1. Navigate to the project creation page.

  2. Click the Select a Sample button and select the Invoking a Web Service via Email sample.

  3. Click Next and wait for IPS to download the sample XPR from the repository, after which you will be automatically navigated to the Configure page.

    ws2email
  4. Modify the following properties on the project version using Edit buttons against each, and click Next.

    web-service-via-email-flow.email-listener.user

    username (email address) of the email account used to receive requests

    web-service-via-email-flow.email-listener.password

    password of the email account used to receive requests

    web-service-via-email-flow.email-sender.user

    username (email address) of the email account used to send the response

    web-service-via-email-flow.email-sender.password

    password of the email account used to send the response

    web-service-via-email-flow.http-sender.host

    host-only network IP address of the host system found earlier (e.g. 192.168.99.1)

  5. In the Assign page, select the cluster you have created previously, and click Deploy Now.

  6. You will be directed to the Deployments perspective of the selected cluster, with the new project added automatically to the Pending Updates list.

  7. Click Deploy and wait for the progress bar to indicate successful completion of the deployment.

Testing

  1. Start the Jetty Server included in Ultra Studio, on port 9000.

  2. As explained in the sample documentation, send an email to the address you specified earlier (in the project property configuration) containing a suitable JSON multiplication request.

    composed email
  3. Once the ESB picks up the email and processes it, the multiplication result will be replied back to the above email.

In this topic
In this topic
Contact Us