Code:
@Override
public YourServiceAsync getServiceAsync() {
System.out.println("création of YourService.class");
//return new YourService();
YourServiceAsync ysa = (YourServiceAsync)GWT.create(YourService.class);
AsyncCallback<String> callback = new AsyncCallback<String>() {
public void onFailure(Throwable caught) {
Window.alert(caught.toString());
}
public void onSuccess(String result) {
}
};
ysa.setUserName("test", callback);
//ysa.password="test";
//ysa.uri="http://localhost:6060/test-api/View/1";
return ysa;
}
Leave a comment: