[ http://jira.codehaus.org/browse/XFIRE-319?page=comments#action_62132 ]
Dan Diephouse commented on XFIRE-319: ------------------------------------- Try this instead: DemoService service = (DemoService) new XFireProxyFactory().create(serviceModel, "http://localhost:8080/DemoService/services/DemoService"); Client client = ((XFireProxy) Proxy.getInvocationHandler(service)).getClient(); client.addOutHandler(handler); > Handler not invoked on client with XFireProxyFactory > ---------------------------------------------------- > > Key: XFIRE-319 > URL: http://jira.codehaus.org/browse/XFIRE-319 > Project: XFire > Type: Bug > Components: Core > Versions: 1.1-beta-1, 1.0 > Environment: Sun JDK 1.4.2 > Reporter: Giampaolo Tranchida > Assignee: Dan Diephouse > > > My Handler is not invoked, with this code > Service serviceModel = new > ObjectServiceFactory().create(DemoService.class, "DemoService", > "http://demo.tranchida.ch/DemoService", null); > serviceModel.addOutHandler(new WSSEClientHandler()); > > DemoService service = (DemoService) > new XFireProxyFactory().create(serviceModel, > "http://localhost:8080/DemoService/services/DemoService"); > System.out.println(service.echo("hello")); > Looking at XFireProxy in debug, outHandlers list contains only > OutMessageSender > But Using Dynamic client, it is ok, my Handler is normaly invoked > Client client = new Client(new > URL("http://localhost:9999/DemoService/services/DemoService?wsdl")); > > client.setEndpointUri("http://localhost:9999/DemoService/services/DemoService"); > client.addOutHandler(new WSSEClientHandler()); > System.out.println(client.invoke("echo", new Object[] { > "hello" })[0]); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
