Package org.objectweb.hello_world_soap_http

Examples of org.objectweb.hello_world_soap_http.HWSoapMessageProvider


        OutputStream os = serverTransport.getOutputStreamContext().getOutputStream();
        assertNotNull(os);
    }

    public void testProviderDispatchMessageModeSOAPMessageData() throws Exception {
        HWSoapMessageProvider provider = new HWSoapMessageProvider();
        TestEndpointImpl testEndpoint = new TestEndpointImpl(
                                  provider,
                                  DataBindingCallback.Mode.MESSAGE,
                                  SOAPMessage.class,
                                  new QName[]{
                                      new QName("http://objectweb.org/hello_world_soap_http/types",
                                                "sayHi")
                                  });
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);
        TestServerTransport serverTransport = new TestServerTransport(bus, epr);       
        TestInputStreamContext inCtx = new TestInputStreamContext(null);
       
        InputStream is = getClass().getResourceAsStream("resources/sayHiDocLiteralReq.xml");
        inCtx.setInputStream(is);

        serverBinding.testDispatch(inCtx, serverTransport);

        assertEquals(1, provider.getInvokeCount());
        assertNotNull(serverTransport.getOutputStreamContext());
        assertFalse(serverTransport.getOutputStreamContext().isFault());
        OutputStream os = serverTransport.getOutputStreamContext().getOutputStream();
        assertNotNull(os);
    }
View Full Code Here

TOP

Related Classes of org.objectweb.hello_world_soap_http.HWSoapMessageProvider

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.