简体   繁体   中英

How to call the .net web service in Android Application to store and retrive?

Here i have the c# web service for log in screen to my application where this web service return type is Data Table so how can i write in android part to check the log in detail?can any one help me out Thanks in advance!!

public DataTable GetLoginValidation(String UserName,String Password)
{
    String SQL="uspLoginValidation";
    SqlCommand oCommand=new SqlCommand(SQL);
    oCommand.CommandType=CommandType.StoredProcedure;
    oCommand.Parameters.clear();
    oCommand.parameters.AddWithVaue("@UserName",UserName);
    oCommand.parameters.AddWithVaue("@Password",Password);

    return GetTable(oCommand);
}

您必须为.net使用Restful或Soap服务,然后使用volly或restclient库或使用httpclient在android中使用Web服务。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM