Search code examples
phpandroidweb-servicessoapandroid-ksoap2

How to trace/debug this error SOAP [message:protected] => looks like we got no XML document


The solution doesn't work for me from other links. I am consuming web services from android using Ksoap2.

Here is my problem I am getting this error.

Here are my server details

HTTP/1.1 500 Internal Server Error
Server: nginx
Content-Type: text/html
Content-Length: 3
Accept-Ranges: bytes
Date: Wed, 25 Nov 2015 16:01:16 GMT
X-Varnish: 1781493534
Age: 0
Via: 1.1 varnish
Connection: keep-alive
  1. From PHP client

    [message:protected] => looks like we got no XML document
    
  2. From android application using Ksoap2

    org.xmlpull.v1.XmlPullParserException: expected: '>' actual: '' (position:END_TAG </SOAP-ENV:Envelop>@8:19 in java.io.InputStreamReader@41f06f28)
    

My code and web service work fine for all the server. Except the one from Iran. Is there is any encoding issue?


Solution

  • Looks like your webservice is busted and the server (nginx) is throwing an error. All the other errors are just a consequence. You need to fix the webservice by figuring out what is going wrong there. Check the nginx logs and details about whatever is implementing the webservice.