Application Integration (On-Premises) : Administering the Software AG Infrastructure : Working with Web Services : Configure Message Transports : Configure Mail Transport : Invoke a Web Service Over Mail Transport on the Client Side
Invoke a Web Service Over Mail Transport on the Client Side
In the client’s axis2.xml configuration file, find and uncomment the sections that define the transport receiver and transport sender with name=“mailto”. Check the parameters under the mail transport receiver and the mail transport sender. You must configure the user name, the password, and the e-mail address of a user registered in the James mail server. That user must be different from the one configured in Web Services Stack.
Below is sample code for client configuration with a user that is registered in the James mail server. The user name is "client" and the password is "pass".
<transportReceiver name="mailto" class="org.apache.axis2.transport.mail.SimpleMailListener">
<parameter name="mail.pop3.host">localhost</parameter>
<parameter name="mail.pop3.user">client</parameter>
<parameter name="mail.store.protocol">pop3</parameter>
<parameter name="transport.mail.pop3.password">pass</parameter >
<parameter name="transport.mail.replyToAddress">client@localhost</parameter>
<parameter name="transport.listener.interval">3000</parameter>
</transportReceiver>
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="mail.smtp.host">localhost</parameter>
<parameter name="mail.smtp.user">client</parameter>
<parameter name="transport.mail.smtp.password">pass</parameter >
<parameter name="mail.smtp.from">client@localhost</parameter>
</transportSender>
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback