public void run(ErrorRecorder er, MessageValidatorEngine mvc) { this.response = rrSim.getResponse(); try { er.detail("Wrapping response in SOAP Message"); OMElement env = dsSimCommon.wrapResponseInSoapEnvelope(response.getResponse()); dsSimCommon.sendHttpResponse(env, er); } // this cannot be - registry errors already sealed - this must be SOAP Fault catch (Exception e) { er.err(XdsErrorCode.Code.SoapFault, e); dsSimCommon.sendFault("Error wrapping response in Soap Envelope", e); System.out.println(ExceptionUtil.exception_details(e)); } }
private void returnRetrieveError() { mvc.run(); Response response = null; try { response = dsSimCommon.getRegistryResponse(); er.detail("Wrapping response in RetrieveDocumentSetResponse and then SOAP Message"); OMElement rdsr = dsSimCommon.wrapResponseInRetrieveDocumentSetResponse(response.getResponse()); OMElement env = dsSimCommon.wrapResponseInSoapEnvelope(rdsr); dsSimCommon.sendHttpResponse(env, er); } catch (Exception e) { } }