qq_33145831
那些花儿2017
2017-05-20 13:09

Android使用ksoap2调用本地webservice一直出现问题

  • ksoap2
  • android
  • webservice

D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/System.err: java.io.IOException: HTTP request failed, HTTP status: 405
W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:195)
W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:116)
W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:111)
W/System.err: at com.mycompany.myfirstapp.webserviceclient.Visitor4Activity.add(Visitor4Activity.java:113)
W/System.err: at com.mycompany.myfirstapp.webserviceclient.Visitor4Activity$QueryAddressTask.doInBackground(Visitor4Activity.java:135)
W/System.err: at com.mycompany.myfirstapp.webserviceclient.Visitor4Activity$QueryAddressTask.doInBackground(Visitor4Activity.java:129)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:304)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err: at java.lang.Thread.run(Thread.java:761)

访问网络权限已加,模拟器可以访问网络。

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换