Active IQ Unified Manager Discussions

get null workflow object in invoking REST API

NEEDHEXIANG
3,467 Views

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

abhit
3,467 Views

Xiang:

We will look into the issue and respond back shortly.

NEEDHEXIANG
3,467 Views

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.

abhit
3,467 Views

That is great. Please send your questions in communities if you require any more clarifications.

-Abhi

Public