Package org.objectweb.hello_world_soap_http

Examples of org.objectweb.hello_world_soap_http.NotAnnotatedGreeterImpl


    }
    public void testDocLitDispatch() throws Exception {
        QName wrapName = new QName("http://objectweb.org/hello_world_soap_http/types", "greetMe");
        QName wrapName2 = new QName("http://objectweb.org/hello_world_soap_http/types", "sayHi");
       
        TestEndpointImpl testEndpoint = new TestEndpointImpl(new NotAnnotatedGreeterImpl(),
                                                             new QName[]{wrapName, wrapName2});
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);

        TestServerTransport serverTransport = new TestServerTransport(bus, epr);
       
View Full Code Here


        assertEquals("sayHiResponse", xmlNode.getLocalName());
    }
   
    public void testDispatchOneway() throws Exception {
        QName wrapName = new QName("http://objectweb.org/hello_world_soap_http/types", "greetMeOneWay");
        TestEndpointImpl testEndpoint = new TestEndpointImpl(new NotAnnotatedGreeterImpl(),
                                                             new QName[]{wrapName});
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);       
        TestServerTransport serverTransport = new TestServerTransport(bus, epr);

        QName elName = new QName("http://objectweb.org/hello_world_soap_http/types", "requestType");
View Full Code Here

        assertNotNull(serverTransport.getOutputStreamContext());
        assertFalse("Should not have a SOAP Fault", serverTransport.getOutputStreamContext().isFault());
    }  
    public void testUserFaultDispatch() throws Exception {
        QName qn = new QName("http://objectweb.org/hello_world_soap_http/types", "testDocLitFault");
        TestEndpointImpl testEndpoint = new TestEndpointImpl(new NotAnnotatedGreeterImpl(),
                                                             new QName[]{qn});
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);       
        TestServerTransport serverTransport = new TestServerTransport(bus, epr);
        InputStream is =  getClass().getResourceAsStream("resources/TestDocLitFaultReq.xml");
       
View Full Code Here

        ByteArrayInputStream bais = new ByteArrayInputStream(osc.getOutputStreamBytes());
        checkUserFaultMessage(bais, NoSuchCodeLitFault.class, "TestException");
    }
   
    public void testSystemFaultDispatch() throws Exception {
        TestEndpointImpl testEndpoint = new TestEndpointImpl(new NotAnnotatedGreeterImpl(),
                                                             new QName[]{});
        TestServerBinding serverBinding = new TestServerBinding(bus, epr, testEndpoint, testEndpoint);       
        TestServerTransport serverTransport = new TestServerTransport(bus, epr);
        InputStream is =  getClass().getResourceAsStream("resources/BadSoapMessage.xml");
       
View Full Code Here

     
        super.tearDown();
    }

    public void testCreateWithNotAnnotatedImplementor() throws Exception {
        Object implementor = new NotAnnotatedGreeterImpl();
        Endpoint ep = Endpoint.create(SOAPBinding.SOAP11HTTP_BINDING, implementor);    
        assertNotNull(ep);
    }
View Full Code Here

TOP

Related Classes of org.objectweb.hello_world_soap_http.NotAnnotatedGreeterImpl

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.