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
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024