Description

Enable or disable a SOAP service in a web application deployed in an ABL application.

HTTP Operation

PUT

URI

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

Content-Type

application/vnd.progress+json

Request body

{ "STATE" : "{ENABLED | DISABLED}" }

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X PUT -u username:password -v
http://localhost:16680/oemanager/applications/pas1/webapps/ROOT/transports/soap/oeservices/SimpleTest/state
-H "Content-Type: application/vnd.progress+json" -d {"state":"DISABLED"}

ABL HTTP client example

using Progress.Json.ObjectModel.*.
define variable resp as OpenEdge.Net.HTTP.IHttpResponse.
define variable jsonData as JsonObject.

jsonData = new Progress.Json.ObjectModel.JsonObject().
jsonData:Add('state', 'DISABLED').

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Put('http://localhost:16680/oemanager/applications/pas1/webapps/ROOT/transports/soap/oeservices/SimpleTest/state', jsonData)
      :ContentType('application/vnd.progress+json') 
      :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
      :Request
   ).

Response body example

{
	"result": "",    
	"operation": "SET SOAP TRANSPORT PROPERTIES",    
	"versionStr": null,    
	"versionNo": 1,    
	"errmsg": "",    
	"outcome": "SUCCESS"
}
Note: The service runtime property “serviceAvailable” is located in service_name.props file. For example, instance-name\webapps\ROOT\WEB-INF\adapters\soap\PFT\PFT.props.