when I invoke webservices method working fine without parameters. But with parameters I am getting null in the inside the webservice method.
Here my code and wsdl file
private static final String METHOD_NAME = "getCityList"; private static final String SOAP_ACTION = "http://service.country.com/" + METHOD_NAME; private static final String NAMESPACE = "http://service.country.com"; private static final String URL = "http://192.168.1.11:8080/Services/ws/country";
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try{
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("countryId",5);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL);
androidHttpTransport.call(SOAP_ACTION,envelope);
Object result = envelope.getResponse();
System.out.println("RESULT"+ result.toString());
my xml file below
String
String
0