Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Objective: Using the MailTo transport /wiki/spaces/EI6xx/pages/49613800 with Proxy Services.
Prerequisites
- You will need access to an e-mail account.
- Start the Axis2 server and deploy the
SimpleStockQuoteService
if not already done. - Enable the mail transport listener in the ESB
axis2.xml
. Simply uncomment the relevant transport receiver entry in the file. - Enable mail transport sender in the ESB
axis2.xml
. See MailTo transport /wiki/spaces/EI6xx/pages/49613800 for details. - Create the below configuration and deploy it in the WSO2 EI profile, see Working with WSO2 Integration Studio.
Send a plain/text e-mail (Make sure you switch to Plain text mode when you are composing the email) with the following body and any custom Subject from your mail account to the mail address
synapse.demo.1@gmail.com
.Code Block language html/xml theme Eclipse <m0:getQuote xmlns:m0="http://services.samples"> <m0:request> <m0:symbol>IBM</m0:symbol> </m0:request> </m0:getQuote>
- After a few seconds (for example 30 seconds), you should receive a POX response in your e-mail account with the stock quote reply.
...