How to call IS service from Portal with JAVA code.

the service is called but the parameter is always null even if I try to put the value directly like p.setStringIn(“test”);

Is there a BUG or do I need to put the value in parameters in another way?

List selectedIds = getSelectedTaskIDs();
ActivationService1 taskClient = new ActivationService1();

for (String taskID: selectedIds) {
taskClient.setTaskID(taskID);

com.webmethods.caf.is.wsclient.pstesting.datetest.DateTest9 CompleteTask = new com.webmethods.caf.is.wsclient.pstesting.datetest.DateTest9();
com.webmethods.caf.is.wsclient.pstesting.datetest.DateTest9.Parameters p = CompleteTask.new Parameters();
p.setStringIn(taskID);
CompleteTask.refresh();
}