C
chrisrichardson
Guest
OE 11.5.1 I'm struggling to put the syntax together in order to make an HTTP request from behind our proxy server. Internal requests are fine, but when adding the ViaProxy option I get the errors below. I'm missing something in the construction of the code, but can't figure our what. Any help/advice please? USING OpenEdge.Net.HTTP.IHttpRequest. USING OpenEdge.Net.HTTP.IHttpResponse. USING OpenEdge.Net.HTTP.RequestBuilder. USING OpenEdge.Net.HTTP.ClientBuilder. DEFINE VARIABLE oRequest AS IhttpRequest NO-UNDO. DEFINE VARIABLE oResponse AS IhttpResponse NO-UNDO. DEFINE VARIABLE httpUrl AS CHARACTER NO-UNDO. httpUrl = " http://www.google.co.uk" . oRequest = RequestBuilder:Get(httpUrl):Request. oResponse = ClientBuilder:Build():ViaProxy(' myproxy:8080'):Client:Execute(oRequest) . MESSAGE oResponse:StatusCode oResponse:StatusReason view-as alert-box info. The error message: Lead attributes in a chained-attribute expression (a:b:c) must be type HANDLE or a user-defined type and valid (not UNKNOWN). (10068) DYNAMIC-NEW cannot instantiate class OpenEdge.Net.HTTP.ProxyHttpClient because the wrong number of parameters were passed to the constructor, or the constructor was not PUBLIC. (14758)
Continue reading...
Continue reading...