Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Can;t connect to web service from Windev -difference between HTTPSend(sHTTPRequest) and HTTPRequest("https://rds.tourcube.net/tourcube/ping".... ??

$
0
0
Hi,

I've written a rest web service in windev 22 and have it installed and working on a clients server (server A). I've now installed it on second server (server B) and am having some issues calling Server B it from my windev 22 desktop app.

When I do make a call I get "No server response. Check whether a HTPP server is present on the target server".

Oddly, I can successfully call the web service on Server B from webdev's browser based test tool and from browser code of a webdev AWP page, but NOT from the server code of same webdev page.

I am stumped. Here is code. Any ideas?

If any ones to try hitting below from Windev desktop feel free. That might at least rule out network related issues.

Thanks!

sURL is string
sURL="[rds.tourcube.net];

sHTTPRequest is httpRequest
sHTTPRequest..Header["tc-api-key"] = "MTSTEST"
sHTTPRequest..URL=sURL
sHTTPRequest..Method=httpGet
cMyResponse is httpResponse = HTTPSend(sHTTPRequest)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
Info(cMyResponse..Content)
END

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>