Project and Portfolio Management Practitioners Forum
cancel

Project Web Service Error

Highlighted
NW
Occasional Advisor

Project Web Service Error

I am receiving an error when I try and add a task using the project web service when using the create work plan from template call

I am trying to get the schedule duration of a task using the readTask web service.

I thought that once i read the task i can then just use the scheduleBean to read the duration. such as sourceTask.getschedulingBean().getscheduleDuration()
sourceTask is what i am using to reference the task which i have already read.

Then i am trying to populate the new task with the same duration.
sif.setScheduledDuration(sourceTask.getschedulingBean().getsched
uledDuration());
sif is my new task scheduleBean information.

Here is my error:
CreateWorkPlanFromTemplate.java:385: cannot resolve symbol
symbol : method getschedulingBean ()
location: interface com.mercury.itg.ws.pm.client.TaskType
sif.setScheduledDuration(sourceTask.getschedulingBean().getsched
uledDuration());


Thank you for the help
//Add this to "OnDomLoad" event