Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

In this tutorial, you use the Gmail connector to send an email containing the response received from SettlePaymentEP in the previous tutorial.

Note

See the following topics for a description of the concepts that you need to know when creating ESB artifacts:

Tip

Before you begin,

  1. Install Oracle Java SE Development Kit (JDK) version 1.8.* and set the JAVA_HOME environment variable.
  2. Download the WSO2 EI ZIP file Download the product installer from here, and then extract run the ZIP file. 
    The path to this folder will be referred to as <EI_HOME> throughout this tutorial.installer.
    Insert excerpt
    Installing the Product
    Installing the Product
    nopaneltrue
  3. Select and download the relevant EI tooling ZIP file based on your operating system from here and then extract the ZIP file.
    The path to this folder will be referred to as <EI_TOOLING> throughout this tutorial.


    Info
  4. If you did not try the Storing and Forwarding Messages tutorial yet, open the WSO2 EI Tooling environment, click File, and then click Import. Next, select Existing WSO2 Projects into workspace under the WSO2 category, click Next and upload the pre-packaged project. This contains the configurations of the Storing and Forwarding Messages tutorial so that you do not have to repeat those steps.
  5. Download the MSF4J service from here and copy the JAR file to <EI_HOME>/wso2/msf4j/deployment/microservices folder. The back-end service is now deployed in the MSF4J profile of WSO2 EI.

...

  1. As the email sender, navigate to the URL  https://console.developers.google.com/projectselector/apis/credentials  and log in to your google account. 
  2. If you do not already have a project, create a new project.

  3. Click Google APIs -> Credentials -> Create Credential -> OAuth client ID.

    Note

    At this point, if the consent screen name is not provided, you will be prompted to do so.

  4. Select Web Application and create a client.

  5. Provide  https://developers.google.com/oauthplayground  as the redirect URL under Authorized redirect URIs and click Create.
    The client ID and client secret will then be displayed. 

    Info

    See Gmail API documentation for details on creating the Client ID and Client Secret.

  6. Click on the Library on the side menu, and select Gmail API

  7. Click Enable.

...

Start the message broker profile as follows:

Panel
borderColor#542989
bgColor#ffffff
borderWidth1
Localtabgroup
Localtab
activetrue
titleOn MacOS/Linux/CentOS

Open a terminal and

...

Start the runtime by executing the message broker startup script as shown below.

Code Block
sh wso2server.sh 

execute the following command:

Code Block
wso2ei-6.3.0-broker
Localtab
titleOn Windows
Go to Start Menu -> Programs -> WSO2 -> Enterprise Integrator 6.3.0 Broker. This will open a terminal and start the Message Broker profile.

The message broker profile is now ready to receive messages from the ESB profile.

...

To be able to send requests to the back-end service (which is an MSF4J service deployed in MSF4J profile), you need to first start the MSF4J runtime:

Panel
borderColor#542989
bgColor#ffffff
borderWidth1
Localtabgroup
Localtab
titleOn MacOS/Linux/CentOS

Open a terminal and

...

Start the runtime by executing the MSF4J startup script as shown below.

...

execute the following command:

Code Block
wso2ei-6.3.0-msf4j
Localtab
titleOn Windows

Go to Start Menu -> Programs -> WSO2 -> Enterprise Integrator 6.3.0 MSF4J. This will open a terminal and start the MSF4J profile.

The Healthcare service is now active and you can start sending requests to the service.

...