Hey please help me.I am facing problem in my KSoap2 code in android.
This is my code
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tx_first=(TextView)findViewById(R.id.tx_bt);
tx_second=(TextView)findViewById(R.id.tx_gh);
SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
soapEnvelope.dotNet = true;
soapEnvelope.setOutputSoapObject(Request);
AndroidHttpTransport aht = new AndroidHttpTransport(URL);
try
{
try {
aht.call(SOAP_ACTION, soapEnvelope);
} catch (Exception e) {
tx_second.setText("error");
e.printStackTrace();
}
try{
SoapObject body = (SoapObject)soapEnvelope.bodyIn;
Vector virtualServerList = (Vector) body.getProperty(0);
}catch(Exception e)
{
tx_second.setText("ds"+e.getMessage());
}
{
}
}
catch(Exception e)
{
tx_first.setText("Quote Results: " +e);
e.printStackTrace();
}
}
}
Here i have not required any parameter for pass.When i run in emulator then it get error dsorg.ksoap2.SoapfFault
Please help me where i am wrong.Here the info is show as a list.