Java Service In wM IS

Hi Friends,

I m not familiar with Java…
I tried to create a java service for copy a file from one directory to another directory in webMethods…

But I m unable to compile. got this error message… kindly help me…

[COLOR=royalblue]/app/webmethods70/xpi/IntegrationServer/packages/GSCT_Test/code/source/GSCT_Test/Mohan.java:89: copyDirectory(com.wm.data.IData) in GSCT_Test.Mohan cannot be applied to (java.io.File,java.io.File)
copyDirectory(targetDirectory,sourceDirectory);
[1]

Thanks

Mohan


  1. /color ↩︎

In webMethods the java services are compiled automatically when you try to save your service. For your problem, either there is not enough permission for copying the file to the target directory (look for write permission for that folder) and try to execute your service.

Thanks,
Pradeep

Can you post your Java service content? It looks like you’re trying to pass an IData object to a copyDirectory method but that method is expecting 2 java.io.File objects.

Mohan indicates that the service won’t compile. So the service can not run. So this isn’t a permissions issue (at this point).

Look at the error:

copyDirectory([B][COLOR="SeaGreen"]com.wm.data.IData[/color][/b]) in GSCT_Test.Mohan cannot be applied to ([B][COLOR="Red"]java.io.File,java.io.File[/color][/b])

You call the copyDirectory function with the wrong parameters…