Android : how to pass a integer value to service using KSOAP in android
<p>Not able to pass an integer value to the service request.The value that reaches service request becomes null
Here is my code</p>

<p>private static final String METHOD_NAME ="GetPrivileges";<br>
private static final String NAMESPACE = "http://AuthorizationManagement.ServiceContracts/2007/01/";<br>
private static final String URL ="http://192.168.5.219/NTLS_Authorization/AuthorisationManager.asmx";<br>
final String SOAP_ACTION ="http://AuthorizationManagement.ServiceContracts/2007/01/GetPrivileges";<br>
    public void call() {
        try {
            SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);</p>

<pre><code>        PropertyInfo pi=new PropertyInfo();
        pi.type=PropertyInfo.INTEGER_CLASS;
        pi.setName("RoleID");
        pi.setValue(3);
        pi.setNamespace(NAMESPACE);
        request.addProperty(pi);

        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet = true;
        envelope.setOutputSoapObject(request);


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

        Object result = envelope.getResponse();

        String resultData = result.toString();
</code></pre>
