NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

get null workflow object in invoking REST API

NEEDHEXIANG
4,405 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
4,405 Views

Xiang:

We will look into the issue and respond back shortly.

NEEDHEXIANG
4,405 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
4,405 Views

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

-Abhi

Public