AS400 APIbs for Java

Hi ,
Has anybody used the ProgramCallDocument method to invoke RPG programs on webMethods ? There is a pcml which needs to be passed to the constructor. I am not able to figure out where to place the pcml document. I have tried putting it in the lib so that it can be picked up from the classpath but nothing seesm to work. Does anybody know anything about this ?

regds
Radhika

Hi Radhika,

Check out if this helps out your problem…

AS400 as400 = new AS400();
ProgramCallDocument pcmlDoc = new ProgramCallDocument(as400, “myPcmlDoc”);

The ProgramCallDocument object will look for your PCML source in a file called myPcmlDoc.pcml. Notice that the .pcml extension is not specified on the constructor. If you are developing a Java application in a Java “package,” you can package-qualify the name of the PCML resource:

AS400 as400 = new AS400();
ProgramCallDocument pcmlDoc = new ProgramCallDocument(as400, “com.company.package.myPcmlDoc”);

Thanks,
-GV