Path:conf\axis2\axis2.xml
VFS Transport:
This is the file transport of the ESB. This transport can be used to pick up a file from a file/ftp location and inject the contents into the ESB. Also this transport can be used to create a file in a local directory/ftp location using the message in the ESB.
To enable the transport, un-comment the VFS transport receiver and sender.
Receiver
<transportreceiver name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportListener"/>
Sender
<transportSender name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportSender"/>
Mail Transport:
This transport can be used to send and receive e-mail messages.
To enable the transport, un-comment the mailto transport sender. Then configure the mail transport sender to use a mailbox for sending the messages. In this sample, we are not retrieving mails from a mailbox. So there is no need to enable the mail transport receiver.
Sender
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="mail.smtp.host">smtp.gmail.com</parameter>
<parameter name="mail.smtp.port">587</parameter>
<parameter name="mail.smtp.starttls.enable">true</parameter>
<parameter name="mail.smtp.auth">true</parameter>
<parameter name="mail.smtp.user">synapse.demo.0</parameter>
<parameter name="mail.smtp.password">mailpassword</parameter>
<parameter name="mail.smtp.from">synapse.demo.0@gmail.com</parameter>
</transportSender>
Message Builders/Formatters:
When a message comes thorough the wire, it first goes through a message builder and message builder is responsible for converting the message into a SOAP message. Message formatters determine the outgoing wire message format of a SOAP message inside the ESB.
For this scenario, the user has to add the following message formatter to axis2.xml. Message formatters are configured in axis2.xml under the section:
<messageFormatters></messageFormatters>
We need to add the org.apache.axis2.transport.http.ApplicationXMLFormatter under the content type “text/html”.
<messageFormatter contentType="text/html" class="org.apache.axis2.transport.http.ApplicationXMLFormatters>
wso2 Admin:https://docs.wso2.com/display/AM1100/WSO2+Admin+Services
In Linux Environment:
sh wso2server.sh -DosgiConsole
In Windows Environment:
wso2server.bat -DosgiConsole
osgi> listAdminServices
VFS Transport:
This is the file transport of the ESB. This transport can be used to pick up a file from a file/ftp location and inject the contents into the ESB. Also this transport can be used to create a file in a local directory/ftp location using the message in the ESB.
To enable the transport, un-comment the VFS transport receiver and sender.
Receiver
<transportreceiver name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportListener"/>
Sender
<transportSender name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportSender"/>
Mail Transport:
This transport can be used to send and receive e-mail messages.
To enable the transport, un-comment the mailto transport sender. Then configure the mail transport sender to use a mailbox for sending the messages. In this sample, we are not retrieving mails from a mailbox. So there is no need to enable the mail transport receiver.
Sender
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="mail.smtp.host">smtp.gmail.com</parameter>
<parameter name="mail.smtp.port">587</parameter>
<parameter name="mail.smtp.starttls.enable">true</parameter>
<parameter name="mail.smtp.auth">true</parameter>
<parameter name="mail.smtp.user">synapse.demo.0</parameter>
<parameter name="mail.smtp.password">mailpassword</parameter>
<parameter name="mail.smtp.from">synapse.demo.0@gmail.com</parameter>
</transportSender>
Message Builders/Formatters:
When a message comes thorough the wire, it first goes through a message builder and message builder is responsible for converting the message into a SOAP message. Message formatters determine the outgoing wire message format of a SOAP message inside the ESB.
For this scenario, the user has to add the following message formatter to axis2.xml. Message formatters are configured in axis2.xml under the section:
<messageFormatters></messageFormatters>
We need to add the org.apache.axis2.transport.http.ApplicationXMLFormatter under the content type “text/html”.
<messageFormatter contentType="text/html" class="org.apache.axis2.transport.http.ApplicationXMLFormatters>
wso2 Admin:https://docs.wso2.com/display/AM1100/WSO2+Admin+Services
In Linux Environment:
sh wso2server.sh -DosgiConsole
In Windows Environment:
wso2server.bat -DosgiConsole
osgi> listAdminServices
No comments:
Post a Comment