Samisa
Good question!
Basically, the email transport does its best to identify the incoming
mail, so if you send text to it, it will wrap that as a textual payload.
The main thing you have to do is to write a mediator that can read that
text and turn it into XML. If the payload is already in CSV format, then
the mediator exists now. If its in some other format you need to do
something like this:
public boolean mediate(MessageContext arg0) {
String payload = PayloadHelper.getTextPayload(arg0);
Paul
Samisa Abeysinghe wrote:
I have this need to read an email, and extract some data form the email,
that is not in XML format, convert that to XML format and send to a Web
service that understands the XML payload that I form out of the email.
I know that esb can deal with SMTP as Axis2 has an SMTP transport. My
question is, how possible to implement the above scenario with the ESB?
Do I have to implement a mediator?
Thanks,
Samisa...
_______________________________________________
Esb-java-user mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
--
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair
VP, Apache Synapse
Office: +44 844 484 8143
Cell: +44 798 447 4618
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
_______________________________________________
Esb-java-user mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user