webMethods

webMethods

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.  pub.file:getFile with "File does not exist" error

    Posted Wed June 26, 2019 09:35 AM

    Hi

    I’m trying to get the file from local drive with built in service pub.file:getFile.

    As the documentation states:

    WmPublic. Retrieves a specified file from the local file system.
    filename - String The absolute path name of the file in the local file system (for example c:\rubicon\document.xml).

    So I’m putting path in the fileName field with example of: C:\Users\test\Downloads\test\test.txt.

    I’ve got there three lines with text.

    After running the service I’m catching an error:

    com.wm.app.b2b.server.ServiceException: [ISS.0086.9256] File [C:\Users\test\Downloads\test\test.txt] does not exist
    at pub.CommonUtils.checkFileExists(CommonUtils.java:533)
    at pub.file.getFile(file.java:1103)
    at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)

    Rest of fields in this service are optional so I leave them empty.

    What’s wrong with this? Any ideas?


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


  • 2.  RE: pub.file:getFile with "File does not exist" error

    Posted Wed June 26, 2019 12:43 PM

    There is a config file(fileaccess.cnf) in WmPublic\config or WmRoot\config. You need to set the folders where IS can read write there.After set, remember to refresh the package.


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


  • 3.  RE: pub.file:getFile with "File does not exist" error

    Posted Thu June 27, 2019 05:26 AM


  • 4.  RE: pub.file:getFile with "File does not exist" error

    Posted Sun June 30, 2019 03:38 AM

    Just a small correction it is in SoftwareAG\IntegrationServer\instances\default\packages\WmPublic\config and the file is fileAccessControl.cnf.

    After you chage this file, save and reload the package from IS/Designer.


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


  • 5.  RE: pub.file:getFile with "File does not exist" error

    Posted Fri January 31, 2020 01:54 AM

    Hello Everyone,

    May I ask what should be the extension on getting PDF files? I am using getFile service as well. I have access on the folder where my files are located. I can get .txt files, however for .pdf, it is getting an error “does not exist”. I also tried to get it without extension but no luck. Anyone experienced this issue? (FYI, pdf I am using is nuance pdf) Thank you!

    Kind regards,
    Mor


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