I thought it would be this simple, but this generates several errors.
111661 [HttpClientWorker-1] ERROR ServerHandler (ServerHandler.java:291)
- Unexpected HTTP protocol error : Transfer-encoding header already
present
org.apache.http.ProtocolException: Transfer-encoding header already
present
at
org.apache.http.protocol.ResponseContent.process(ResponseContent.java:66
)
...
111723 [HttpClientWorker-1] ERROR HttpCoreNIOSender
(HttpCoreNIOSender.java:456) - IO Error sending response message
org.apache.axis2.AxisFault: Pipe closed
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessage
Formatter.java:59)
...
111801 [HttpClientWorker-1] ERROR Axis2Sender (Axis2Sender.java:104) -
Unexpected error during Sending message back
org.apache.axis2.AxisFault: IO Error sending response message
It looks like the mail transport is not being used, the classes that are
throwing the exceptions org.apache.http.protocol.ResponseContent and
org.apache.axis2.transport.http.SOAPMessageFormatter are in HTTP
packages and I don't see anything coming from
org.apache.axis2.transport.mail
The entire log files for running both with & without mail configured in
synapse.xml, along with the config files can be found @
http://deais.nci.nih.gov/Public/Synapse/
-----Original Message-----
From: Upul Godage [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 19, 2007 5:34 AM
To: [email protected]
Subject: Re: How do I send a SMTP payload?
Hi Geiglein,
You can have the synapse configuration as follows.
<definitions xmlns="http://ws.apache.org/ns/synapse">
<!-- log all attributes of messages passing through -->
<log level="full"/>
<send>
<endpoint>
<address uri="mailto:[EMAIL PROTECTED]"/>
</endpoint>
</send>
<!-- Send the messageto implicit destination -->
<send/>
</definitions>
Hope this helps.
Upul
On 9/18/07, Geiglein, Gary <[EMAIL PROTECTED]> wrote:
>
> I understand the axis2 configuration. I guess my problem is defining
the
> endpoint for synapse.
>
> How do I configure an endpoint to use the "mailto" transport
configured
> in axis. I would like to change the delivered synapse.xml to receive
the
> request as configured in the quick start, then both return the result
to
> the client, and email a copy through the configured mailto transport
> sender.
>
> -----Original Message-----
> From: Asankha C. Perera [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 18, 2007 3:55 AM
> To: [email protected]
> Subject: Re: How do I send a SMTP payload?
>
> Hi Geiglein
>
> You need to enable the mail transport in your axis2.xml by
uncommenting
> the following and configuring the elements according to your
> environment. Also check the following links for more information. From
> within Synapse, you just use a mail EPR to send it via the mail
> transport.
>
> Let me know if you run into any issues
> asankha
>
> http://ws.apache.org/axis2/1_3/mail-configuration.html
> http://wso2.org/library/2537
>
> <!-- Mail Transport Listener -->
> <!-- This is a sample configuration. It assumes a mail server
> running in localhost.
> Listener pops messages that comes to the email address
> [EMAIL PROTECTED] Users
> password is red. Listener connect to the server every 3000
> milliseconds.
> Parameters with "transport." prefix is Axis2 specific. Others
> are all from Java Mail API.
> http://people.apache.org/~pzf/SMTPBase64Binding-0.2.html
> -->
> <!--<transportReceiver name="mailto"
> class="org.apache.axis2.transport.mail.SimpleMailListener">
> <parameter name="mail.pop3.host">localhost</parameter>
> <parameter name="mail.pop3.user">red</parameter>
> <parameter name="mail.store.protocol">pop3</parameter>
> <parameter name="transport.mail.pop3.password">red</parameter>
> <parameter
> name="transport.mail.replyToAddress">[EMAIL PROTECTED]</parameter>
> <parameter name="transport.listener.interval">3000</parameter>
> </transportReceiver>-->
>
> ......
> <!-- Mail Transport Sender -->
> <!--Only need to uncomment the sender. Configuration is achieved
> with every client.
> At any instant mail host should be given. Sample configuration
> has been given.
> http://people.apache.org/~pzf/SMTPBase64Binding-0.2.html-->
> <!-- ================================================= -->
> <!--<transportSender name="mailto"
> class="org.apache.axis2.transport.mail.MailTransportSender">
> <parameter name="mail.smtp.host">localhost</parameter>
> </transportSender>-->
>
>
>
> Geiglein, Gary wrote:
> > The introduction says that you support SMTP but I don't see anything
> in
> > the documentation, examples, or tests to give a clue how to set this
> up.
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]