Hi Max, No specific idea, this should work. Could you share your configuration details? (Restlet version, JVM, browser, etc.)
Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : mstricker [mailto:[email protected]] Envoyé : mardi 16 juin 2009 10:39 À : [email protected] Objet : Re: Restlet GWT - ChallengeResponse null on server side Any ideas? It is urgent. Could it be because my RESTlet is deployed to a server and the GWT client runs on localhost and there are some security constraints? mstricker wrote: > > Hi, > > I have never worked with GWT or Restlet GWT but now have the need to > consume a simple Restlet service from GWT. > I downloaded the RestletGWTSimpleExample.zip and tried to learn from it. > To autheticate against the service i use this snippet: > > // Send an authenticated request using the Basic authentication > // scheme. > org.restlet.gwt.data.Request request = new > org.restlet.gwt.data.Request( > Method.GET, > "http://myserver:8080/myservice/authenticate"); > ChallengeResponse authentication = new ChallengeResponse( > ChallengeScheme.HTTP_BASIC, "[email protected]", > "098f6bcd4621d373cade4e832627b4f6"); > request.setChallengeResponse(authentication); > new Client(Protocol.HTTP).handle(request, new Callback() { > @Override > public void onEvent(Request request, Response response) { > System.out.println(response.getEntity().getText()); > } > }); > > this results always in a unauthenticated status code because on the > Restlet server > getRequest().getChallengeResponse() is always null. > Is this a known issue or am I doing something wrong? > -- View this message in context: http://n2.nabble.com/Restlet-GWT---ChallengeResponse-null-on-server-side-tp3 069731p3085134.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23623 80 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2362581

