Original Message:
Sent: 02-06-2024 05:40
From: Jean-Marc SALIS
Subject: Send error -12
I don't know about the -12, probably related with de 503 answer you get from the query.
My guess is your headers might not be forged correctly.
The doc example (in https://www3.rocketsoftware.com/rocketd3/support/documentation/Uniface/10/uniface/_reference/componentAPIs/httpExecutionOperations/SEND.htm) shows :
;Create list of headers putitem/id vHeaders, "Content-Type", "application/soap+xml; charset=UTF-8"putitem/id vheaders, "Accept-Charset", "ISO-8859-1 ; q = 0.4, UTF-16BE; q=0.9"
Perhaps try to forge your headers the same way ?
------------------------------
Jean-Marc SALIS
Mp Services
Montauban Cedex FR
Original Message:
Sent: 02-05-2024 08:57
From: Erhan Gunbulut
Subject: Send error -12
Hello,
We got by sending via UHTTP.SEND $status-12.
activate UHTTP.send(ps_url, "POST", ps_username, ps_password, pl_http_header, vx_content, vs_respons_header)
ps_username and ps_password are not used, they are empty.
pl_http_header="Content-Type: text/xml·;SOAPAction="""
Response is "HTTP/1.1 503 Service Unavailable"
If I post the message via POSTMAN it goes well but not in Uniface call.
Why is $status -12 throwed? And how can I get the detailed error message?
------------------------------
Erhan Gunbulut
Sogeti Nederland B.V.
------------------------------