Package org.apache.axis2.soap.impl.llom.builder

Examples of org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder


            msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);

            AxisEngine engine = new AxisEngine(configurationContext);
            try {
                XMLStreamReader xmlreader = XMLInputFactory.newInstance().createXMLStreamReader(in);
                StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader);
                msgContext.setEnvelope((SOAPEnvelope) builder.getDocumentElement());
            } catch (Exception e) {
                throw new AxisFault(e.getMessage(), e);
            }
            engine.receive(msgContext);
View Full Code Here


    }

    OMChildrenQNameIterator omChildrenQNameIterator;

    protected void setUp() throws Exception {
        stAXSOAPModelBuilder = new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml"))));
        envelope = stAXSOAPModelBuilder.getSOAPEnvelope();
    }
View Full Code Here

        } catch (XMLStreamException e) {
            e.printStackTrace();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return new StAXSOAPModelBuilder(parser);
    }
View Full Code Here

      if (envelope == null) {
                Reader reader = new InputStreamReader(in);
                XMLStreamReader xmlreader = XMLInputFactory.newInstance()
                        .createXMLStreamReader(reader);
        builder = new StAXSOAPModelBuilder(xmlreader);
        envelope = (SOAPEnvelope) builder.getDocumentElement();
      }

      msgContext.setEnvelope(envelope);
      AxisEngine engine = new AxisEngine(configurationContext);
View Full Code Here

       * Creates the MTOM specific MTOMStAXSOAPModelBuilder
       */
      builder = new MTOMStAXSOAPModelBuilder(reader, mimeHelper);
    } else if (mimeHelper.getAttachmentSpecType().equals(
        MIMEHelper.SWA_TYPE)) {
      builder = new StAXSOAPModelBuilder(reader);
    }
    return builder;
  }
View Full Code Here

    protected void setUp() throws Exception {
        File file = getTestResourceFile("soap/sample1.xml");
        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(file));
        fac = OMAbstractFactory.getSOAP11Factory();
        OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser);
        envelope = (SOAPEnvelope) builder.getDocumentElement();
    }
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
    }

    public void testCompare() throws Exception {
        StAXSOAPModelBuilder omBuilder = getOMBuilder("");
        XMLComparator xmlComparator = new XMLComparator();
        assertTrue(xmlComparator.compare(omBuilder.getDocumentElement(), omBuilder.getDocumentElement()));


    }
View Full Code Here

    protected void setUp() throws Exception {
        XMLStreamReader xmlStreamReader = XMLInputFactory.newInstance().
                        createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml")));
        SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
        builder = new StAXSOAPModelBuilder(xmlStreamReader);
        envelope = (SOAPEnvelope) builder.getDocumentElement();
        tempFile = File.createTempFile("temp", "xml");
        omOutput = new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(new FileOutputStream(tempFile)));
        //        writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
View Full Code Here

            String message = mimeMessage.getContent().toString();
            System.out.println("message["+message+"]");
            ByteArrayInputStream bais =
                new ByteArrayInputStream(message.getBytes());
            XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(bais);
            StAXBuilder builder = new StAXSOAPModelBuilder(reader);
            msgContext.setEnvelope((SOAPEnvelope) builder.getDocumentElement());

            // invoke the Axis engine
            engine.receive(msgContext);
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

    public SOAPEnvelope createSOAPEnvelope(InputStream in) throws AxisFault {
        try {
            XMLStreamReader xmlreader =
                XMLInputFactory.newInstance().createXMLStreamReader(in);
            StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader);
            return (SOAPEnvelope) builder.getDocumentElement();
        } catch (Exception e) {
            throw new AxisFault(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder

Copyright © 2018 www.massapicom. 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.