system
(system)
June 7, 2016, 11:50am
1
Hi All,
Our requirement is to write to a file present in the network drive from the IS .
The particular folder in the network drive is provided with the shared access .
We created a java code to write the file but unfortunately it is not getting write to the file.
Also,tried adding the file path present in the network drive in the file access config file of the IS .But it didn’t work.
Any ideas will be helpful.
Thanks,
Sathya
MR_as173d
(MR as173d)
June 7, 2016, 12:39pm
2
Did you see errors ? Please share if yes. Which wM version you are on ?
Thanks,
system
(system)
June 7, 2016, 12:41pm
3
Hi,
Thanks for the reply.
We get the file doesn’t exist error while trying to use get file.
version is 9.0.1
I am not sure on how to pass the path for the file present in network drive.
Please advise.
Thanks,
Sathya
MR_as173d
(MR as173d)
June 7, 2016, 12:57pm
4
Please share what inputs you are passing, also give some screen shots which makes us to understand a bit more clear.
Thanks,
system
(system)
June 7, 2016, 1:00pm
5
PFA the input passed to get file service.
Try with mounted directory and with forward slashes for Unix path.Let me know the results.
Thanks,
system
(system)
June 7, 2016, 1:33pm
7
Hi,
It is a windows OS.
Can you please give a sample example screenshot.
You make sure you have necessary access on the file path. Sample one is:
\sac-fcp02\bjcdata\Nerospace_Sales\inputs.xls. Please give a try.
Thanks,
system
(system)
June 8, 2016, 11:49am
9
Followed the option 2 in the below link and it worked
rmg
(rmg)
June 8, 2016, 4:01pm
10
Glad to hear it worked out for you! as always this is been tricky and should resolve.
HTH,
RMG
Hi,
i have requirement to write the file into network drive shared location as well as i need to pull also.
its completely need to handle in java code, we are not going to use any FTP or SFTP calls. its project requirement.
can you help me with the java code, as am new to java since i need to handle this.
rmg
(rmg)
December 31, 2019, 7:12pm
12
Hi,
OK as long your IS is able to access that shared path then it make job easy with out using FTP channel.
Please consider using these 2 utility services -
Push file --using writeToFile (PSUtilities JS service)
Pull file – using getFile (loadAs bytes or stream) WM public service
HTH,
RMG
rmg:
Hi,
OK as long your IS is able to access that shared path then it make job easy with out using FTP channel.
Please consider using these 2 utility services -
Push file --using writeToFile (PSUtilities JS service)
Pull file – using getFile (loadAs bytes or stream) WM public service
HTH,
RMG
Hi Thanks for the response.
as you said i did followed in invoking to services and it works when i mention local path which is inside the IS, but it did not worked when i network path
i got the below error:
Could not run ‘flietransferring’
com.wm.app.b2b.server.ServiceException: [ISS.0086.9256] File [\Vunnb-fs03\VUNNB-ENG-AUTOMATION\OUTBOUND\test.txt] does not exist
the above mentioned path is having read and write permission in fileAccessControl.cnf folder.