How to access sqlite database from webserver and insert record using web services in codenameone
<p>I am developing one application in CN1 that has to do with database, I want the user to enter a pin generated for them. once the user entered the valid pin, the apps will be activated for usage. The problem am having now is how to access the database using webservices. I have followed the webservices wizard tutorial, but all my effort was futile.
This is my snippet code.</p>

<pre><code>  private static final String DESTINATION_URL = "http://localhost:8085/CBT_PINS/folder/PINS.db";    

 ConnectionRequest req = new ConnectionRequest(DESTINATION_URL) {
 @Override
 protected void handleException(Exception err) {
 Log.e(err);
 Display.getInstance().callSerially(() -&gt; {
 ToastBar.showErrorMessage("An error occured while connecting to the server: " + err);
  });
  }

@Override
protected void handleErrorResponseCode(int code, String message) {
Display.getInstance().callSerially(() -&gt; {
ToastBar.showErrorMessage("Error code from the server: " + code + "\n" + message);
});
}

};
req.setPost(false);
NetworkManager.getInstance().addToQueueAndWait(req);  
</code></pre>

<p>Please help me out. I dont know what to do next. Thanks  </p>