Hi, I was converting an old project that invoked a webservice and through the property HttpUtils2Service.progressSub = "DownloadProgress" and the
I could see the progress of the download. Unfortunately this property is no longer present in the new libraries. How can I progress after a PostString call?
B4X:
Sub DownloadProgress (tmp As ProgressStatus)
ProgressDialogHide
If ProgressBar1.Visible = False Then
lblDownload.Visible = True
ProgressBar1.Visible = True
End If
ProgressBar1.progress = Round ((tmp.downloaded * 100) /tmp.total)
End Sub
B4X:
Dim InviaAWebService As HttpJob
Dim RequestSoapXML As String
InviaAWebService.Initialize("DownloadReferto",Me)
Url1 = "https://xxxxxxxx/xxxxxxx.asmx"
RequestSoapXML = _
"<?xml version='1.0' encoding='utf-8'?>" & _
"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" & _
"<soap:Body>" & _
"<GetReport xmlns='http://xxxxxxxxx.xxx/'>" & _
"<CodFisc>AAA</CodFisc>" & _
"<Password>BBB</Password>" & _
"<Pin>CCC</Pin>" & _
"</GetReport>" & _
"</soap:Body>" & _
"</soap:Envelope>"
InviaAWebService.PostString(Url1,RequestSoapXML)