Software AG Infrasructure 10.7 | Working with Web Services | About Configuring Message Transports | Configuring Mail Transport | Invoking a Web Service Over Mail Transport on the Client Side
Invoking 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="">localhost</parameter>
<parameter name="mail.pop3.user">client</parameter>
<parameter name="">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>
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="">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>