/** * Returns the optional Node element value for this SOAPFault object. The Node element is * optional in SOAP 1.2. * * @return Content of the env:Fault/env:Node element as a String or null if none * @throws UnsupportedOperationException * - if this message does not support the SOAP 1.2 concept of Fault Node. */ public String getFaultNode() { if (((SOAPFactory)this.omTarget.getOMFactory()).getSOAPVersion() == SOAPVersion.SOAP11) { throw new UnsupportedOperationException("Message does not support the " + "SOAP 1.2 concept of Fault Node"); } else { if (omTarget != null && omTarget.getNode() != null && omTarget.getNode().getText() != null) { return omTarget.getNode().getText(); } } return null; }
@Override public String getFaultNode() { SOAPFaultNode faultNode = getAxiomFault().getNode(); if (faultNode == null) { return null; } else { return faultNode.getFaultNodeValue(); } }
/** * Returns the optional Node element value for this SOAPFault object. The Node element is * optional in SOAP 1.2. * * @return Content of the env:Fault/env:Node element as a String or null if none * @throws UnsupportedOperationException * - if this message does not support the SOAP 1.2 concept of Fault Node. */ public String getFaultNode() { if (((SOAPFactory)this.omTarget.getOMFactory()).getSOAPVersion() == SOAP11Version.getSingleton()) { throw new UnsupportedOperationException("Message does not support the " + "SOAP 1.2 concept of Fault Node"); } else { if (omTarget != null && omTarget.getNode() != null && omTarget.getNode().getText() != null) { return omTarget.getNode().getText(); } } return null; }
@Override public String getFaultNode() { SOAPFaultNode faultNode = getAxiomFault().getNode(); if (faultNode == null) { return null; } else { return faultNode.getFaultNodeValue(); } }
@Override public String getFaultNode() { SOAPFaultNode faultNode = getAxiomFault().getNode(); if (faultNode == null) { return null; } else { return faultNode.getFaultNodeValue(); } }
public String getFaultNode() { SOAPFaultNode faultNode = getAxiomFault().getNode(); if (faultNode == null) { return null; } else { return faultNode.getNodeValue(); } }
private static AxisFault getAxisFaultFromFromSOAPFault(SOAPFault faultPart, RMMsgContext rmMsgCtx) { String soapFaultSubcode = null; SequenceFault sequenceFault = rmMsgCtx.getSequenceFault(); AxisFault axisFault = null; // If the sequence fault part is not null, then we have an RM specific fault. if (sequenceFault != null) { soapFaultSubcode = sequenceFault.getFaultCode().getFaultCode().getLocalPart(); //Need to concatenate all info about the error into string StringBuffer faultSB = new StringBuffer(); faultSB.append(soapFaultSubcode + " "); faultSB.append(sequenceFault.getFaultCode().getDetail() + " "); faultSB.append(faultPart.getDetail().getText()); axisFault = new AxisFault(faultSB.toString(), sequenceFault.getFaultCode().getFaultCode()); } else { axisFault = new AxisFault(faultPart.getCode(), faultPart.getReason(), faultPart.getNode(), faultPart .getRole(), faultPart.getDetail()); } return axisFault; }
private void initializeValues(SOAPFault fault) { if (fault != null) { initializeValues(fault.getCode(), fault.getReason(), fault.getNode(), fault.getRole(), fault.getDetail()); } }
private void initializeValues(SOAPFault fault) { if (fault != null) { initializeValues(fault.getCode(), fault.getReason(), fault.getNode(), fault.getRole(), fault.getDetail()); } }
fault.getNode(), fault.getRole(), detail); msgContext.setProperty(Constants.INBOUND_FAULT_OVERRIDE, axisFault);
SOAPFaultNode soapFaultNode = fault.getNode(); if(soapFaultNode != null) { soapFaultNode.setText((String) faultNode);
SOAPFaultNode soapFaultNode = fault.getNode(); if(soapFaultNode != null) { soapFaultNode.setText((String) faultNode);