Hello, does anybody have an idea. Line "If job.Success .. " is never reached. Try catch shows no error. It looks like "Wait For (jobBatch ... " hangs up!
Communication with the server is functioning well in other cases, but in that case i need methode "DELETE" an can't make it work.
Thx in advance for your help
Georg
Communication with the server is functioning well in other cases, but in that case i need methode "DELETE" an can't make it work.
B4X:
Public Sub batchDeleteItem(reqParameters As String) As ResumableSub
Try
Dim jobBatchDeleteItem As HttpJob
jobBatchDeleteItem.Initialize("BatchDeleteItem",Me)
jobBatchDeleteItem.GetRequest.InitializeDelete2(EslSystem.url & "item/batchDeleteItem",reqParameters.GetBytes("UTF8"))
jobBatchDeleteItem.GetRequest.SetHeader("Authorization","" & actLoginSuccess.token & "")
jobBatchDeleteItem.GetRequest.SetContentType("application/json")
Wait For (jobBatchDeleteItem) JobDone (job As HttpJob)
actBatchDeleteItem.Initialize
If job.Success = True Then
If job.JobName = "BatchDeleteItem" Then
Dim mapGetErpPublicKey As Map
Dim Json As JSONParser
Json.Initialize(job.GetString)
Thx in advance for your help
Georg