Adding inbound endpoints
Define an inbound endpoint that represents the origin of inbound HTTP or Java™ Message Service (JMS) messages. When you define the endpoint, you must ensure it references an inbound binding. If required, you can also specify additional advanced properties on the HTTP or JMS protocol.
About this task
You use the completion menu of the Connectivity Definition editor to specify the required elements in the .cdef file.
define inbound type endpoint 'inbound_endpoint'
with
description "endpoint_description",
using
binding 'referenced_binding',
url path "url_path".
If you are defining an HTTP inbound endpoint, you must provide a URL path. A URL path is not required if you are defining a JMS inbound endpoint.
The endpoint is part of a solution and the .cdef file that you create is stored in the connectivity folder in the solution project. If your solution includes multiple endpoints, after you complete the first endpoint definition you must repeat steps 2 - 6 for each additional endpoint.
There are several ways in which you can create and maintain endpoint and binding definitions in .cdef files, depending on the complexity of your project. You can define all related assets in a single .cdef file, but you must define assets that require partitioning in separate .cdef files:
- For simple projects, you can create one .cdef file for inbound assets, and one .cdef file for outbound assets. Because inbound and outbound assets never reference each other, the use of two .cdef files provides a simple way of partitioning.
- For more complex projects that contain several bindings, you can define each binding in its own .cdef file. You can also include the endpoint assets that use that binding, in the same .cdef file.
For information on advanced properties for the HTTP and JMS protocols, see HTTP protocol and JMS protocol.
Procedure
- Open the .cdef file.
- Specify the endpoint name.
- Optional: Specify the description.
- Specify the binding name. The value is the name of the binding for which this endpoint receives messages.
- For an HTTP inbound endpoint, specify the URL path. The value must be the URL path on which this inbound endpoint receives messages and must contain at least two levels, for example: /solution1/endpoint1
- Optional: Set custom properties on the inbound endpoint.
- Save your work.
Example
define inbound HTTP endpoint 'inboundQuotesEndpoint'
with
description "Endpoint for inbound quotes",
using
binding 'vehicleQuotes',
url path "/inbound/quotes".
Here is an example of an inbound HTTP endpoint with advanced properties:
define inbound HTTP endpoint 'inboundHTTPEndpoint'
with
description "inbound endpoint",
using
binding 'inboundHTTPbinding',
url path "/base/url",
advanced properties :
- 'property1': "property1Value"
- 'property2': "property2Value".
What to do next
Create the connectivity configuration files, and then deploy your connectivity configuration. For more information about creating connectivity configuration files, see Creating connectivity configuration files.