Active IQ Unified Manager Discussions

get null workflow object in invoking REST API

NEEDHEXIANG

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

Xiang:

We will look into the issue and respond back shortly.

NEEDHEXIANG

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

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

-Abhi

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public