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.  Very Urgent : Java Service to unzip the folder recursively

    Posted Tue April 02, 2013 09:16 PM

    Hello all,
    I am new to webMethods. I need help on unzip a folder containing files/subfolders . I am using unZip service but its not working. At the same time I tried to wrote the Java code to unzip. It is unzipping the folder if it contains files. and its showing error if it contains files&subfolders.

    Please reply me asap.

    Regards,
    sbk.


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


  • 2.  RE: Very Urgent : Java Service to unzip the folder recursively

    Posted Wed April 03, 2013 08:39 AM

    Hi,
    You will find a java service in PSUtilities Packages for unzipping files/folders.

    regards


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


  • 3.  RE: Very Urgent : Java Service to unzip the folder recursively

    Posted Wed April 03, 2013 02:54 PM

    Yes,I did the same but there is no use. javaservice in PSUtilities is not working…

    Any other ways ?


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


  • 4.  RE: Very Urgent : Java Service to unzip the folder recursively

    Posted Wed April 03, 2013 09:30 PM

    What’s the error message you get when you try to use PSUtil services?
    did you add the path to the PSUtilities configuration file


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


  • 5.  RE: Very Urgent : Java Service to unzip the folder recursively

    Posted Thu April 04, 2013 06:51 AM

    Can you share the java cod that you are using to unzip the directory.
    You can check ZipEntry.getNextEntry() is a directory or not before extracting. To check this , use entry.isDirectory() method. I
    f it is not a directory, then extract the file.
    Below link has some sample code for unzipping the files within sub folders.
    [URL]http://examples.javacodegeeks.com/core-java/util/zip/extract-zip-file-with-subdirectories/[/URL]


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