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
  • 1.  SMTP Integration Message Validation

    Posted Mon September 25, 2006 07:05 PM

    Case: The application is integrated using SMTP integration with one of our customers. Customers send email message with an xml message attached. The WebMethod reads this email attachment and parses for DTD validity.

    Problem: We need to have a check in place which checks for the message. It checks IF the message attached in the email is of type: .xml.
    If YES it parses it.
    If NO it deleted the message.

    Is this functionality possible in webMethods.
    If YES what are the different approach for that.

    Appreciate your help.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: SMTP Integration Message Validation

    Posted Mon September 25, 2006 09:41 PM

    I dont think it is possible directly in the Email port side,but in your receiving service do a check on filename IF (.xml) and then process it.Get the filename thing using getTransportInfo service.

    HTH.
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: SMTP Integration Message Validation

    Posted Tue September 26, 2006 02:19 PM

    Thanks for the help. But we are new to webMethods so I would really appreciate if you can be a bit elaborate. Can you list down exactly what procedures we need to follow.

    Thanks
    Vikash


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: SMTP Integration Message Validation

    Posted Tue September 26, 2006 06:40 PM

    Please see the IS Builtin service guide regarding this service pipeline outputs “pub.flow:getTransportInfo”. For testing purpose in your Email receiving service put a savepipeline after this service

    getTransportInfo
    savepipeline (later restorepipeline to examine the Email/filename value)
    restorepipeline

    Once you have the fileaname you do a Branch condition step and check if ext is .xml or not using tokenize or substring functions and put your condition logic for example:

    Branch on (ext)
    If ext=.xml
    —process the file
    $Default
    ignore processing…

    HTH,
    RMG


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB