Retrieving the Response from the Back-end

Based on the data request sent to the back-end, you need to retrieve the data as a response to the device.

The following code illustrates how to retrieve the response from the back-end.
public void onSuccess(ISDMRequest aRequest, IHttpResponse aResponse)
{
String serviceDocument = new String(aResponse.getContent());
int resCode = aResponse.getStatusCode();
UiApplication.getUiApplication().invokeLater(new Runnable()
{
public void run()
{
Dialog.inform("success"+ resCode);
Dialog.inform("Content"+ serviceDocument);
}
});
}