I'm calling php webservice through http post method. I'm sending the request in the proper way, but when responce comes, it is not giving me response.
That's what I have:
org.apache.http.message.BasicHttpResponse@4057f498
Help me, please.
I'm calling php webservice through http post method. I'm sending the request in the proper way, but when responce comes, it is not giving me response.
That's what I have:
org.apache.http.message.BasicHttpResponse@4057f498
Help me, please.
Perhaps you want to do something similar to the following.
Let's say your
org.apache.http.message.BasicHttpResponse@4057fb48
is calledresponse
.To retrieve the data from the HttpResponse, you need:
You handle this
InputStream
depending on what kind of data it contains.If you need the
String
value of the response entity:HI Mehul,
Please pass your httpConnection object's getInputStream in this function it will return the response in String.
Example
Now Pass this inStream into function it will return the Message of your response.
}
This is the normal responce. What you need to get the information is to call a method:
Read more here.