i tried the example from http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data to get request and response from a wsdl service. its working fine when i tried in a proxyless. but when i work behind proxy,i get "The operation timed out:request time failed: java.net.SocketException" is there any way to set proxy to SoapObject or Soap Envelop?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Replace with this..
Hi Everyone , The latest version of KSOAP2.6.5 [Tested it and verified it] has fix for the proxy authentication issue . The
HTTPTransportSE
constructor now acceptsjava.net.Proxy
instance as a parameter along with URL. The method will be likeHttpTransportSE httpTransport=new HttpTransportSE(proxy,URL);
If your proxy is configured and if it requires authentication then use
Authenticator
class to setup your proxy credentials and have success. HTH , if not write me backKsoap does not work behind a proxy. inorder to make that working.. download the HttpTransportSE.java and ServiceConnectionSE.java from sourceforge.
Create a package with HttpTransportSE and ServiceConnectionSE.
In ServiceConnectionSE constructor:
now wherever we call HttpTransportSE.call()method make sure that it points to ur own package which has this two files.
As far as I know you have to set up the proxy in android operating system settings themselves and it will work fine.