Package org.objectweb.hello_world_soap_http

Examples of org.objectweb.hello_world_soap_http.DocLitBareImpl


        assertEquals("", os.toString());

    }

    public void testDocLitBareDispatch() throws Exception {
        DocLitBareImpl dc = new DocLitBareImpl();
        TestEndpointImpl testEndpoint = new TestEndpointImpl(dc, null);
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);
        TestServerTransport serverTransport = new TestServerTransport(bus, epr);
        TestInputStreamContext inCtx = new TestInputStreamContext(null);
       
        InputStream is = getClass().getResourceAsStream("resources/sayHiDocLiteralBareReq.xml");
        inCtx.setInputStream(is);
        serverBinding.testDispatch(inCtx, serverTransport);
        is.close();
       
        assertEquals(1, dc.getSayHiInvocationCount());
        assertNotNull(serverTransport.getOutputStreamContext());
        assertFalse("Should not have a SOAP Fault", serverTransport.getOutputStreamContext().isFault());
    }
View Full Code Here


        assertEquals(1, dc.getSayHiInvocationCount());
        assertNotNull(serverTransport.getOutputStreamContext());
        assertFalse("Should not have a SOAP Fault", serverTransport.getOutputStreamContext().isFault());
    }
    public void testDocLitBareNoParamDispatch() throws Exception {
        DocLitBareImpl dc = new DocLitBareImpl();
        TestEndpointImpl testEndpoint = new TestEndpointImpl(dc, null);
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);
        TestServerTransport serverTransport = new TestServerTransport(bus, epr);
        TestInputStreamContext inCtx = new TestInputStreamContext(null);
       
        InputStream is = getClass().getResourceAsStream("resources/EmptyBody.xml");
        inCtx.setInputStream(is);
        serverBinding.testDispatch(inCtx, serverTransport);
        is.close();
       
        assertEquals(1, dc.getBareNoParamCount());
        assertNotNull(serverTransport.getOutputStreamContext());
        assertFalse("Should not have a SOAP Fault", serverTransport.getOutputStreamContext().isFault());
    }  
View Full Code Here

TOP

Related Classes of org.objectweb.hello_world_soap_http.DocLitBareImpl

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.