Process exposed computation

post

/PASService/rest/services/exposedComputation

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : schema
Type: string
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to support creation of exposed computation SOAP web service in JSON and XML format.

Example cURL Command in JSON format

Use the following cURL command to submit a request on the REST resource:

curl -X POST -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/exposedComputation"

Example Request Body in JSON format

The following shows an example of the request body in JSON format:

"{"exposedComputation":{"computationId":"SCN","parameters":[{"NAME":"CompanyName","value":"Prototype"}]}}"

Example Response Body in JSON format

The following shows an example of the response body in JSON format:

"{
    "SCN": {
        "SubsidiaryCompanyNames": {
            "Item": [
                {
                    "INDEX": "1",
                    "value": "Prototype Group Child Company"
                },
                {
                    "INDEX": "2",
                    "value": "Prototype Child Company"
                }
            ]
        }
    }
}"

Example cURL Command in XML format

Use the following cURL command to submit a request on the REST resource:

curl -X POST -H "Accept: application/xml" -u username:password "server:port/PASService/rest/services/exposedComputation"

Example Request Body in XMl Format

The following shows an example of the request body in XML format:


<ExposedComputation>
 <ComputationId>SCN</ComputationId>
 <CompanyGuid>7204C2FE-13B1-4A48-8CDA-DE8386C60EF9</CompanyGuid>
 <Parameters>
<Parameter NAME="CompanyName">Prototype</Parameter>
</Parameters>
</ExposedComputation>

Example Response Body in XML Format

The following shows an example of the response body in XML format:


<SCN>
    <SubsidiaryCompanyNames>
        <Item INDEX="1">Prototype Group Child Company</Item>
        <Item INDEX="2">Prototype Child Company</Item>
    </SubsidiaryCompanyNames>
</SCN>

Back to Top