Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ,
i tried to update the code in the REST API GET sample code to get a generic type java object, got null value,
ClientResponse response = webResource.type("application/xml").get( ClientResponse.class);
if (response.getStatus() != 200) {
}
// String output = response.getEntity(String.class);// this can get all the response infomation
generated.WorkflowRepresentation workflow = response.getEntity(generated.WorkflowRepresentation.class); // but the workflow is null ,
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Xiang:
We will look into the issue and respond back shortly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks abhit,
I guess i made mistake in generating java class from the xsd file . after changed the xsd and regenerated java class , i can get result correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is great. Please send your questions in communities if you require any more clarifications.
-Abhi
