Hi Dev,

I tried to perform sample given in [1] and successfully send the email with
attachment and received back the response. This use-case perfectly working
when my attachment is a Soap message and the suffix of the attachment is
"xml".

But when i tried simple text based format, it is gave an error in the ESB
console as in [2] and got the email with the message [3]


PS
With this email i have attached my sample soap payload and the proxy.

[1]h
ttps://docs.wso2.org/display/ESB481/Sample+256%3A+Proxy+Services+with+the+MailTo+Transport<https://docs.wso2.org/display/ESB481/Sample+256%3A+Proxy+Services+with+the+MailTo+Transport>

[2]
[2014-05-14 19:48:21,908] ERROR - AxisEngine The endpoint reference (EPR)
for the Operation not found is  and the WSA Action = null. If this EPR was
previously reachable, please contact the server administrator.
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
not found is  and the WSA Action = null. If this EPR was previously
reachable, please contact the server administrator.
at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:102)
at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:328)
at
org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:515)
at
org.apache.axis2.transport.mail.MailTransportListener.access$000(MailTransportListener.java:61)
at
org.apache.axis2.transport.mail.MailTransportListener$MailProcessor.run(MailTransportListener.java:331)
at
org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:295)
at
org.apache.axis2.transport.mail.MailTransportListener.checkMail(MailTransportListener.java:199)
at
org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:80)
at
org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:61)
at
org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)


[3]<?xml version="1.0" encoding="US-ASCII"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><soapenv:Fault
xmlns:axis2ns4="http://schemas.xmlsoap.org/soap/envelope/";><faultcode>axis2ns4:Client</faultcode><faultstring>The
endpoint reference (EPR) for the Operation not found is  and the WSA Action
= null. If this EPR was previously reachable, please contact the server
administrator.</faultstring><detail></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com <http://wso2.com/>*
*Mobile:(+94)777219209*
*Mobile USA:**(+1)812-223-4546*
[image: Facebook] <https://www.facebook.com/vanjikumaran> [image:
Twitter]<https://twitter.com/vanjikumaran> [image:
LinkedIn] <http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293>
[image:
Blogger] <http://vanjikumaran.blogspot.com/> [image:
SlideShare]<http://www.slideshare.net/vanjikumaran>

This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
TestingEAMIL
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><m0:getQuote xmlns:m0="http://services.samples";><m0:request><m0:symbol>IBM</m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse";
       name="StockQuoteProxy"
       transports="mailto"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <property name="senderAddress" expression="get-property('transport', 'From')"/>
         <log level="full">
            <property name="Sender Address" expression="get-property('senderAddress')"/>
         </log>
         <send>
            <endpoint>
               <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
            </endpoint>
         </send>
      </inSequence>
      <outSequence>
         <property name="Subject"
                   value="Custom Subject for Response"
                   scope="transport"/>
         <header name="To"
                 expression="fn:concat('mailto:', get-property('senderAddress'))"/>
         <log level="full">
            <property name="message" value="Response message"/>
            <property name="Sender Address" expression="get-property('senderAddress')"/>
         </log>
         <send/>
      </outSequence>
   </target>
   <publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
   <parameter name="mail.pop3.socketFactory.port">995</parameter>
   <parameter name="serviceType">proxy</parameter>
   <parameter name="interface">SimpleStockQuoteServicePortType</parameter>
   <parameter name="mail.pop3.socketFactory.fallback">false</parameter>
   <parameter name="transport.mail.Address">[email protected]</parameter>
   <parameter name="mail.pop3.socketFactory.class">javax.net.ssl.SSLSocketFactory</parameter>
   <parameter name="mail.pop3.host">pop.gmail.com</parameter>
   <parameter name="transport.PollInterval">5</parameter>
   <parameter name="mail.pop3.password">wso2@123com</parameter>
   <parameter name="mail.pop3.user">abcwso2</parameter>
   <parameter name="mail.pop3.port">995</parameter>
   <parameter name="transport.mail.Protocol">pop3</parameter>
   <description/>
</proxy>
                                
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to