Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Why first time of calling a Server-side Service returns nothing?

$
0
0
Hi,

I extend the default greeting service to encrypt a string at server-side. I give a text and I want to have a hash back.

I call the service like this

Code:

greetingService.encrpytPWD(pwd, new AsyncCallback<String>() {
  @Override
  public void onFailure(Throwable caught) {       
    }

  @Override
  public void onSuccess(String result) {
        calcPWD = result;                                               
                                        }                                       
});

But very strange, the first I got an empty string, if I call the service a second time then I got the right hashtext back.

Does anyone have an advice?

Thy you in advance.

Viewing all articles
Browse latest Browse all 4756

Trending Articles