Package org.apache.axis2.databinding

Examples of org.apache.axis2.databinding.ADBBean.serialize()


          omOutput.flush();
                    omOutput.complete();
          out.flush();
        } else {
          omOutput = new OMOutput(out, false);
          outputMessage.serialize(omOutput);
          omOutput.flush();
          out.flush();
        }
      } catch (Exception e) {
        throw new AxisFault("Stream error", e);
View Full Code Here


                writeMessageWithCommons(msgContext, epr, dataOut);
            } else {
                OutputStream out =
                    (OutputStream) msgContext.getProperty(MessageContext.TRANSPORT_OUT);
                OMOutput output = new OMOutput(out, false);
                dataOut.serialize(output);
            }
            msgContext.getOperationContext().setProperty(
                Constants.RESPONSE_WRITTEN,
                Constants.VALUE_TRUE);
        } catch (XMLStreamException e) {
View Full Code Here

                    Constants.TRANSPORT_HTTP,
                    false);
            call.setTo(targetEPR);
            OMElement result = call.invokeBlocking(
                    operationName.getLocalPart(), method);
            result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(
                            System.out));
            fail("the test must fail due to bad service Name");
        } catch (AxisFault e) {
            log.info(e.getMessage());
            String message = e.getMessage();
View Full Code Here

              //Pick the char set encoding from the msgContext
                String charSetEnc = (String) msgContext
            .getProperty(MessageContext.CHARACTER_SET_ENCODING);
        omOutput.setOutputStream(out, msgContext.isDoingMTOM());
                omOutput.setCharSetEncoding(charSetEnc);
        outputMessage.serialize(omOutput);
                omOutput.flush();
                out.flush();
            } catch (Exception e) {
                throw new AxisFault(e);
            }
View Full Code Here

                    }else{
                        throw new AxisFault(HTTPConstants.HTTPOutTransportInfo + " does not set");
                    }
                }
                omOutput.setOutputStream(out, msgContext.isDoingMTOM());
                dataOut.serialize(omOutput);
                omOutput.flush();
            }
            if(msgContext.getOperationContext() != null){
                msgContext.getOperationContext().setProperty(
                        Constants.RESPONSE_WRITTEN,
View Full Code Here

                omNode.serializeWithCache(omOutput);
            }
        } else {
            while (children.hasNext()) {
                OMNode omNode = (OMNode) children.next();
                omNode.serialize(omOutput);
            }
        }
    }

View Full Code Here

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

    }

    public void testElementSerilizationChild() throws Exception {
        OMElement elt = builder.getDocumentElement();
        OMNode node = elt.getFirstOMChild().getNextOMSibling();
        node.serialize(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.serialize(writer);
    }

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

        OMNode firstChild = element.firstChild;
        if (firstChild != null) {
            if (cache){
                firstChild.serializeWithCache(omOutput);
            }else{
                firstChild.serialize(omOutput);
            }
        }
        serializeEndpart(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.