inventory_status_responses result = (inventory_status_responses) service.get_payload_formatter().string_to_resource(inventory_status_responses.class, response);
if(result.errorcode != 0)
{
if (result.errorcode == SESSION_NOT_EXISTS)
service.clear_session();
throw new nitro_exception(result.message, result.errorcode, (base_response [])result.inventory_status_response_array);
}
inventory_status[] result_inventory_status = new inventory_status[result.inventory_status_response_array.length];
for(int i = 0; i < result.inventory_status_response_array.length; i++)
{