hello
i write a web service and upload it in my host. its show a string which is count of online users of site. it works fine and in my websites it test it.
now in B4A, I WANTS TO call this process. but it don't work.
What does work? How are you calling the working one? Post the code which is working (may be written in another Language). But we can not guess what is working for your, how the WS is defined....
Are you sure you need to use POST?
Can you post a URL which is working/returning the result?
It is possible that you just need to use Download or Download2 to get the results. Hard to say whitout knowing the WS Documentation.
hello and thanks for your attention to me.
may be i must use from another commands instead of PostString.
is it right? where command i must use for run my webservice? (a function in webservice).
here is code in web service.
[WebMethod]
public void OnlineUsers_Counts()
{
DataTable dt = new DataTable();
SqlCommand GetServiceNumCMD = new SqlCommand();
GetServiceNumCMD.CommandText = "select count(*) from t_OnlineUsers ";
// if ((con.State == ConnectionState.Open) && con.State == ConnectionState.Broken)
How are you calling this webservice from a browser for example?
Can you post the url here? If it is private (not for public) you can start a private conversation with me and post the link there if you want.