Package org.apache.axis2.soap

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


        env.getBody().addChild(builder.getDocumentElement());

        org.apache.axis2.om.impl.OMOutputImpl omOutput = new org.apache.axis2.om.impl.OMOutputImpl(System.out, false);
        //env.getBody().addChild(builder.getDocumentElement());
       
        env.serializeWithCache(omOutput);
        // env.serializeWithCache(xmlStreamWriter, true);

        omOutput.flush();

    }
View Full Code Here


    }

    public void testSerilizationWithCacheOn() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builderOne.getDocumentElement();
        env.serializeWithCache(writer);
        writer.flush();
    }

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

        writer.flush();
    }

    public void testSerilizationWithCacheOff() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builderOne.getDocumentElement();
        env.serializeWithCache(writer);
        writer.flush();
    }
}
View Full Code Here

        body.serializeWithCache(writer);
    }

    public void testCompleteElement() throws Exception {
        SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
        env.serializeWithCache(writer);
    }

    public void testDualNamespaces1() throws Exception {
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMNamespace ns1 = factory.createOMNamespace("bar", "x");
View Full Code Here

    ByteArrayOutputStream byteOutStr = new ByteArrayOutputStream();
   
    XMLStreamWriter writer = XMLOutputFactory
        .newInstance().createXMLStreamWriter(byteOutStr,UTF_16);
    OMOutputImpl outputImpl = new OMOutputImpl(writer);
    envelope.serializeWithCache(outputImpl);
    outputImpl.flush();
   
    ByteArrayInputStream byteInStr = new ByteArrayInputStream(byteOutStr.toByteArray());
   
    StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(byteInStr, UTF_16),null);
View Full Code Here

        build();

        OMSerializerUtil.serializeStartpart(this, omOutput);
        SOAPFaultCode faultCode = getCode();
        if (faultCode != null) {
            faultCode.serializeWithCache(omOutput);
        }
        SOAPFaultReason faultReason = getReason();
        if (faultReason != null) {
            faultReason.serializeWithCache(omOutput);
        }
View Full Code Here

            faultRole.serializeWithCache(omOutput);
        }

        SOAPFaultDetail faultDetail = getDetail();
        if (faultDetail != null) {
            faultDetail.serializeWithCache(omOutput);
        }

        OMSerializerUtil.serializeEndpart(omOutput);
    }
View Full Code Here

    }

    protected void serializeFaultNode(org.apache.axis2.om.impl.OMOutputImpl omOutput) throws XMLStreamException {
        SOAPFaultNode faultNode = getNode();
        if (faultNode != null) {
            faultNode.serializeWithCache(omOutput);
        }
    }
}
View Full Code Here

        if (faultCode != null) {
            faultCode.serializeWithCache(omOutput);
        }
        SOAPFaultReason faultReason = getReason();
        if (faultReason != null) {
            faultReason.serializeWithCache(omOutput);
        }

        serializeFaultNode(omOutput);

        SOAPFaultRole faultRole = getRole();
View Full Code Here

        serializeFaultNode(omOutput);

        SOAPFaultRole faultRole = getRole();
        if (faultRole != null) {
            faultRole.serializeWithCache(omOutput);
        }

        SOAPFaultDetail faultDetail = getDetail();
        if (faultDetail != null) {
            faultDetail.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.