Description

Remove a specified SOAP or REST service from a web application deployed in an ABL application.

HTTP Operation

DELETE

URI

host_name:port/oemanager/applications/ABL_app_name/webapps/Web_app_name/transports/{soap|rest}/oeservices{SoapServiceName|RestSeviceName}

Content-Type

application/vnd.progress+json 

Response codes

200 Success 
500 Unexpected Server Error

Request body

NA

Command-line example (SOAP)

curl -X DELETE -u username:password -v 
http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/transports/soap/oeservices/SimpleTest

Response body example (SOAP)

{
  "result": 
  {        
  "OESoapServiceDesc": [            
      {                
      "accessUrl": "http://localhost:8810/soap/wsdl?targetURI=urn:nsRL1",
      "archiveName": "simpleRL.wsm",
      "archiveLocation":"/webapps/ROOT/WEB-INF/adapters/soap",
      "oetype":"SOAP_DESCRIPTOR",
      "name":"simpleRL",
      "state":"DISABLED",
      "type":"OPENEDGE",
      "version":"12.0.0",
      "description": "PAS OpenEdge SOAP Service Artifact",
      "securedUri":""
      }        
  ]    
},    
"operation": "UNDEPLOY SOAP TRANSPORT DESCRIPTOR",
"versionStr": null,
"versionNo": 1,
"errmsg": "",
"outcome": "SUCCESS"
}

Command-line example (REST)

curl -X DELETE -u username:password -v 
http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/transports/rest/oeservices/_oepingService

Response body example (REST)

{"result":
  {
    "OERestServiceDesc":[
      {
        "status":"INITIALIZED",
        "contextPath":"\/\/wrk\/pas1\/webapps\/ROOT",
        "descriptors":[
          {
            "archiveLocation":"WEB-INF\/adapters\/rest\/_oepingService\/_oepingService.paar",
            "archiveName":"_oepingService.paar",
            "accessUrl":"\/rest\/_oepingService",
            "oetype":"REST_DESCRIPTOR",
            "version":"11.5.0",
            "description":"PAS OpenEdge REST Service Descriptor",
            "name":"_oepingService",
            "type":"OPENEDGE",
            "uri":"http:\/\/localhost.com:16680\/rest\/_oepingService"
          }
        ],
        "oetype":"REST",
        "version":"v11.4.0 (12-Dec-2013)",
        "description":"PAS OpenEdge REST Transport.",
        "name":"REST",
        "state":"DISABLED",
        "type":"OPENEDGE",
        "uri":"http:\/\/localhost.com:16680\/rest"
      }
    ]
  },
  "operation":"UNDEPLOY REST TRANSPORT DESCRIPTOR",
  "versionStr":"PASOE 11.5.0",
  "versionNo":1,
  "outcome":"SUCCESS",
  "errmsg":""
}

ABL HTTP client example (SOAP or REST)

Note: Substitute rest for soap in the URI below if you want to get metrics for the rest transport.
define variable resp as OpenEdge.Net.HTTP.IHttpResponse.

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Delete('http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/transports/rest/oeservices/_oepingService')
      :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
      :Request
   ).