WSDL + KSOAP2 CODE IN ANDROID

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

WSDL + KSOAP2 CODE IN ANDROID

Postby android.rishabh » Wed Jul 27, 2011 6:26 am

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.
android.rishabh
Freshman
Freshman
 
Posts: 5
Joined: Tue Jul 26, 2011 8:17 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 7 guests