Subscribe

get null workflow object in invoking REST API

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 ,

Re: get null workflow object in invoking REST API

Xiang:

We will look into the issue and respond back shortly.

Re: get null workflow object in invoking REST API

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.

Re: get null workflow object in invoking REST API

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

-Abhi