How to convert SoapUI response to java object ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2014 10:09 AM
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.
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.
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2014 10:11 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 05:33 AM
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.
But im sure there are frameworks that can do this easily for you.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 06:08 AM
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
Thanks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 06:36 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 09:50 AM
I understood thanks Mr.Barrez
