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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Regarding File polling issue

  • 1.  Regarding File polling issue

    Posted 09/16/16 12:19 PM

    Hello Experts,

    The file polling port has been configured successfully.File is picking and everything working fine from the configuration side,how to catch that content from service side.data is getting to service(SavePipelineToFile).
    please see the attached image.
    It is not working ,could you please help on this issue.
    thanks
    Ram.


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


  • 2.  RE: Regarding File polling issue

    Posted 09/16/16 01:46 PM

    Hi Ramanjaneyulu,

    can you provide some more details please?

    Please note, if the data is represented as a stream, this data will not make it to saved pipeline file as streams are not serializable.

    Please have a look at Administrators Guide and the FlatFile Developers Guide for further informations.

    Regards,
    Holger


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


  • 3.  RE: Regarding File polling issue

    Posted 09/18/16 01:43 PM

    If you are behind catching the content, convert the stream data to String.


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


  • 4.  RE: Regarding File polling issue



  • 5.  RE: Regarding File polling issue

    Posted 09/19/16 09:16 AM

    What kind of file have you uploaded? The variable could be different based on the content type.


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


  • 6.  RE: Regarding File polling issue

    Posted 09/19/16 11:05 AM

    I am using .txt files but now ,what variable can I use . Please guide me.


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


  • 7.  RE: Regarding File polling issue

    Posted 09/19/16 11:28 AM

    Try to use an Object input named “contentStream”, it should be an InputStream object.
    It can’t be saved to file, because it’s not serializable.


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


  • 8.  RE: Regarding File polling issue

    Posted 09/19/16 11:56 AM


  • 9.  RE: Regarding File polling issue

    Posted 09/19/16 12:00 PM

    What’s the version of your IS?
    How do you verify “not getting”? You got any exception?


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


  • 10.  RE: Regarding File polling issue

    Posted 09/19/16 01:59 PM

    @ Ramanjaneyulu,

    Let us know what is your requirement in regards to the content. As per my understanding if you see the file getting processed successfully then you will see it in completed directory else in error directory.

    Briefly explain the requirement and share us the full error dump to suggest or advice you better. Hope you understand.


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


  • 11.  RE: Regarding File polling issue

    Posted 09/19/16 03:56 PM

    @mahesh

    File picking from the polling directory and going to error directory ,Due to file is not processing correctly in the service .Means stream data is not mapping to the particular variable.I want to parse the flat file using file polling port .initially I need to get data from polling directory to service.very thing is looks good .but data is not stored in variable.(I am placing .txt file in polling directory )
    finally already attached the images above.
    could you please help on this.


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


  • 12.  RE: Regarding File polling issue

    Posted 09/19/16 04:03 PM

    @Xiaowei Wang

    After getting of file, I am storing that file Into particular location.By using stringTofile service
    please check below attached image.
    please help on this.


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


  • 13.  RE: Regarding File polling issue

    Posted 09/20/16 12:49 AM

    What’s the version of your IS?
    You got any exception when stringToFile?


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


  • 14.  RE: Regarding File polling issue

    Posted 09/20/16 07:10 AM

    @Xiaowei Wang
    I am using webMethods 8.2 IS ,file is not storing into a particular directory.


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


  • 15.  RE: Regarding File polling issue

    Posted 09/20/16 01:35 PM

    @ Ramanjaneyulu,

    Can you put your package, sample file, and all the required configurations in a document and attach it here. It will be easy to assist you faster as this topic is going on and on.


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


  • 16.  RE: Regarding File polling issue

    Posted 09/20/16 11:55 PM

    If there is no contentStream in pipeline, I think you will get an thrown exception. Could you try savePipelineToFile after streamToBytes?


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


  • 17.  RE: Regarding File polling issue

    Posted 09/21/16 12:10 PM

    @Mahesh
    please find the below attached file.Regarding what you need.
    kindly suggest me.

    Filepolling.zip (5.61 KB)


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


  • 18.  RE: Regarding File polling issue

    Posted 09/21/16 03:35 PM

    Your package that is attached does not give me enough details. Moreover the package does install correctly but nothing in there. I had to do some tweaks to get the package correctly show-up on IS. I just see one service “filepolling_1:file”

    Kindly provide the details that I have asked to assist you further.


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


  • 19.  RE: Regarding File polling issue

    Posted 09/21/16 04:08 PM

    @Mahesh
    I want to do flat file processing through file polling port. actually I have been provided the details above.
    can you please guide me on this issue.
    thanks
    ram.


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


  • 20.  RE: Regarding File polling issue

    Posted 09/21/16 05:23 PM

    i may have missed out on a reply or something. Did you try setting input variable to ffdata

    below from documentation

    when the Integration Server receives the flat file in the appropriately configured monitoring directory, it passes the document as an InputStream to the service configured in the pipeline variable ffdata .


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


  • 21.  RE: Regarding File polling issue

    Posted 09/21/16 06:07 PM

    Np, you can use the code sample present at the below link, this will give an idea of using the file polling concept. Later for processing the flat file you can create ff schema and dico and process them.

    https://techcommunity.softwareag.com/pwiki/-/wiki/Main/File+Drop+Tutorial

    https://techcommunity.softwareag.com/pwiki/-/wiki/Main/Flat+File+Processing+Tutorial


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


  • 22.  RE: Regarding File polling issue

    Posted 09/22/16 06:44 AM

    Thanks for all your valuable suggestions,After placing of ffdata as input stream variable name, I got an output.
    thanks
    Ram.


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


  • 23.  RE: Regarding File polling issue

    Posted 09/22/16 07:07 AM

    That’s weird, you are supposed get ffdata as input only content-type equals to “application/xwmflatfile” or have you mapped the “txt” to this kind of mime type under Settings > Resources > Mime Types?


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


  • 24.  RE: Regarding File polling issue

    Posted 09/27/16 08:43 AM

    Hello Experts,
    I want to process the .xml file through the file polling,what should I take variable name in the service.
    In case if it is a .txt file, ffdata as the variable name it is working fine.
    thanks,
    ram.


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


  • 25.  RE: Regarding File polling issue

    Posted 09/27/16 01:11 PM

    ffdata


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


  • 26.  RE: Regarding File polling issue

    Posted 09/27/16 03:13 PM

    @Mahesh
    ffdata as object name not working for the .xml files.


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


  • 27.  RE: Regarding File polling issue

    Posted 09/28/16 11:47 AM

    Hi Ramanjaneyulu,

    please enable Auditing for the polling service and check in MWS Monitor UI what is in the pipeline.

    Set the Auditing porperties as follows:
    Enable Auditing: Always
    Log On: Error, Success and Start
    Include Pipeline: Always

    Rgeards,
    Holger


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


  • 28.  RE: Regarding File polling issue

    Posted 09/28/16 04:03 PM

    I got solution for this problem,changed the mime types in IS. I went to the the below path Settings > Resources > Mime Types > click on edit mime types . I added one mime type.
    please check below attached image.

    After changing of mime type,getting data into the ffdata variable.

    mime.PNG


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