Hi,
I have managed to get some decent progress by looking through other posts, and have been able to get so close... yet feel I am probably so far...
I have reviewed and used some of the code from this post (http://www.b4x.com/forum/basic4andr...ndroid-web-services-now-simple.html#post50919) as well as adding in the following section into my web.config file on my asp.net web services web.config file
<webServices>
<protocols>
<add name ="HttpGet"/>
</protocols>
</webServices>
So everything see to at least compile and run.
The problem is I have a single web service (ns_sx.asmx) but it contains many web methods... I want to call one called validateLogin and pass in a string. The web service returns a string value (passing in pin, get back username)
My code in the b4a app is(called on a button press event) :
HttpUtils.CallbackActivity = "Main"
HttpUtils.CallbackJobDoneSub = "JobDone"
HttpUtils.Download("job1",ServerUrl)
my jobdone code is:
Dim s As String
If HttpUtils.IsSuccess(ServerUrl) Then
s = HttpUtils.GetString(ServerUrl)
Msgbox (s,"result")
Else
Msgbox ("nope","failed")
End If
what I get back in the message box, is the html code for the page that would show in my browser.. it shows a list of the operations available in that webservice....
So I think it works, its just not calling the validateLogin operation, or passing in a string, or getting one back..
I did try to add op=validatelogin to the url, which made a difference, but of course without passing the parameter to it, it does not work.
Thanks for any assistance...
I have managed to get some decent progress by looking through other posts, and have been able to get so close... yet feel I am probably so far...
I have reviewed and used some of the code from this post (http://www.b4x.com/forum/basic4andr...ndroid-web-services-now-simple.html#post50919) as well as adding in the following section into my web.config file on my asp.net web services web.config file
<webServices>
<protocols>
<add name ="HttpGet"/>
</protocols>
</webServices>
So everything see to at least compile and run.
The problem is I have a single web service (ns_sx.asmx) but it contains many web methods... I want to call one called validateLogin and pass in a string. The web service returns a string value (passing in pin, get back username)
My code in the b4a app is(called on a button press event) :
HttpUtils.CallbackActivity = "Main"
HttpUtils.CallbackJobDoneSub = "JobDone"
HttpUtils.Download("job1",ServerUrl)
my jobdone code is:
Dim s As String
If HttpUtils.IsSuccess(ServerUrl) Then
s = HttpUtils.GetString(ServerUrl)
Msgbox (s,"result")
Else
Msgbox ("nope","failed")
End If
what I get back in the message box, is the html code for the page that would show in my browser.. it shows a list of the operations available in that webservice....
So I think it works, its just not calling the validateLogin operation, or passing in a string, or getting one back..
I did try to add op=validatelogin to the url, which made a difference, but of course without passing the parameter to it, it does not work.
Thanks for any assistance...