Examples of detachNode()


Examples of javax.xml.soap.SOAPBody.detachNode()

    public void testBody() throws Exception {
        SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
        SOAPBody b1 = env.getBody();
        assertTrue("null initial body", b1 != null);
        b1.detachNode();
        assertTrue("body not freed", env.getBody() == null);
        SOAPBody b2 = env.addBody();
        assertTrue("null created body", b2 != null);
        assertEquals("wrong body retrieved", b2, env.getBody());
        assertEquals("body parent incorrect", env,
View Full Code Here

Examples of javax.xml.soap.SOAPBody.detachNode()

            // The getSOAPEnvelope() call creates a default SOAPEnvelope with a SOAPHeader and SOAPBody.
            // The SOAPHeader and SOAPBody are removed (they will be added back in if they are present in the
            // OMEnvelope).
            SOAPBody soapBody = soapEnvelope.getBody();
            if (soapBody != null) {
                soapBody.detachNode();
            }
            SOAPHeader soapHeader = soapEnvelope.getHeader();
            if (soapHeader != null) {
                soapHeader.detachNode();
            }
View Full Code Here

Examples of javax.xml.soap.SOAPBody.detachNode()

            // The getSOAPEnvelope() call creates a default SOAPEnvelope with a SOAPHeader and SOAPBody.
            // The SOAPHeader and SOAPBody are removed (they will be added back in if they are present in the
            // OMEnvelope).
            SOAPBody soapBody = soapEnvelope.getBody();
            if (soapBody != null) {
                soapBody.detachNode();
            }
            SOAPHeader soapHeader = soapEnvelope.getHeader();
            if (soapHeader != null) {
                soapHeader.detachNode();
            }
View Full Code Here

Examples of javax.xml.soap.SOAPBody.detachNode()

    public void testBody() throws Exception {
        SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
        SOAPBody b1 = env.getBody();
        assertTrue("null initial body", b1 != null);
        b1.detachNode();
        assertTrue("body not freed", env.getBody() == null);
        SOAPBody b2 = env.addBody();
        assertTrue("null created body", b2 != null);
        assertEquals("wrong body retrieved", b2, env.getBody());
        assertEquals("body parent incorrect", env, b2.getParentElement());
View Full Code Here

Examples of javax.xml.soap.SOAPBodyElement.detachNode()

            // Response should only include the fault, so remove
            // any request body nodes.
            if (iter.hasNext()) {
                SOAPBodyElement requestBody = (SOAPBodyElement)iter.next();
                // detach this node from the tree
                requestBody.detachNode();
            }


            SOAPFault soapFault = sb.addFault();
View Full Code Here

Examples of javax.xml.soap.SOAPElement.detachNode()

    @Override
    public void removeHeaderElement(QName name) throws SoapHeaderException {
      Iterator<SOAPElement> iterator = getSaajHeader().getChildElements(name);
      if (iterator.hasNext()) {
          SOAPElement element = iterator.next();
          element.detachNode();
      }
    }

    protected SOAPHeader getSaajHeader() {
        return getSaajElement();
View Full Code Here

Examples of javax.xml.soap.SOAPElement.detachNode()

      if (faultcode == null)
         findFaultCodeElement();

      SOAPElement subcodeElement = getChildSubcodeElement(faultcode);
      if (subcodeElement != null)
         subcodeElement.detachNode();
   }

   /** Gets the fault string for this SOAPFault object.
    */
   public String getFaultString()
View Full Code Here

Examples of javax.xml.soap.SOAPElement.detachNode()

      if (faultcode == null)
         findFaultCodeElement();

      SOAPElement subcodeElement = getChildSubcodeElement(faultcode);
      if (subcodeElement != null)
         subcodeElement.detachNode();
   }

   /** Gets the fault string for this SOAPFault object.
    */
   public String getFaultString()
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.detachNode()

            if (soapBody != null) {
                soapBody.detachNode();
            }
            SOAPHeader soapHeader = soapEnvelope.getHeader();
            if (soapHeader != null) {
                soapHeader.detachNode();
            }

            // We don't know if there is a real OM tree or just a backing XMLStreamReader.
            // The best way to walk the data is to get the XMLStreamReader and use this
            // to build the SOAPElements
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.detachNode()

    public void testHeader() throws Exception {
        SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
        SOAPHeader h1 = env.getHeader();
        assertTrue("null initial header", h1 != null);
        h1.detachNode();
        assertTrue("header not freed", env.getHeader() == null);
        SOAPHeader h2 = env.addHeader();
        assertTrue("null created header", h2 != null);
        assertEquals("wrong header retrieved", h2, env.getHeader());
        assertEquals("header parent incorrect", env,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.