在android ksoap2中使用ws2007httpbinding安全性

时间:2013-12-03 10:44:32

标签: android android-ksoap2

我的网络服务如下

<ws2007HttpBinding>
            <binding name="ws2007HttpBinding" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                <security mode="Message">
                    <transport clientCredentialType="Certificate" proxyCredentialType="None" realm="" />
                    <message clientCredentialType="UserName" negotiateServiceCredential="true" algorithmSuite="Default" />
                </security>
            </binding>
        </ws2007HttpBinding>

我提供了用户名,密码和X509证书..我在配置肥皂信封时遇到问题..提供什么信息,什么不是......信封的格式应该是什么?

1 个答案:

答案 0 :(得分:0)

不要使用ws2007HttpBinding - 在Java / Android中使用它是不可行的。使用basicHttpBinding更好地公开同一服务的其他端点。

您可以尝试wsdl2ksoap项目,但它不太可能生成此类绑定的正确类别。