Actually the status code is always 0 , digging for more. If you have any solution please let me know
On Nov 4, 9:25 am, Raghunath <[email protected]> wrote: > Hi > > I'm trying to post a text message to cross-domain using > RequestBuilder. Problem is the remote server is getting the request. > But the GWT client is getting empty string iin the response. I tried > in several ways but no use. > > Please suggest me. > > for (RESTClientListeners restClient : listeners) { > restClient.onLoadingStart(); > } > > callURLPOST(request.toString(), completeUrl,new > HTTPClientListener() > { > > @Override > public void onSucess(String data) { > try { > JSONArray resp=new JSONArray(data); > if(resp.getInt(0)==1){ > for (RESTClientListeners > restClient : listeners) { > > restClient.onSucess(resp.getJSONObject(1)); > } > }else if(resp.getInt(0)!=1){ > for (RESTClientListeners > restClient : listeners) { > > restClient.onFail(resp.get(1)); > } > } > > } catch (JSONException e) { > > AppLogManager.get().logError(RESTClient.class,e); > } > > } > > -raghu -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
