Sending Data Request to the Backend

Send a data request to the backend through the server, either synchronously or asynchronously.

Initialize the SDMBaseRequest object to send the data to the server such as backend URL, request type, and ISDMNetListener.

/*Initialize the SDMBaseRequest and set the following*/
	         SDMBaseRequest getrequest = new SDMBaseRequest();
                              
/*set the endpoint URL. This can be obtained by AppSettings.getApplicationEndPoint()*/
         	getrequest.setRequestUrl(as.getApplicationEndPoint());
                             
/*set whether GET/PUT/POST/DELETE*/
              getrequest.setRequestMethod(SDMBaseRequest.REQUEST_METHOD_GET);  
                            
/*All request-response operations are Asynchronous. Set the listener to handle the response.This class has to implement ISDMNetListener to get the callback.*/
              getrequest.setListener(this);

Send the request using already defined SDMRequestManager in Registering a User.

/*Perform the request using the above defined SDMRequestManager.*/
            reqMan.makeRequest(getrequest);