Hi,
I've got an example of JsonpRequestBuilder.send() working - but this requires us to provide an overlay type in the callback:
new AsyncCallback<MyOverlayType>() {
public void onSuccess(MyOverlayType result) {
}
}
Is there a way to instead get the raw String result from the remote server, before it gets translated into a JSON object? Something like:
new AsyncCallback<String>() {
public void onSuccess(String result) {
println("Raw response from remote server is: " + result);
}
}
I thought maybe:
JsonpRequestBuilder.requestString();
might do that, but doesn't seem to. In firefox, I get an error when trying that approach:
uncaught exception: java.lang.ClassCastException
null.a();
Thanks