OE 11.4
HP-UX 11.31
Making a WS call from UNIX sometimes works and sometimes does not. From Windows the WS call works all the time.
basic ABL program and I have a cert in $DLC/certs
DEFINE VARIABLE lcRequest AS LONGCHAR NO-UNDO.
DEFINE VARIABLE cStatus AS CHARACTER NO-UNDO.
DEFINE VARIABLE lcResponse AS LONGCHAR NO-UNDO.
DEFINE VARIABLE lcReply AS LONGCHAR NO-UNDO.
run tstwsrestget.p ( INPUT "GET",
INPUT "69.89.205.217",
INPUT "443",
INPUT "Basic " + "S0VJU0hBTUFSU0hBTEw6ZDJ3NHg4bmI3Ng==",
INPUT "/prod/mqsr.backoffice/orderservice.asmx/GetOrderByNumber",
INPUT "marvinOrderNumber=SKZ00014",
OUTPUT lcRequest,
OUTPUT cStatus,
OUTPUT lcResponse,
OUTPUT lcReply ) no-error.
Thanks in Advance!
I run the program 19 times and get no content and on the 20th time I get data.
results:
┌──── Information ─────┐
│ No-Content : │
│ ──────────────────── │
│ <OK> <Help> │
└──────────────────────┘
┌────────────────── Information ──────────────────
│ Success
│ HTTP/1.1 200 OK
│ Cache-Control: private, max-age=0
│ Content-Type: text/xml; charset=utf-8
│ Server: Microsoft-IIS/7.5
│ X-AspNet-Version: 4.0.30319
│ X-Powered-By: ASP.NET
│ Date: Fri, 16 Sep 2016 18:37:43 GMT
│ Connection: close
│ Content-Length: 958508
│ Set-Cookie: OMS=2316566794.20480.0000; path=/
│ Vary: Accept-Encoding
│ ───────────────────────────────────────────────
here is the code to build the socket
DO:
CREATE SOCKET vSocket.
vSocket:SET-READ-RESPONSE-PROCEDURE ("readHandler",THIS-PROCEDURE).
ASSIGN
wstatus = vSocket:CONNECT("-H " + ip-host
+ " -S " + ip-port
+ " -ssl"
+ " -nohostverify"
+ " -clientConnectTimeout " + STRING({&CONECTT
IMEOUTMS})) NO-ERROR.