push notification using SendWEBRequest
audrius.kiskunas
8-12-21
Operating system: Windows
Hello,

we want to use function SendWEBRequest to send push notifications via Google Firebase, but the parameters of the function are not quite clear. Below we put question marks "= ?" for functions that need to be explained.


SendWebRequest(server,443,-1,true,"POST",getstr,"text,xml","",false,req,reply,30);


server = server address
443 = port

-1 = ?
true = ?
"POST" = request method
getstring = request parameters to be included into the request line (after server address)
"text/xml" = Content -Type
"" = ?
false = ?
req = request body in json format?
reply = response?
30 = ?

Appreciate Your comments and recommendations.

Audrius
Nick Hemming
8-18-21
hi Audrius

This is being reviewed by the Team and I WILL GET BACK TO YOU asap.

Nick
Nejc R.
8-18-21
server = server address
443 = port
-1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what
true = use SSL flag (will use SSL if true)
"POST" = request method
getstring = request parameters to be included into the request line (after server address)

"text/xml" = Content -Type
"" = Used for SOAP method
false = not certain I think its mostly unused now but should be set to false

req = data that will be sent as the payload in the request (usually a json or XML)
reply = data that comes back as the payload in response (usually a json or XML)
30 = timeout in seconds
audrius.kiskunas
8-19-21
Created byNejc R.10:27 18 Aug 2021
server = server address 443 = port -1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what true = use SSL flag (will use SSL if true) "POST
Thank You!

Audrius
Christoffer Riska
8-20-21
Created byNejc R.10:27 18 Aug 2021
server = server address 443 = port -1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what true = use SSL flag (will use SSL if true) "POST
Maybe someone could update this site http://halforum.hansaworld.net/primitives
It is missing a lot of info.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Andis Blicāns, Grasko
Hi, We have client using 8.5 2021-09-26 (build 85400383). The fields &quot;Max Web Users&quot; and &quot;Max Sessions&quot; ar blank. Server is closing itself almost every day. Message in hansa....
15:52 26 Apr 2024
Afternoon, Some of our customers haven&apos;t changed their passwords for a while but they&apos;re not getting any password expiry message. If I copy their Standard ID into a new user on some test ...
17:22 25 Apr 2024