I don't know whats the problem here in your code but i can give you a code
snippet which is slightly different but it works for me...
public boolean userLogin(String userName,String password,Activity
activity){
boolean isLogin = false;
SoapObject soapObject;
SoapObject Request = new SoapObject(NAME_SPACE
,METHOD_NAME_USER_LOGIN);
Request.addProperty("email",
"a...<http://groups.google.com/groups/unlock?_done=/group/android-developers/browse_thread/thread/ab4aaf54445b75a4/4d8aec05499f16f4%3Fshow_docid%3D4d8aec05499f16f4&msg=4d8aec05499f16f4>@ab.com");
Request.addProperty("password", "asdfgh");
SoapSerializationEnvelope soapEnvelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
soapEnvelope.dotNet=true;
soapEnvelope.setOutputSoapObject(Request);
AndroidHttpTransport aht = new AndroidHttpTransport(URL);
aht.debug=true;
try {
aht.call(SOAP_ACTION_USER_LOGIN, soapEnvelope);
soapObject = (SoapObject) soapEnvelope.getResponse();
if(soapObject != null){
result = soapObject.getProperty("result").toString();
}
if(result.equalsIgnoreCase("success")){
isLogin = true;
}
} catch (IOException e) {
e.printStackTrace();
} catch (XmlPullParserException e) {
e.printStackTrace();
}
return isLogin;
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en