Search code examples
blackberryksoappropertyinfo

Ksoap Blackberry PropertyInfo.setValue


so i im using the PropertyInfo to pass complex objects in my soap request, and its working fine on android, sample :

        PropertyInfo pi = new PropertyInfo();
        pi.name = "envelope";
        pi.setName("envelope");
        pi.setValue(envelope);
        pi.setType(envelope.getClass().toString());

//envelope is a KvmSerializable class with namespace mappings.

now im trying to do the same for blackberry, but its not liking the "setName" or "setValue" parameters.

Any ideas?


Solution

  • Try:

    soapObject.addProperty("envelope", envelope);
    

    from SoapObject#addProperty