Invoke > Runtime tasks for processes > Invoking Processes Deployed to the Cloud Server
  

Invoking Processes Deployed to the Cloud Server

The following topics describe how you can invoke Process Designer and Process Developer processes deployed to the Cloud Server.

Web Services and SOAP Endpoints

Process Designer exposes web services through an automatically generated WSDL interface that you can access and use as a SOAP endpoint. Each web service you interact with contains a set of methods, also called operations, hosted on an application server. You can invoke these operations remotely in the cloud or over a network.
When you invoke a process that is deployed to the Cloud Server by using the SOAP Service URL, the SOAPAction Header is set to the process name by default. However, you can provide a different value in the header. For more information about using the SOAP endpoints, see Rules and guidelines for SOAP endpoints.
When you invoke an operation, you create a SOAP message and send it to the web service, typically over HTTP/ HTTPS. SOAP is a commonly used XML-based messaging protocol used to exchange information.
A web service has a WSDL (Web Services Definition Language) document, an XML description of the operations and how to invoke them. Every web service you want to interact with must have a service name and an endpoint URL (the location to which you send SOAP messages in order to invoke the operation).
The caller of the web service need not know anything about the internal details, as the SOAP interface publishes the available operations. For each call, the web service returns a response message. The response contains either the information requested or fault information, in case of an error.
This simple SOAP message calls the "Add" method and returns the answer:
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:s='http://www.w3.org/2001/XMLSchema'>
<SOAP-ENV:Body>
<Add xmlns="http://www. math.org">
<arg1 xsi:type="s:decimal">100</arg1>
<arg2 xsi:type="s:decimal">25</arg2>
</Add>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
In this case, the response message is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:s='http://www.w3.org/2001/XMLSchema'>
<SOAP-ENV:Body>
<AddResponse xmlns="http://www.math.org">
<AddResult>125</AddResult>
</AddResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Definition of Processes Exposed as Web Services

When you define processes with Process Designer, the SOAP endpoint is available for use by SOAP clients that handle the "xsd:any" payload style, which means the clients can process inputs, outputs and handle faults.
Process Designer supports the SOAP 1.1 standard with the document/literal message style and encoding option used by most web services.
With the WSDL interface, you can:
To define a SOAP endpoint in Process Designer:
  1. 1In the process properties, choose REST/SOAP as the Start Binding.
  2. The following image shows the Binding property set as REST/SOAP:
    The image shows the Binding property set as REST/SOAP.
  3. 2After you define and publish the process, you can see the SOAP Service URL.
  4. The following image shows the SOAP Service URL:
    The image shows the SOAP Service URL.
  5. 3Click View WSDL File to open the complete WSDL and view the SOAP message generated for the process. You can copy the URL to use it as an endpoint.
  6. Note: If a process contains Japanese characters in its name, you might see an error when you view the WSDL file from a Chrome browser. If you see an error, right-click on the page and select View page source to view the WSDL file.

REST and Process Designer SOAP Endpoints to Access Message Events

You can access message events using REST and SOAP 1.1 endpoints generated by Process Designer. If SOAP 1.2 endpoints are required please use Process Developer to generate these endpoints. To obtain endpoints of services created using Process Developer, refer to information on policy-driven bindings in the Process Developer Guide.
Note: When the number of REST or SOAP request exceeds the rate limit within the designated time frame, a HTTP 429 status code appears.
The following table specifies the pattern for each REST or SOAP 1.1 endpoint based on the type of access required when you invoke message events.
The process uses HTTP Basic access authentication when you uncheck Allow anonymous access in the process Start properties or the Messages properties for message events. You can define a process to authenticate differently than the callback it receives, in message events or subprocess calls.
Type of Access
REST URL Format
SOAP 1.1 URL Format
Process with HTTP Basic access authentication
https://{host}/active-bpel/rt/{ProcessName}
https://{host}/active-bpel/soap/{ProcessName}
Process with OAuth2 authentication
https://{host}/active-bpel/rt/{ProcessName}
https://{host}/active-bpel/soap/{ProcessName}
Process with Anonymous access
https://{host}/active-bpel/public/rt/{TenantName}/{ProcessName}
https://{host}/active-bpel/public/soap/{TenantName}/{ProcessName}
Process Message Event with Anonymous access
https://{host}/active-bpel/public/rt/{TenantName}/{ProcessName}/event/{MessageName}
https://{host}/active-bpel/public/soap/{TenantName}/{ProcessName}/event/{MessageName}
Process Message Event with HTTP Basic access authentication
https://{host}/active-bpel/rt/{ProcessName}/event/ {MessageName}
https://{host}/active-bpel/soap/{ProcessName}/event/{MessageName}
Process Message Event in subProcess with Anonymous access
https://{host}/active-bpel/public/rt/{TenantName}/{SubProcessName}/event/{MessageName}
https://{host}/active-bpel/public/soap/{TenantName}/{ProcessName}/event/{MessageName}
or
https://{host}/active-bpel/public/soap/{TenantName}/{SubProcessName}/event/{MessageName}
Process Message Event in subProcess with HTTP Basic access authentication
https://{host}/active-bpel/rt/{SubProcessName}/event/{MessageName}
https://{host}/active-bpel/soap/{ProcessName}/event/{MessageName}
or
https://{host}/active-bpel/soap/{SubProcessName}/event/{MessageName}
Note: For SOAP requests, you can use the default process or sub process endpoint if the event has the same access, either anonymous or HTTP Basic access authentication, as the process or sub process.

Rules and guidelines for SOAP endpoints

Consider the following rules and guidelines when a public or an authenticated process call is made: