Package org.tempuri.soapencoding

Examples of org.tempuri.soapencoding.TestSoapElement1


        }
        testSoapElement31(array);
    }

    private void testSoapElement11(Array array) {
        TestSoapElement1 testSoapElement1 = new TestSoapElement1();
        testSoapElement1.setTestSoapElement1(array);

        try {
            OMElement omElement = testSoapElement1.getOMElement(
                    TestSoapElement1.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("OM String ==>" + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(
                    new ByteArrayInputStream(omElementString.getBytes()));
            TestSoapElement1 result = TestSoapElement1.Factory.parse(xmlReader);
            List resultList = result.getTestSoapElement1().getObjectList();
            for (int i = 0; i < array.getObjectList().size(); i++) {
                assertEquals(((_double) resultList.get(i)).get_double(),
                        ((_double) array.getObjectList().get(i)).get_double(),0.001);
            }
        } catch (ADBException e) {
View Full Code Here


            fail();
        }
    }

    private void testSoapElement12(Array array) {
        TestSoapElement1 testSoapElement1 = new TestSoapElement1();
        testSoapElement1.setTestSoapElement1(array);

        try {
            OMElement omElement = testSoapElement1.getOMElement(
                    TestSoapElement1.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("OM String ==>" + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(
                    new ByteArrayInputStream(omElementString.getBytes()));
            TestSoapElement1 result = TestSoapElement1.Factory.parse(xmlReader);
            List resultList = result.getTestSoapElement1().getObjectList();
            for (int i = 0; i < array.getObjectList().size(); i++) {
                assertEquals(((org.apache.axis2.databinding.types.xsd._double) resultList.get(i)).get_double(),
                        ((org.apache.axis2.databinding.types.xsd._double) array.getObjectList().get(i)).get_double(),0.001);
            }
        } catch (ADBException e) {
View Full Code Here

            fail();
        }
    }

    private void testSoapElement31(Array array) {
        TestSoapElement1 testSoapElement1 = new TestSoapElement1();
        testSoapElement1.setTestSoapElement1(array);

        try {
            OMElement omElement = testSoapElement1.getOMElement(
                    TestSoapElement1.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("OM String ==>" + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(
                    new ByteArrayInputStream(omElementString.getBytes()));
            TestSoapElement1 result = TestSoapElement1.Factory.parse(xmlReader);
            List resultList = result.getTestSoapElement1().getObjectList();
            TestComplexType testComplexType = null;
            for (int i = 0; i < resultList.size(); i++) {
                testComplexType = (TestComplexType) resultList.get(i);
                assertEquals(testComplexType.getParam1(),"Param1");
                assertEquals(testComplexType.getParam2(),2);
View Full Code Here

TOP

Related Classes of org.tempuri.soapencoding.TestSoapElement1

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.