I wrote a very simple .Net web service (SOAP) that returned a hello message. Used Download method and message xml returned perfectly.
I then changed the service to accept an input parameter and switched to HttpUtils2. I cannot get it to respond. Using PostString fails and Downloads2 returns an XML that basically says the service was not found. Same case whether I use service.asmx?op=HelloWorld or service.asmx/HelloWorld.
I’m new at this so any help would be greatly appreciated.
B4X:
Sub Globals
Dim b4a As String
b4a = "http://192.168.1.4/MyTest/service.asmx/HelloWorld"
End Sub
Sub Activity_Create(FirstTime As Boolean)
HttpUtils.CallbackActivity = "Main" 'Current activity name.
HttpUtils.CallbackJobDoneSub = "JobDone"
HttpUtils.Download("Job1", b4a)
End Sub
I then changed the service to accept an input parameter and switched to HttpUtils2. I cannot get it to respond. Using PostString fails and Downloads2 returns an XML that basically says the service was not found. Same case whether I use service.asmx?op=HelloWorld or service.asmx/HelloWorld.
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim job1 As HttpJob
job1.Initialize("Job1", Me)
'job1.Download2("http://192.168.1.4/MyTest/service.asmx?op=HelloWorld", Array As String("Msg", "HelloTablet"))
' Download2 xml returned service not found
'job1.PostString("http://192.168.1.4/MyTest/service.asmx?op=HelloWorld", "Msg=HelloTablet")
' PostString Fails
End Sub
I’m new at this so any help would be greatly appreciated.