I am calling soap Web service in android but response is coming only anyType{}. But response data is not coming. it is only giving that much response how to get response data also.
private static String SOAP_ACTION = "http://tempuri.org/IService1/FindEmployee";
private static String NAMESPACE = "http://tempuri.org/";
private static String METHOD_NAME = "FindEmployee";
private static String URL = "http://192.168.1.9/Employee/Service1.svc?wsdl";
private TextView tv;
StringBuilder sb;
private XmlSerializer writer;
private TextView lblResult1;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
lblResult1 = (TextView) findViewById(R.id.textView1);
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addAttribute("Empid", "R001");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet=true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try {
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;
lblResult1.setText(resultsRequestSOAP.toString());
} catch (Exception e)
{
System.out.println("Error"+e);
}
}