Prints the BatchJobService response.

  Args:
    batch_job_helper: a BatchJobHelper instance.
    response_xml: a string containing a response from the BatchJobService.

def PrintResponse(batch_job_helper, response_xml):
  """Prints the BatchJobService response.

  Args:
    batch_job_helper: a BatchJobHelper instance.
    response_xml: a string containing a response from the BatchJobService.
  """
  response = batch_job_helper.ParseResponse(response_xml)

  if 'rval' in response['mutateResponse']:
    for data in response['mutateResponse']['rval']:
      if 'errorList' in data:
        print 'Operation %s - FAILURE:' % data['index']
        print '\terrorType=%s' % data['errorList']['errors']['ApiError.Type']
        print '\ttrigger=%s' % data['errorList']['errors']['trigger']
        print '\terrorString=%s' % data['errorList']['errors']['errorString']
        print '\tfieldPath=%s' % data['errorList']['errors']['fieldPath']
        print '\treason=%s' % data['errorList']['errors']['reason']
      if 'result' in data:
        print 'Operation %s - SUCCESS.' % data['index']