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.


#TechXchangePresenter
 View Only
  • 1.  Need to retrieve the data from email body in wM

    Posted Thu December 13, 2018 04:20 PM

    Hi wm experts,

    I am looking to fetch the content of the email body from email sent to wM.

    I followed the steps and I am able to get the details in pub.flow:getTransportInfo.
    However when I try to get the body I am getting error

    Steps I followed :

    1. created the port
    2. created the service as below
      pub.flow:gettransportInfo
      pub.flow:savepipeline
      pub.flow:restorepipeline

    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Need to retrieve the data from email body in wM

    Posted Thu December 13, 2018 11:36 PM


  • 3.  RE: Need to retrieve the data from email body in wM

    Posted Fri December 14, 2018 03:09 PM

    Hi Sanjan,

    Thanks a lot.
    I will try.
    Do we have any other code sample to fetch the contents from the body.

    Thanks
    Preethi


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Need to retrieve the data from email body in wM

    Posted Tue December 18, 2018 12:34 PM

    Hello Preethi,

    First you have to create a email port in IS server
    webMethods/Email port
    you have to configure the port properly specially the “Message Processing” based.
    Once done please check whether your port is receiving the emails or not. If it is getting routed properly then you should be able to get the data in getTransportInfo

    Regards,
    Raj


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 5.  RE: Need to retrieve the data from email body in wM

    Posted Tue December 18, 2018 12:40 PM

    Hi Raj,

    Thanks for the message.
    I have already configured my port and I am able to view the sender details.
    However I am able to see null data inside the email/content after testing.

    Also I am getting error as below

    [175]2018-12-18 10:41:57 EST [ISP.0068.0013W] Error processing service: [ISS.0068.9006] Server Error: [ISS.0086.9249] Missing Parameter: inputStream
    [174]2018-12-18 10:41:57 EST [ISP.0068.0025D] No content handler for content type multipart/alternative. Service TestP.rampreportsdummy:email_Test called without content handler.
    [173]2018-12-18 10:41:57 EST [ISP.0068.0004T] Processed 1 new message(s)
    [172]2018-12-18 10:41:56 EST [ISP.0068.0026D] Content type: multipart/alternative; boundary=“0000000000004722dc057d4dbb64” Subject: TestP.rampreportsdummy:email_Test

    I have configured gmail settings on my port.Attaching the screeshot.

    Also I have assigned a object of name “contentStream” on the input.
    But looks like the data is not getting transferred to the pipeline.I can see the subject/from/to/timing of the test email on my code.

    I am sending a body as just “TEST” with no other content.

    Any idea on how to overcome this.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 6.  RE: Need to retrieve the data from email body in wM

    Posted Wed December 19, 2018 04:55 AM

    Hello Preethi,

    You have to change some configuration in the Message processing of the email port
    –Make the service call in default service and not in Global service.
    – Invoke Service for each multipart make it “YES”

    – No need to assgin any object first need to check what actually coming

    just call the below services in your service
    pub.flow:gettransportInfo
    pub.flow:savepipeline

    and check what is coming in the pipeline

    Regards,
    Raj


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services