Create the security details of downstream application

post

/PASService/rest/services/v1/outboundApplications

Creates the security details of downstream applications.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

201 Response

This response code indicates creation of downstream application security details successfully.
Back to Top

Examples

Post the details of downstream applications and its security. For more information on Downstream Message Push parameters, refer to Downstream Message Push Parameters.

Example cURL Command

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

curl -X POST \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
     -L "http://server:port/PASService/rest/services/v1/outboundApplications" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

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

{
    "outboundApplications": {
        "eventName": "Billing1",
        "environment": "newenv136",
        "protocolType": "JMS",
        "outboundConfiguration": {
            "providerUrl": "http://ZnNnYnUtbXVtLTE0Ni5zbmJvbXByc2hhcmVkMS5nYnVjZHNpbnQwMmJvbS5vcmFjbGV2Y24uY29tOjcwMDE=",
            "connectionFactory": "DownstreamMessagePushConnectionFactory",
            "destinationName": "DownstreamMessagePushQueue",
            "deliveryMode": "DeliveryMode.PERSISTENT",
            "acknowledgementMode": "AUTO_ACKNOWLEDGE",
            "timeToLive": "0",
            "priorityLevel": 1
        },
        "maxTimeOut": "10000",
        "outboundSecurity": {
            "authType": "BASIC",
            "authentication": {
                "userName": "Weblogic",
                "password": "password"
            }
        }
    }
}

Example Response Body

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

{
    "outboundApplication": [
        "77342250-3528-48E7-A8B7-EAF371B3D20F"
    ]
}

Example Request Body

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

{
    "outboundApplications": {
        "eventName": "Billing",
        "environment": "newenv123",
        "protocolType": "SOAP",
        "outboundConfiguration": {
            "wsdlLocation": "http://ZnNnYnUtbXVtLTE0Ni5zbmJvbXByc2hhcmVkMS5nYnVjZHNpbnQwMmJvbS5vcmFjbGV2Y24uY29tOjkwMTcvUEFTSmF2YS9GaWxlUmVjZWl2ZWQ/d3NkbA==",
            "serviceName": "{http://FileReceived}FileReceived",
            "portName": "{http://FileReceived}PasFileReceivedPort",
            "securityType": "WSS",
            "invokeOneWay": "false",
            "soapAction": ""
        },
        "maxTimeOut": "10000",
        "outboundSecurity": {
            "authType": "BASIC",
            "authentication": {
                "userName": "qatester3",
                "password": "cWF0ZXN0ZXIz"
            }
        }
    }
}

Example Response Body

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

{
    "outboundApplication": [
        "DAD4A7AB-3E44-4C21-A81E-83D8B59E06C0"
    ]
}

Example Request Body

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

{
    "outboundApplications": {
        "eventName": "Billing",
        "environment": "newenv123",
        "protocolType": "REST",
        "outboundConfiguration": {
            "applicationUri":"http://MTI3LjAuMC4xOjgwODAvUEFTU2VydmljZS9yZXN0L3NlcnZpY2VzL2ZpbGVSZWNlaXZlZA==",
            "contentType":"application/json"
            },
        "maxTimeOut": "10000",
        "outboundSecurity": {
            "authType": "BASIC",
            "authentication": {
                "token": "cWF0ZXN0ZXIzOnFhdGVzdGVyMw=="
            }
        }
    }
}

Example Response Body

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

{
    "outboundApplication": [
        "900EEEA7-EC49-47AD-8A8E-F94E4F02BE1C"
    ]
}
Back to Top