Package org.apache.axis2.soap

Examples of org.apache.axis2.soap.SOAPEnvelope.serialize()


                    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

      }
      // TODO do we need these
      OMNode nextSibling = this.getNextSibling();
      if (nextSibling != null) {
        // serilize next sibling
        nextSibling.serialize(omOutput);
      } else {
        // TODO : See whether following part is really needed
        if (parent == null) {
          return;
        } else if (parent.isComplete()) {
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.