I've used the Spring Web Service client instead, where the class WebServiceTemplate does all the work. here's a basic test method using basic auth on a secured service. you'll probably want to check what comes back more thoroughly, I was just testing the security on it.
public void testGetAllUsers() throws Exception { WebServiceTemplate template = new WebServiceTemplate(); CommonsHttpMessageSender sender = new CommonsHttpMessageSender(); HttpClient client = sender.getHttpClient(); client.getParams().setAuthenticationPreemptive(true); Credentials defaultCreds = new UsernamePasswordCredentials("admin", "admin"); client.getState().setCredentials(new AuthScope("localhost", 8080, AuthScope.ANY_REALM), defaultCreds); template.setMessageSender(sender); String uri = "http://localhost:7070/services/UserService"; Source source = new StreamSource(new StringReader("<getUserByUsername><in0>admin</in0></getUserByUsername>")); Result result = new StreamResult(System.out); template.sendSourceAndReceiveToResult(uri, source, result); } Flavio Froes wrote: > > What is the recomended web service client library for appfuse? Does > anybody > have examples on how to implement a web service clients in appfuse? > > Kind regards, > > Flávio Oliva > > -- View this message in context: http://www.nabble.com/web-service-client.-tp15896762s2369p17730463.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]