B4J Question Posible BUG in B4J with poststring

Status
Not open for further replies.

victormedranop

Well-Known Member
Licensed User
Longtime User
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

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:

victormedranop

Well-Known Member
Licensed User
Longtime User
They made reference to and io file error.
(FileNotFoundException) java.io.FileNotFoundException: C:\Users\VICTOR~1\AppData\Local\Temp (Access is denied)
I running with administrator elevation.
 
Upvote 0
Status
Not open for further replies.
Top