2 Replies Latest reply: Feb 3, 2013 11:10 PM by 983057 RSS

    calling Apex restful service in android

    983057
      Hi frnds i have created apex restful service, now i want to access it in android...
      So any one can help me how to call restful services using ksoap2.jar
        • 1. Re: calling Apex restful service in android
          983057
          I got solution using HttpClient, but i can acces only "GET" method of restful services
          But how to access Restfukl service using "POST" method

          here is my code that i use to access rest service using "GET"

          String url = "http://198.16.11.12:2000/apex/jigar/mr/employees/10";
          HttpClient httpclient = new DefaultHttpClient();
          HttpGet hg = new HttpGet(url);
          HttpResponse response = httpclient.execute(hg);
          str = inputStreamToString(response.getEntity().getContent());


          Now insted of GET when i use POST to access service it returns null, what can be my URl in case of post?
          • 2. Re: calling Apex restful service in android
            983057
            The problem is solved by Http Post and pl/sql source in rest service