TMS and TMP

0 views
Skip to first unread message

Pierpaolo

unread,
Mar 30, 2008, 9:23:02 AM3/30/08
to tempo-dev
I suppose to use TMS and TMP from my code:
- getTaskList on TMS
- completeTask on TMP

In order to invoke getTaskList I use a stub created from
TaskManagementServices using wsdl2java. I can create the stub but then
I use it an exception occurs:
Exception in thread "main" org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unexpected subelement task
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
tms.TaskManagementServicesStub.fromOM(TaskManagementServicesStub.java:
2657)
at
tms.TaskManagementServicesStub.getTaskList(TaskManagementServicesStub.java:
701)
at ProvaMain.main(ProvaMain.java:24)

About TMP, what is the web service to use? Is it completeTask? Can I
use TMS also in this case invoking the operation
setOutputAndComplete ??

Thanks

Pierpaolo

unread,
Mar 30, 2008, 10:48:25 AM3/30/08
to tempo-dev
I'm using TaskManagementServicesStub in order to complete a task. I
should invoke the setOutputAndComplete operation but an exception
occurs. I tried invoking the complete operation and it works...the
task becomes COMPLETED.
But how to set the output using TMS? I can set it using TMP but it
doesn't work....

Pierpaolo

unread,
Mar 30, 2008, 11:11:09 AM3/30/08
to tempo-dev
I mean, TMP works...the task becomes COMPLETED but the following
exception occurs

Exception in thread "main" org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unexpected subelement
taskMetaData
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at tmp.CompleteTaskStub.fromOM(CompleteTaskStub.java:615)
at tmp.CompleteTaskStub.completeTask(CompleteTaskStub.java:272)
at prova.CompletaPIPA.main(CompletaPIPA.java:99)
Reply all
Reply to author
Forward
0 new messages