Examples of the Outgoing XML Format
Examples of the XML documents generated and sent by the XML Gateway to the external system are presented in the following table. These examples are based on the Siebel eScript example in Custom Business Service Examples. See DTDs for XML Gateway Business Service for examples of the DTDs that correspond to each of these methods.
Method | Format of the XML Stream | Description |
---|---|---|
Delete Request |
|
siebel-xmlext-delete-req This tag requests removal of a single record in the remote system. |
Init Request |
|
This tag fetches the list of fields supported by this instance.
The business component ID.
The remote source from which the service is to retrieve data for the business component. |
Insert Request |
|
siebel-xmlext-insert-req This tag requests the commit of a new record in the remote system. The insert-req XML stream contains values for fields entered through the business component. |
PreInsert Request |
|
siebel-xmlext-preinsert-req This tag allows the connector to provide default values. This operation is called when a new row is created, but before any values are entered through the business component interface. |
Query Request |
|
This tag queries by example. The query-req XML stream contains parameters necessary to set up the query. In this example, the query requests that record information be returned from the remote system.
Maximum number of rows to be returned. The value is the Maximum Cursor Size defined at the VBC plus one. If the Maximum Cursor Size property is not defined at the VBC, then the max-rows property is not passed.
The search specification used to query and filter the information.
Hierarchical representation of the search-string. For information, see Search-Spec Node-Type Values.
List of sort fields and sort order. Note: In some cases
you might retrieve external data for display in a child list applet,
using a link to a parent business component. If the parent business
component field on which the link is based is empty, then the query
request is sent without a search-spec tag, but instead with the following
tag: match field=" Child BC Fieldname"/> |
Update Request |
<value changed="false"
field="Name">Max Adams</value>
|
siebel-xmlext-update-req This tag requests changes to the field values for an existing row. All values for the record are passed with the value tags, and with the changed attribute identifying the ones that have been changed through the Siebel application. |