cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert SoapUI response to java object ?

ozkan
Champ in-the-making
Champ in-the-making
Hi everyone,
I want to convert the response(as XML) of SoapUI to java class.For example here is my example response :


<Response xmlns="http://localhost/activiti-rest/service/runtime/process-instances">
   <activityId>usertask1</activityId>
   <businessKey null="true"/>
   <id>2001</id>
   <processDefinitionId>ExampleProcess:1:1706</processDefinitionId>
   <processDefinitionUrl>http://localhost:8080/activiti-rest/service/repository/process-definitions/ExampleProcess%3A1%3A1706</processDefinitionUrl>
   <suspended>false</suspended>
   <url>http://localhost:8080/activiti-rest/service/runtime/process-instances/2001</url>
   <variables/>
</Response>


How can I do this? Thanks for helps.
5 REPLIES 5

ozkan
Champ in-the-making
Champ in-the-making
Here is response

jbarrez
Star Contributor
Star Contributor
You will need to do that yourself, we don't have anything in Activiti for this.
But im sure there are frameworks that can do this easily for you.

ozkan
Champ in-the-making
Champ in-the-making
Should I use the classes that are in activiti.rest.service.api ? I'm studying over this package , I think my class can be in this package ?
Thanks

jbarrez
Star Contributor
Star Contributor
No, why should you put your class there? You probably need an execution listener or something that transforms your variable into what you want. That execution listeners must be referenced in the process xml, and the class needs to be on the classpath.

ozkan
Champ in-the-making
Champ in-the-making
I understood thanks Mr.Barrez