View Single Post
Old 08-14-2008, 02:34 AM   #6
goulamass
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Default

First for the ksoap you just need the core and not the full version wich generate error when it's preverified.

And for the sample no problem

You have to build your object using the soapObject structure and send them with the enveloppe.
Code:
SoapObject request = new SoapObject(null, null);
request.addProperty(namespace, "PIN", DeviceInfoHelper.PIN);
request.addProperty(namespace, "ServiceId", String.valueOf(serviceId));
request.addProperty(namespace, "Text", text);
request.addProperty(namespace, "Details", new Boolean(details));

SoapObject bodySoap = new SoapObject(MethodNamespace, MethodName);
bodySoap.addProperty("request", request)

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);

envelope.bodyOut = bodySoap;


ht = new HttpTransport(url);
ht.call(MethodAction, envelope);
result = (SoapObject) envelope.getResponse();
Offline   Reply With Quote