D
David O'Regan
Guest
Hi, I am having trouble interpreting the response data from an OpenEdge.Net.HTTP.IHttpRequest. The request itself executes as expected and performs it's function. The problem is that the response object (OpenEdge.Net.HTTP.IHttpResponse) has the correct ContentLength/StatusCode/StatusReason but the Entity and ContentType fields are ? and blank respectively. Code: cURL = " http://SomeURL/SomeService":U oXML = NEW STRING(lcXML) oURI = URI
arse(cURL). ASSIGN oLib = ClientLibraryBuilder:Build():sslVerifyHost(NO):Library oRequest = RequestBuilder
ost(oURi,oXML):AcceptAll():ContentType('application/x-www-form-urlencoded'):Request oResponse = ClientBuilder:Build():UsingLibrary(oLib):Client:Execute(oRequest) oEntity = oResponse:Entity. oResponse:Entity is ? and i'm unable to do anything with it. I have run my routine with: log-manager:logfile-name = "MyLog.log". log-manager:logging-level = 6. And I can see that the response-data-chunk contains the data i am looking for from the httpresonse. I am expecting XML as the response data, for what it's worth. Any ideas where I am going wrong? Thanks.
Continue reading...
Continue reading...