![]() ![]() ORequest = RequestBuilder:Build('POST', oURI) OCredentials = NEW Credentials('Tomcat Application', 'tomcat', 'tomcat'). ![]() OURI:Path = '/myOEABLWebAppService/postCustomer/'. OClient = ClientBuilder:Build():KeepCookies(CookieJarBuilder:Build():CookieJar):Client. LOG-MANAGER:LOGFILE-NAME = "C:/OpenEdge/WRK/request-log1.txt".ĭEFINE VARIABLE oClient AS IHTTPClient NO-UNDO.ĭEFINE VARIABLE oCredentials AS Credentials NO-UNDO.ĭEFINE VARIABLE oRequest AS IHttpRequest NO-UNDO.ĭEFINE VARIABLE oResponse AS IHttpResponse NO-UNDO.ĭEFINE VARIABLE oCookies AS Cookie NO-UNDO. ![]() I have written this code using the following youtube video Can anyone help me in resolving this issue? Now, I am using the following code to consume this REST service, but I am getting the StatusCode as 200 and StatusReason "Forbidden". (see screen shot below) getting the response successfully. I have developed a small REST application using OpenEdge 11.6. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |