Hi, I recently upgrade my version of b4j.
this code was working on the last version. I test with iptraf on Linux dist. and never try to connect to de remote hosts. I don't know what's happening.
victor
this code was working on the last version. I test with iptraf on Linux dist. and never try to connect to de remote hosts. I don't know what's happening.
victor
B4X:
Dim data As String = $"<?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>
<Login xmlns="http://tempuri.org/">
<username>${username}</username>
<password>${password}</password>
<accountId>${userid}</accountId>
</Login>
</soap:Body>
</soap:Envelope>"$
Dim j As HttpJob
Try
Log(data)
j.Initialize("", Me)
If j.IsInitialized = True Then
Log("ok")
j.PostString("https://2.1.14.10:9191/Service1.asmx",data)
j.GetRequest.SetHeader("SOAPAction","http://tempuri.org/Login")
j.GetRequest.SetContentType("text/xml; charset=utf-8")
End If
Catch
Log(LastException)
End Try
Wait For (j) jobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
End If
j.Release
Last edited: