-
Dec 2nd, 2018, 04:35 PM
#1
Thread Starter
Junior Member
run webservice by PostString in b4a
hello
i write a webservice and upload it to my host, by asp.net. it works fine.
now i want to use it by B4A.
i write bellow lines. but job1.Success is false. why?
Dim job1 As HttpJob
job1.Initialize("", Me)
Dim ConString As String = "Data Source= ASPNETDB3.mssql.somee.com;Initial Catalog=ASPNETDB3;User ID=a;Password=***;"
job1.PostString("http://mywebsite.com/MYServices2.asmx?op=insert_into_test_tbl2","conString =" & ConString & "&name=" & "a" & "&grade=" & 3)
Wait For (job1) JobDone(job1 As HttpJob)
If job1.Success Then
a=job1.GetString
End If
job1.Release
thanks
-
Dec 4th, 2018, 03:27 AM
#2
Member
Re: run webservice by PostString in b4a
You probably need to set the content type and maybe other headers. It depends on your server configuration.
https://www.b4x.com/android/forum/th...39413/#content
-
Dec 4th, 2018, 03:27 AM
#3
Member
Re: run webservice by PostString in b4a
You probably need to set the content type and maybe other headers. It depends on your server configuration.
https://www.b4x.com/android/forum/th...39413/#content
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|