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, - Install Oracle Java SE Development Kit (JDK) version 1.8.* and set the JAVA_HOME environment variable.
- 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 |
---|
nopanel | true |
---|
|
- 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. - 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.
- 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.
|
...
- As the email sender, navigate to the URL https://console.developers.google.com/projectselector/apis/credentials and log in to your google account.
If you do not already have a project, create a new project.
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. |
Select Web Application and create a client.
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.
Click on the Library on the side menu, and select Gmail API.
Click Enable.
...
Start the message broker profile as follows:
Panel |
---|
borderColor | #542989 |
---|
bgColor | #ffffff |
---|
borderWidth | 1 |
---|
|
Localtabgroup |
---|
Localtab |
---|
active | true |
---|
title | On 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 |
---|
| 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 |
---|
borderWidth | 1 |
---|
|
Localtabgroup |
---|
Localtab |
---|
title | On 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 |
---|
| 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.
...