Description

Update services to an OEABL web application. For this operation, you must export the services from Developer Studio as a .zip archive or created using the OpenEdge ANT tasks for generating incremental services.

HTTP Operation

PUT

URI

host_name:port/oemanager/applications/ABL_app_name/webapps/Web_app_name

Content-Type

application/vnd.progress.paar+zip

Response codes

200 Successfully updated services to the WebApp
500 Could not update services to the OEABL WebApp

Command-line example

curl -X PUT -u username:password -v
http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT
-H "Content-Type: application/vnd.progress.paar+zip" -F "file=@webapp.zip"

ABL HTTP client example

block-level on error undo, throw.

using Progress.Json.ObjectModel.*.
define variable resp as OpenEdge.Net.HTTP.IHttpResponse.
define variable fileData as OpenEdge.Core.ByteBucket.
define variable memFile as memptr.

fileData = OpenEdge.Core.ByteBucket:Instance().
copy-lob from file search("webapp.zip") to memFile no-convert no-error.
fileData:PutBytes(memFile).

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():AllowTracing(true):Client
       :Execute(OpenEdge.Net.HTTP.RequestBuilder
       :Put('http://localhost:8880/oemanager/applications/rptview/webapps/report', fileData)
        :ContentType('application/vnd.progress.paar+zip') 
        :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
        :Request
).

Response body example

Returns a JSON payload like the result of the API for Get information about a specific web application.