Webservice Stream Operations Drawer

<< Click to Display Table of Contents >>

Navigation:  Web UI > Workspace > Webservices > Webservice Asset Details Drawer >

Webservice Stream Operations Drawer

 

When a Collection icon_collectionsFilterIcon  or Aggregate aggregate is selected in the Webservice Assets Drawer, the Details Drawer will show all the options for configuring Webservice operations that allow clients to interact with streams on that resource.

This allows fine tuning of the interface by which data from the resource is accessed using the Webservice.

Webservices View with Stream Operations Drawer

Webservices View with Stream Operations Drawer

 

 

This section is the master control for all stream methods on this collection.

 

ws-collections-native-name

 

Information-icon_16px The default value of URL Prefix is [CONNECTOR_NAME]/[COLLECTION_NAME]

 

Information-icon_16px The URL Prefix only identifies the targeted collection within the Webservice. To access a particular Stream Method, more elements must be added to the URL as described in the next paragraphs.

 

 

 

 

Open Stream by Query

 

wsStream-openStreamInlineParams

 

This section provides options for the Webservice method that will open a stream on the selected resource using a query based on in-line parameter values provided in the URL (i.e. a REST GET request)

Information-icon_16px All the parameters in the GET URL (after '?') are optional. Any combination can be used. If none are included, a stream spanning all records provided by the resource will be created.

 

Information-icon_16px This method is only available for REST services, as SOAP does not allow URL parameters.

 

 

Open Stream by Predicate

 

wsStream-openStreamPredicate

 

This section provides options for the Webservice method that will open a stream on the selected resource using a query based on a DTS Predicate object which will be included in the request body (i.e. a REST POST or SOAP request).

Information-icon_16px The Method Name serves as a URL element in the case of REST POST and as an actual method name for SOAP.

 

exclamation_mark_16px When configuring a SOAP method, the Method Name needs to be a valid Java method name.

 

Information-icon_16px The POST URL is only significant for REST, as SOAP methods are all accessed using the base endpoint URL.

 

 

Get Records From Stream

 

wsStream-getRecordsFromStream

 

This section provides options for the Webservice method that will request records from an open stream.

Information-icon_16px The Method Name serves as a URL element in the case of REST POST and as an actual method name for SOAP.

 

exclamation_mark_16px When configuring a SOAP method, the Method Name needs to be a valid Java method name.

 

Information-icon_16px The POST URL is only significant for REST, as SOAP methods are all accessed using the base endpoint URL.

 

Information-icon_16px The Method always has the same 2 parameters: stream_id and dts__size, which are fed inline for REST GET requests and within the body for SOAP requests. The stream_id parameter is mandatory, while dts__size is considered 1 if missing.

 

 

 

Get Records With Inline Parameters

 

wsStream-getRecordsInlineParams

 

This section provides options for the Webservice method that will execute a one-time query on the resource based on in-line parameter values provided in the URL (i.e. a REST GET request)

Information-icon_16px All the parameters in the GET URL (after '?') are optional. Any combination can be used. If none are included, the first [dts__size] records provided by the resource will be returned.

 

Information-icon_16px This method is only available for REST services, as SOAP does not allow URL parameters.

 

Information-icon_16px This method is equivalent to and a shortcut for opening a stream with the same parameters, making a records request of the desired size and closing the stream.

 

Information-icon_16px The dts__size parameter is always available (if not used, a single record will be requested).

 

 

 

Get Records by Predicate

 

wsStream-getRecordsPredicate

 

This section provides options for the Webservice method that will execute a one-time query on the selected resource based on a DTS Predicate object and a given size which will be included in the request body (i.e. a REST POST or SOAP request).

Information-icon_16px The Method Name serves as a URL element in the case of REST POST and as an actual method name for SOAP.

 

exclamation_mark_16px When configuring a SOAP method, the Method Name needs to be a valid Java method name.

 

Information-icon_16px The POST URL is only significant for REST, as SOAP methods are all accessed using the base endpoint URL.

 

Information-icon_16px This method is equivalent to and a shortcut for opening a stream with the same Predicate, making a records request of the desired size and closing the stream.

 

Information-icon_16px The size parameter is considered to be 1 if missing.

 

 

Get Record by Key

 

wsStream-getRecordsforKey

 

This section provides options for the Webservice method that will execute a one-time query on the selected resource and return the first record found. It should be configured to use a unique field.

Information-icon_16px One and only one field can be selected. If the resource has a declared primary key formed of a single field, it will be pre-selected.

 

Information-icon_16px This method is only available for REST services, as SOAP does not allow URL parameters.

 

Information-icon_16px This method is equivalent to and a shortcut for opening a stream with the key parameter, making a one record request and closing the stream.

 

 

Information-icon_16px To read more about the DTS URL format, see Webservice Access