IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Sending compressed files using SMTP

  • 1.  Sending compressed files using SMTP

    Posted Thu September 09, 2010 04:50 AM

    Hello Guys,

    I am trying to send a zip file in email.
    I have a test flow containig these two services:

    → pub.file:getFile
    → pub.client:smtp

    I mapped the output byte of getFile to the attachments/content of the smtp service. Other details, contenttype = application/zip, encoding = base64.
    But when I run it, it says java.lang.ClassClastException: com.wm.util.Values …

    Am I doing the right thing or I have set some wrong values?

    Thanks,

    Dee


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 2.  RE: Sending compressed files using SMTP

    Posted Thu September 09, 2010 06:37 AM

    pub.client.smtp service itself provide a way to send attachements in a single step.

    You can call this service and pass on the path of your zip file to “attachments/filename” and set the “attachments/contenttype” to “application/zip”.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport