[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: .Net classes are giving run time error.

  • Thread starter Thread starter Sivarami Reddy Marella
  • Start date Start date
Status
Not open for further replies.
S

Sivarami Reddy Marella

Guest
We have another program same like this it is running, now I have added some libraries and I have changed the building response part to below with USING componenets. IF (ipc_Action = "Create") THEN DO: http_Request = RequestBuilder:POST( gc_URL, obj_Json ) :ContentType('application/json') :AcceptJson() :Request NO-ERROR. END. IF (ipc_Action = "Update") THEN DO: http_Request = RequestBuilder:PUT( gc_URL, obj_Json ) :ContentType('application/json') :AcceptJson() :Request NO-ERROR. END. ASSIGN http_Lib = ClientLibraryBuilder:Build():sslVerifyHost(NO):library http_Client = ClientBuilder:Build():UsingLibrary(http_Lib):Client http_Response = ResponseBuilder:Build():Response . http_Client:Execute(http_Request, http_Response) /* NO-ERROR */. Earlier Code IF create-update = "Create" THEN oRequest = RequestBuilder:POST("http://" + vcHost + ":" + vcPort + "/crmcreatecontact", oJson) :ContentType('application/json') :AcceptJson() :Request NO-ERROR. ELSE oRequest = RequestBuilder:PUT("http://" + vcHost + ":" + vcPort + "/crmupdatecontact/" + STRING(tdid), oJson) :ContentType('application/json') :AddHeader("Accept","application/json;odata=verbose") :AcceptJson() :Request NO-ERROR. oResponse = ClientBuilder:Build():Client:Execute(oRequest) NO-ERROR. Thanks, Sivarami Reddy M

Continue reading...
 
Status
Not open for further replies.
Back
Top