protected boolean scanResponseForErrors() throws XdsInternalException { if (s_ctx.getExpectedStatus().size()==1 && s_ctx.getExpectedStatus().get(0).isSuccess()) { RegistryResponseParser registry_response = new RegistryResponseParser(getSoapResult()); List<String> errs = registry_response.get_regrep_error_msgs(); if (errs.size() > 0) { logger.info("Received errors in response"); for (String err : errs) s_ctx.set_error(err); failed(); return false; } } return true; }
private void loadStepContextwithResponseErrors(String responseString) throws XdsInternalException, JaxenException { OMElement envelopeEle = Util.parse_xml(responseString); AXIOMXPath xpathExpression = new AXIOMXPath ("//*[local-name()='RegistryResponse']"); List nodeList = xpathExpression.selectNodes(envelopeEle); if (nodeList.size() != 1) { s_ctx.set_error("Cannot extract RegistryResponse from SOAP Message"); failed(); return; } OMElement responseEle = (OMElement) nodeList.get(0); RegistryResponseParser responseParser = new RegistryResponseParser(responseEle); if(responseParser.is_error()) { s_ctx.set_error(responseParser.get_regrep_error_msgs()); failed(); } }
RegistryResponseParser registry_response = new RegistryResponseParser(registry_result); ArrayList<String> validatorErrors = new RegistryResponseParser(rel.getRegistryErrorList()).get_error_code_contexts(); returned_code_contexts.addAll(validatorErrors);
RegistryResponseParser rrp = new RegistryResponseParser(m.getMetadata()); if (MetadataSupport.status_failure.equals(rrp.get_registry_response_status())) { err("Response status is Failure.");
RegistryResponseParser rrp = new RegistryResponseParser(registry_response); r_ctx.setRrp(rrp);
RegistryResponseParser rrp = new RegistryResponseParser(registry_response); r_ctx.setRrp(rrp);
RegistryResponseParser registry_response = new RegistryResponseParser(result);