Package org.apache.axis2.soap

Examples of org.apache.axis2.soap.SOAPFaultRole.serializeWithCache()


        String tempFile = "TempOutputFile.txt";
        XMLStreamWriter writer;
        try {
            writer = XMLOutputFactory.newInstance().
                    createXMLStreamWriter(new FileOutputStream(tempFile));
            rootElement.serializeWithCache(writer);
        } catch (XMLStreamException e) {
            log.info("Error in creating XMLStreamWriter to write parsed xml into");
            return;
        } catch (Exception e) {
            log.info("Exception while serializing: " +
View Full Code Here


    }

    public void testElementSerilizationChild() throws Exception {
        OMElement elt = builder.getDocumentElement();
        OMNode node = elt.getFirstChild().getNextSibling();
        node.serializeWithCache(writer);

    }

    public void testElementSerilizationSOAPBodyCacheOff() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
View Full Code Here

    }

    public void testElementSerilizationSOAPBodyCacheOff() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        OMNode node = env.getBody();
        node.serializeWithCache(writer);
    }

    public void testElement() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        SOAPBody body = env.getBody();
View Full Code Here

        Iterator children = this.getChildren();

        if (cache) {
            while (children.hasNext()) {
                OMNode omNode = (OMNode) children.next();
                omNode.serializeWithCache(omOutput);
            }
        } else {
            while (children.hasNext()) {
                OMNode omNode = (OMNode) children.next();
                omNode.serialize(omOutput);
View Full Code Here

        serializeStartpart(element, omOutput);
        OMNode firstChild = element.firstChild;
        if (firstChild != null) {
            if (cache) {
                firstChild.serializeWithCache(omOutput);
            } else {
                firstChild.serialize(omOutput);
            }
        }
        serializeEndpart(omOutput);
View Full Code Here

        serializeStartpart(element,omOutput);
        OMNode firstChild = element.firstChild;
        if (firstChild != null) {
            if (cache){
                firstChild.serializeWithCache(omOutput);
            }else{
                firstChild.serialize(omOutput);
            }
        }
        serializeEndpart(omOutput);
View Full Code Here

    } else if (textType == CDATA_SECTION_NODE) {
      writer.writeCData(this.value);
    }
    OMNode nextSibling = this.getNextSibling();
    if (nextSibling != null) {
      nextSibling.serializeWithCache(omOutput);
    }
  }

  /**
   * Returns the value
View Full Code Here

        serializeStartpart(element, omOutput);
        OMNode firstChild = element.firstChild;
        if (firstChild != null) {
            if (cache) {
                firstChild.serializeWithCache(omOutput);
            } else {
                firstChild.serialize(omOutput);
            }
        }
        serializeEndpart(omOutput);
View Full Code Here

    }

    public void testElement() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        SOAPBody body = env.getBody();
        body.serializeWithCache(writer);
    }

    public void testCompleteElement() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        env.serializeWithCache(writer);
View Full Code Here

    }

    public void testElement() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        SOAPBody body = env.getBody();
        body.serializeWithCache(omOutput);
    }

    public void testCompleteElement() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        env.serializeWithCache(omOutput);
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.