Android ksoap2 通过 https [英] Android ksoap2 via https

查看:24
本文介绍了Android ksoap2 通过 https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人能够通过 https 使用 ksoap2 android 连接到肥皂服务器?

has any one been able to connect to a soap server using ksoap2 android via https?

我不断收到主机名 <###> 未验证"的错误

I keep getting the error that "Hostname <###>was not verified"

我在做

AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL);
androidHttpTransport.call(SOAP_ACTION, envelope);

显然回顾了其他不适用于 android 的 ksoap,您向我们提出了通过 https 进行连接的不同调用,但我找不到在 android 版本中执行此操作的方法.

apparently looking back at other ksoap which isn't for android your ment to us a different call to connect via https, but i can't find a way to do it in the android version.

有人找到方法或知道要使用的调用吗?

Anyone found a way about or know the call im ment to use?

谢谢你的帮助

推荐答案

android ksoap2 2.5.2 支持 https

android ksoap2 2.5.2 is out which supports https

http://code.google.com/p/ksoap2-android/

问题是我不太确定如何使用它

the problem is i dont quite sure how to use it

HttpsTransportSE aht = new HttpsTransportSE(host, port, file, timeout)

我应该为文件"参数输入什么?有人知道吗?

what shoud i enter for "file" parameter? anybody have any idea?

btw AndroidHttpTransport 在最新版本的 ksoap2 中已弃用

btw AndroidHttpTransport is deprecated in the latest version of ksoap2

这篇关于Android ksoap2 通过 https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆