Cecil
19+ years progress programming and still learning.
Hi, have some demo code which performs a simple HTTP GET and it compiles Okay and it worked the very first time but it errors the subsequent times after that.
I get the following error messages:
"Lead attribute in a chained-attribute expression (a:b:c) must be type HANDLE or a user-defined type and valid (not UNKNOWN). (10068)" x2
"Unusable datatype for SetParameter method. (15295)"
Restart my OE session and it will work again but only once and it's very slow.
I get the following error messages:
"Lead attribute in a chained-attribute expression (a:b:c) must be type HANDLE or a user-defined type and valid (not UNKNOWN). (10068)" x2
"Unusable datatype for SetParameter method. (15295)"
Restart my OE session and it will work again but only once and it's very slow.
Code:
using OpenEdge.Net.URI.
using OpenEdge.Net.UriSchemeEnum.
using OpenEdge.Net.HTTP.RequestBuilder.
using OpenEdge.Net.HTTP.HttpRequest.
using OpenEdge.Net.HTTP.HttpResponse.
using OpenEdge.Net.HTTP.HttpClient.
DEFINE VARIABLE oURI AS URI no-undo.
DEFINE VARIABLE oRequest AS HttpRequest no-undo.
DEFINE VARIABLE oResponse AS HttpResponse no-undo.
oURI = NEW URI(UriSchemeEnum:http, 'www.progress.com').
oRequest = RequestBuilder:Get(oURI):Request.
oResponse = HttpClient:Instance():execute(oRequest).
MESSAGE
oResponse:StatusCode:Value skip
oResponse:StatusCode:Name skip
view-as alert-box.
DELETE object oResponse.
DELETE object oRequest.
DELETE object oURI.