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
  • 1.  saving text files through ftp

    Posted 07/01/03 04:21 PM

    Hi,

    looking tips for saving text files uploaded through ftp. I am able to set up the ftp port and call services, not able to get the contents from ftp.

    thanks

    Gary


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


  • 2.  RE: saving text files through ftp

    Posted 07/08/03 09:52 AM

    Create an IData JavaService with output content like this:

    IDataHashCursor pipc = pipeline.getHashCursor();
    pipc.first();
    String content = (String) pipc.getKey();
    pipc.insertAfter(“content”, content);

    Use this service as the first step in a flow service that processes your FTP content

    Files with extension .txt can now be sent to the flow service.
    For other possible extensions check mime.types in the /lib directory
    If you edit mime.types to add your custom types, you need to restart the IS for the changes to take effect.

    Good Luck


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


  • 3.  RE: saving text files through ftp

    Posted 07/18/03 09:40 AM

    Well Gary, I’m only able to set up the ftp port but can not call any service. Can you help me on this??

    Sorry that I can’t help you with youre problem!


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


  • 4.  RE: saving text files through ftp

    Posted 07/18/03 10:41 AM

    Huub,

    what is the input and output parameters of youre java service?

    Thanx


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


  • 5.  RE: saving text files through ftp

    Posted 07/21/03 04:02 AM

    No input
    Output is string variable named ‘content’

    Huub


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