Skip to main content

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.
------------------------------

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.
------------------------------

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
------------------------------

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
------------------------------

Bonjour Jean-Marc,

est-ce que l'url que tu souhaites invoquer est en HTTPS ?
si oui alors l'erreur -12 est probablement due à une erreur de certificat.
pour qu'Uniface puisse faire un hand skake du certificat lors d'un appel UHTTP.SEND, il faut quel le certificat ainsi que les 2 niveaux de certifications supérieur soient intégrés dans le fichier ca-bundle.crt qui doit être posé dans le répertoire usys d'Uniface.
attention, les certificats sont à convertir au format x509 pour être intégrés dans le ca-bundle.crt



------------------------------
Félix HAZIZA
CEO
Pacific Informatique
SAINT-DIDIER FR
------------------------------