GetFile Service

I am trying to use the “getFile” service in the Wmpublic package under the “pub.file” sub-directory. Everytime i give the path for the file (eg : C:\a.txt), i get an error saying that the file does not exist even though it does exist.If anyone has used this service , please let me know the solution for this problem

Put the file in the root directory of the integration server and just input the file name and it will find it.

Pawan,

Are u connected to the Integration Server on your sand box?If you are connected to the integration server that is installed on different machine,then getFile service searches for the file in the machine where the Integration Sever actually installed.

Pawan
first you must to getfile from the same machine where installed the IS
for exemple you want to get file request.txt from C:
you shoud put:
1- filename=C:\request.txt and the name of file will be juste request without extension it’s added automatically.
2 loadAs: byte
I hope it’s help
good luck

1 Like

file Extension needs to be mentioned along with file name while using getfile method

set the file AccessControl patch in the

IntegrationServer\instances\default\packages\WmPublic\config

fileAccessControl.cnf

allowedWritePaths= C:
allowedReadPaths= C:
allowedDeletePaths= C:\

this should work

set the file AccessControl path in the

IntegrationServer\instances\default\packages\WmPublic\config

fileAccessControl.cnf

allowedWritePaths= C:\
allowedReadPaths= C:\
allowedDeletePaths= C:\

this should work