Hi,
I'm having a problem in calling .net c# web services from android
using ksoap2. The call is executed just fine without parameters, but
when I pass paramters of any type, the web service just recieves a
null value. I tried everything possible but no luck so far. I hope
someone can help,
The client side code is:
public static boolean temp(){
try {
SoapObject request = new SoapObject(NAMESPACE,
METHOD_NAME_TEMP);
PopertyInfo p = new PropertyInfo();
p.type = PropertyInfo.INTEGER_CLASS;
p.setName("num");
p.setValue(5);
p.setNamespace(NAMESPACE);
request.addProperty(p) ;
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
(SoapEnvelope.VER11 );
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC;
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport (URL);
androidHttpTransport.setXmlVersionTag("<?xml version=
\"1.0\" encoding=\"UTF-8\"?>");
androidHttpTransport.call(SOAP_ACTION_TEMP, envelope);
....
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en