19202122232425262728
Endpoint.publish("http://localhost:8191/Echo", new EchoImpl()); } public void testService() throws Exception { EchoService service = new EchoService(); EchoPortType echo = service.getEchoHttpPort(); assertEquals("echo", echo.echo("echo")); }
29303132333435363738394041
} public void testPayloadSourceDispatch() throws Exception { EchoService service = new EchoService(); Dispatch<Source> d = service.createDispatch(new QName("urn:echo:wrapped", "EchoHttpPort"), Source.class, Service.Mode.PAYLOAD); assertNotNull(d); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();