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
2
votes
0 answers

How do I navigate within a webview with the help of a locally imported js file?

I am working on a webview that calls a url from webserver, such that url = abc.com/thispage which is a http: link Now inside that this page, i am navigating futher to another page ,say "mainpage", i would like to import a local js file which I have…
2
votes
1 answer

How to call Api Url in android?

I am new in android development. I want to call Api Url in android Studio. I am not able to call api url in android please help
rajeev
  • 122
  • 1
  • 1
  • 9
2
votes
0 answers

Restrict Web Service Calling after entering into previous fragment where service is called already

How to restrict multiple web service calls in fragments in the following scenario shown below I have learned about Fragment life Cycle but don't know exactly where to use life cycle methods for my problem. Please help me on this.thanks in advance
Hari krishna
  • 1,142
  • 1
  • 12
  • 29
2
votes
0 answers

how to fix SoapFault - faultcode: 'soap:Server' faultstring: 'Server was unable to process request

I sync data from webservice using SOAP(ksoap2) lib.Early days my application is everything ok. Today, when I run my program today, I get the following error at this line SoapPrimitive response = (SoapPrimitive) envelope.getResponse(); private…
dragullar
  • 345
  • 3
  • 5
  • 19
2
votes
2 answers

What was used before WebResourceResponse's setstatuscodeandReasonPhrase method?

I was wondering what used to be used before setstatuscodeandReasonPhrase method was added for android api level 21 (lollipop), I am using an older version (kitkat) and planning to use this method or alternative and wondering how I can go about it?…
2
votes
0 answers

Android router disconnects webservice call not throw an exception or disconnect the process

I am using webservice call in my application. Using broadcast receiver checking the internet connection (android.net.ConnectivityManager.CONNECTIVITY_ACTION) and request the webservice call. The android.net.ConnectivityManager.CONNECTIVITY_ACTION…
2
votes
3 answers

HttpURLConnection : What is the right way to read data from a WebService, character by character or line by line?

I know this has been asked before, but since I haven't been able to find an answer with a definitive conclusion or at least one that shows the pros and cons of the possibles approaches, I have to ask : When it comes to read data from the Internet, a…
eddy
  • 4,373
  • 16
  • 60
  • 94
2
votes
1 answer

org.apache.http.NoHttpResponseException: The target server failed to respond in android

Recently move all data to new server, after am got this exception org.apache.http.NoHttpResponseException: The target server failed to respond in all JSON links but its working perfectly in browsers.In old server its was worked well.am not able to…
Yugesh
  • 4,030
  • 9
  • 57
  • 97
2
votes
3 answers

Recommended way / order to read data from a webservice, parse that data and insert it in a SQLite db

I'm one to start mentioning that I'm totally new to Android, I've just finished reading a quick, introductory book and now I have to implement my very first app. This app is going to be use to take orders. Among all the data I'm going to store in a…
Axel
  • 1,674
  • 4
  • 26
  • 38
1
vote
0 answers

Pushing messages from an Oracle database to a client

I am building a new Android App which has an Oracle Database as its Datasource. I already have an Soap Webservice running on an weblogic server which can accept request from the client and send back the responses generated in the database. My…
student
  • 21
  • 3
1
vote
1 answer

How to call asp.net webservice using retrofit?

I have asp.net webservice call in android but it gives error baseUrl must end in /. This is my url private static String url = "http://192.138.0.100/Client.asmx?op=Client_Login"; //create Interface public interface ApiInterface { …
1
vote
2 answers

why i am getting SoketTimeOutException in sleep mode of device?

I am calling a web service HTTPS connection from Service class which is called by alarm manager in every 1 min.When i start service it is working fine i am getting response from web service until device gets in sleep mode.when device's screen gets…
shyam002
  • 237
  • 1
  • 5
  • 19
1
vote
1 answer

How to resolve the Unterminated array Exception in android

W/System.err: org.json.JSONException: Unterminated array at character 12 of [ClassPojo [feed [{"id":0,"businessId":0,"businessName":"Farbinder","businessLogoUrl":"https:\/\/d1e6yi6s3cx2ur.cloudfront.net\/gallery\/0\/fb_icon.png","text":"Some…
user1918566
  • 221
  • 1
  • 5
  • 18
1
vote
1 answer

Webservice, unable to set cast in program

Unable to set cast from url in program. MainActivity to MoviesActivity and further my program goes as shown below. Can you tell me how to set images also. I am still learning. Screenshot public class Movies extends AppCompatActivity { private…
R.H
  • 318
  • 2
  • 12
1
vote
2 answers

Reset Android Activity

I have an activity in android application and from that I am calling a method of an AsyncTask class which is calling a webservice. I want to reset/reload my activity on the basis of the result i get from that method. How can I reset my activity from…
Mohammad Rashid
  • 138
  • 3
  • 16
1 2
3
14 15