using ws2007httpbinding security in android ksoap2

231 Views Asked by At

i've webservice as follows

<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>

i'm provided with an username,password and a X509 certificate..i'm having trouble with configuring the soap envelope.. what information to provide and what not..what the format of the envelope should be?

1

There are 1 best solutions below

2
On

Don't use ws2007HttpBinding - it's unfeasibly hard to consume it in Java/Android. Better expose additional endpoint for the same service, using basicHttpBinding.

You can try the wsdl2ksoap project, but it's unlikely it will be able to generate correct classes ofr this type of binding.