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-tp3069731p3085134.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2362380

Reply via email to