private void setFaultNode(SOAPFactory factory, SOAPFault fault) { if (faultNode != null) { SOAPFaultNode soapfaultNode = factory.createSOAPFaultNode(); soapfaultNode.setFaultNodeValue(faultNode.toString()); fault.setNode(soapfaultNode); } }
@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(); } }
soapfaultNode.setNodeValue(fault.getNode().getNodeValue()); newFault.setNode(soapfaultNode);
/** * Creates or replaces any existing Node element value for this SOAPFault object. The Node * element is optional in SOAP 1.2. * * @throws SOAPException - if there was an error in setting the Node for this SOAPFault object. * java.lang.UnsupportedOperationException - if this message does not * support the SOAP 1.2 concept of Fault Node. * @since SAAJ 1.3 */ public void setFaultNode(String s) throws SOAPException { SOAPFactory soapFactory = (SOAPFactory)this.omTarget.getOMFactory(); if (((SOAPFactory)this.omTarget.getOMFactory()).getSOAPVersion() == SOAPVersion.SOAP11) { throw new UnsupportedOperationException("message does not support " + "the SOAP 1.2 concept of Fault Node"); } SOAPFaultNode soapFaultNode = soapFactory.createSOAPFaultNode(this.omTarget); soapFaultNode.setText(s); this.omTarget.setNode(soapFaultNode); }
private void setFaultNode(SOAPFactory factory, SOAPFault fault) { if (faultNode != null) { SOAPFaultNode soapfaultNode = factory.createSOAPFaultNode(); soapfaultNode.setNodeValue(faultNode.toString()); fault.setNode(soapfaultNode); } }
/** * 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; }
protected void serializeFaultNode(XMLStreamWriter writer) throws XMLStreamException { SOAPFaultNode faultNode = getNode(); if (faultNode != null) { (faultNode).serialize(writer); } }
/** * Creates or replaces any existing Node element value for this SOAPFault object. The Node * element is optional in SOAP 1.2. * * @throws SOAPException - if there was an error in setting the Node for this SOAPFault object. * java.lang.UnsupportedOperationException - if this message does not * support the SOAP 1.2 concept of Fault Node. * @since SAAJ 1.3 */ public void setFaultNode(String s) throws SOAPException { SOAPFactory soapFactory = (SOAPFactory)this.omTarget.getOMFactory(); if (((SOAPFactory)this.omTarget.getOMFactory()).getSOAPVersion() == SOAP11Version.getSingleton()) { throw new UnsupportedOperationException("message does not support " + "the SOAP 1.2 concept of Fault Node"); } SOAPFaultNode soapFaultNode = soapFactory.createSOAPFaultNode(this.omTarget); soapFaultNode.setText(s); this.omTarget.setNode(soapFaultNode); }
public void setFaultNode(String uri) { try { SOAPFaultNode faultNode = getAxiomFactory().createSOAPFaultNode(getAxiomFault()); faultNode.setNodeValue(uri); getAxiomFault().setNode(faultNode); } catch (SOAPProcessingException ex) { throw new AxiomSoapFaultException(ex); } }
/** * 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 void setFaultNode(String uri) { try { SOAPFaultNode faultNode = getAxiomFactory().createSOAPFaultNode(getAxiomFault()); faultNode.setFaultNodeValue(uri); getAxiomFault().setNode(faultNode); } catch (SOAPProcessingException ex) { throw new AxiomSoapFaultException(ex); } }
SOAPFaultNode soapFaultNode = fault.getNode(); if(soapFaultNode != null) { soapFaultNode.setText((String) faultNode);
@Override public String getFaultNode() { SOAPFaultNode faultNode = getAxiomFault().getNode(); if (faultNode == null) { return null; } else { return faultNode.getFaultNodeValue(); } }
@Override public void setFaultNode(String uri) { try { SOAPFaultNode faultNode = getAxiomFactory().createSOAPFaultNode(getAxiomFault()); faultNode.setFaultNodeValue(uri); getAxiomFault().setNode(faultNode); } catch (SOAPProcessingException ex) { throw new AxiomSoapFaultException(ex); } }
SOAPFaultNode soapFaultNode = fault.getNode(); if(soapFaultNode != null) { soapFaultNode.setText((String) faultNode);
@Override public String getFaultNode() { SOAPFaultNode faultNode = getAxiomFault().getNode(); if (faultNode == null) { return null; } else { return faultNode.getFaultNodeValue(); } }
@Override public void setFaultNode(String uri) { try { SOAPFaultNode faultNode = getAxiomFactory().createSOAPFaultNode(getAxiomFault()); faultNode.setFaultNodeValue(uri); getAxiomFault().setNode(faultNode); } catch (SOAPProcessingException ex) { throw new AxiomSoapFaultException(ex); } }