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 like enabling "Allow Access across domains", renamin namespace also but unable to find the can any one Know how to rectify please let me Know Here is my code..
private static final String SOAP_ACTION = "http:// www.agilelearning.com/GetProvincelist1"; private static final String METHOD_NAME = "GetProvincelist1 "; private static final String NAMESPACE = "http:// www.agilelearning.com" ; private static final String URL = "http://192.168.1.24/Service.asmx"; ArrayList<String> districtsdistricts=new ArrayList<String>(); SoapObject request1 = new SoapObject(NAMESPACE, METHOD_NAME1); request1.addProperty("Provincename","East Province"); SoapSerializationEnvelope envelope1 = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope1.dotNet = true; envelope1.setOutputSoapObject(request1); HttpTransportSE at = new HttpTransportSE(URL); at.debug = true; at.setXmlVersionTag("<?xml version=\"1.0\" encoding= \"UTF-8\"?>"); at.call(SOAP_ACTION1, envelope1); SoapObject rs = (SoapObject)envelope1.getResponse(); int count=rs.getPropertyCount(); for(int i=0;i<count;i++) { districts.add(rs.getProperty(i).toString()); } ArrayAdapter<String> aa; aa = new ArrayAdapter<String>(home1.this, android.R.layout.simple_spinner_item, districts); aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sd.setAdapter(aa); } catch(Exception ex) { MessageBox("No Districts found"); } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en