Questions tagged [android-webservice]

Web service is a system that enables applications to communicate with an API. Web service helps to expose business logic through an API interface where different systems communicate over network.

217 questions
0
votes
1 answer

Where to store API access token?

I am using an API (https://developers.gfycat.com/api/) that uses the typical OAuth flow to grant developers access to API requests. I am able to successfully simulate the entire process of getting an access token and using it in an API request by…
Isaac Perez
  • 570
  • 2
  • 15
  • 31
0
votes
0 answers

Deserializing json data from webservice

globally, I have the following object: public class Geraet { public long Geraetenr { get; set; } public int Typ { get; set; } public string Platz { get; set; } public string Bezeichnung { get; set; } public int Tr { get; set; } …
0
votes
0 answers

How can I access https webservice with an Android application?

I am not able to work with HTTPS URL in Android webservice. It's working with HTTP but not with HTTPS. I don't have any idea how to use HTTPS. Do I have to add any extra code?
0
votes
1 answer

KSOAP Adding attribute to the xml tag

How to add an attribute to the XML tag using Ksoap in android? XML tag to be constructed are given below 20 find the android code given…
S Mugunthan kumar
  • 177
  • 1
  • 2
  • 11
0
votes
1 answer

Soap request creation using ksoap2 for multilevel tags

I want to build a soap request using KSOAP2 for android application. how to create a request for the given below soap request.
S Mugunthan kumar
  • 177
  • 1
  • 2
  • 11
0
votes
1 answer

HttpConnection Error 500

Now I want to add some data to the server using Http Request when i add this data with hardCoded value it works will and give me a Response code 200 but when it come from the user it comes with 500 response code and error The code of http request…
0
votes
0 answers

Register in Android and mysql database

I want to register users in android application using web service in mysql database. I am using below code in php side:
0
votes
1 answer

Loading multiple images from url to android application using Picasso

I have implemented an android application aiming at the visualization of the images received through web services. I am parsing the JSON data received from the web service in order to receive the url from where I will load the image. Then I want to…
MTs
  • 199
  • 2
  • 19
0
votes
1 answer

android: data exchange between web service and android

I'm a begginer and I'm trying to exchange data between ASP.Net web service and my android app. What is the best way (not the hardest one if possible) to do that? JSON? SOAP? I don't know... Thanks in advance!
Juan
  • 107
  • 1
  • 1
  • 9
0
votes
0 answers

Sending String to server using OkHttpClient POST Method in Service Android

I am sending Json String to my webapi php file from Android Using OkHttpClient from background Service. The Code of Web Service Is if (isset($_POST)) { $data = json_decode(file_get_contents('php://input'), true); } The Android Code is…
0
votes
1 answer

HttpUrlConnection App Crashes on ICS

The method sendMessage(View view) runs on clicking a button. The method is being called successfully because t.setText("Checking..."); changes the text to Checking... as expected. The issue is that the app force closes when s=…
Mathews Mathai
  • 1,707
  • 13
  • 31
0
votes
0 answers

My android phone does not connect to my apache local server

I'm developing an android app that connect with a restful web service which is on my tomcat local server. The app works well on the emulator, however, it doesn't work on my real mobile. I use the IP from ipconfig, and both my laptop and my phone…
ROM
  • 153
  • 3
  • 16
0
votes
1 answer

How to persist authentication to web service in all fragments on Android?

I'm using a Odoo service. And I have 3 fragments in my application. In each fragment I need log to service: OdooClient odoo; odoo = new OdooClient.Builder(getActivity()).setHost(host).build(); odoo.setOnConnectListener(new OdooConnectListener() { …
Augusto
  • 3,825
  • 9
  • 45
  • 93
0
votes
1 answer

How do i send post request to a webservice?

I follow this post http://hmkcode.com/android-send-json-data-to-server/ and some functions is depreciated. I like to understand how I send an information to a web service. I try to update the post but i got some mistake.. I know my code has some…
0
votes
2 answers

How to test POST web service call that send data in Custom Object?

I am using Retrofit for REST API calls. I want to check some APIs in Postman but some Web service APIs send input data in Custom Object form.Unable to find how to test it in Postman or online . Example : @POST("/InsertBusinessInfo") Call
Harsh Bhavsar
  • 1,561
  • 4
  • 21
  • 39