Description

Deploy a new SOAP service in a web application deployed in an ABL application.

HTTP Operation

POST

URI

host_name:port/oemanager/applications/ABL_app_name/webapps
/Web_app_name/transports/soap/oeservices/

Content-Type

application/vnd.progress.wsm+xml

Content disposition

attachment; filename=AppNewService.wsm

Response codes

200 Success
500 Unexpected Server Error 

Command-line example

curl  -X POST -u username:password -v
http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/transports/soap/oeservices
-data-binary @SimpleTest2.wsm
-H "Accept: application/vnd.progress+json" 
-H "Content-Type: application/vnd.progress.wsm+xml" 
-H "Content-Disposition: attachment; filename=SimpleTest2.wsm"

ABL HTTP client example

DEFINE VARIABLE oWsm AS CLASS Memptr NO-UNDO.
DEFINE VARIABLE mMyMemPtr AS MEMPTR NO-UNDO.
DEFINE VARIABLE resp AS OpenEdge.Net.HTTP.IHttpResponse.

FILE-INFO:FILE-NAME = "C:\OpenEdge\WRK\SimpleTest2.wsm".
SET-SIZE(mMyMemPtr) = FILE-INFO:FILE-SIZE.

INPUT FROM VALUE(FILE-INFO:FILE-NAME) BINARY NO-MAP NO-CONVERT.
IMPORT mMyMemPtr.
INPUT CLOSE.

oWsm = new Memptr(mMyMemPtr).

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Post('http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/transports/soap/oeservices')
      :WithData(oWsm)
      :AcceptContentType('application/vnd.progress+json')
      :AddHeader('Content-Disposition', 'attachment; filename="SimpleTest2.wsm"')
      :ContentType('application/vnd.progress.wsm+xml')
      :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password'))
      :Request
   ).
 
SET-SIZE(mMyMemPtr) = 0.

Request body example

NA

Response body example

{
   "operation":"DEPLOY SOAP TRANSPORT DESCRIPTOR",
   "outcome":"SUCCESS",
   "result":{
      "OESoapServiceDesc":[
         {
            "accessUrl":"http://localhost:16680/soap/wsdl?targetURI=urn:nsRL1",
            "archiveName":"simpleRL.wsm",
            "archiveLocation":"/webapps/ROOT/WEB-INF/adapters/soap",
            "oetype":"SOAP_DESCRIPTOR",
            "name":"simpleRL",
            "state":"ENABLED",
            "type":"OPENEDGE",
            "version":"12.0.0",
            "description":"PAS OpenEdge SOAP Service Artifact",
            "securedUri":""
         }
      ]
   },
   "errmsg":"",
   "versionStr":"v12.1.0 ( 2019-08-07 )",
   "versionNo":1
}