다음을 통해 공유


Basic Page Operations

When you publish a page as a SOAP web service, it has a set of default operations that are exposed to consumers of the web service.

These operations match the actions a user can perform by interacting with a page using the RoleTailored client. The same page- and table-based business logic is executed.

The following table lists the operations and provides links to reference pages.

Pages that are backed by virtual tables are not editable through web services. When such pages are published as SOAP web services, the only operations that are available are Read, ReadMultiple, and IsUpdated.

The term entity that is used in the operation signatures describes the data type that is used. The actual entity is defined by the page that is exposed because it contains all controls that are defined on the page. The controls are normally bound to the page's source table. The entity also contains a key that is a special string that uniquely identifies the source table record with a timestamp. This key is used as an argument in many page operations.

All basic page operations are atomic, which means that either all relevant records are affected or no records are affected, even if there was a faulty condition in only one record.

Operation Description and signature

Create Operation

Creates a single record.

void Create(ref Entity entity)

CreateMultiple Operation

Creates a set of records.

void CreateMultiple(ref Entity[] entity)

Delete Operation

Deletes a single record.

bool Delete(string key)

Delete_<part> Operation

Deletes a subpage of the current page.

bool Delete_<part>(string key)

GetRecIdFromKey

Converts a key, which is always part of the page result, to a record ID.

string GetRecIdFromKey(string key)

IsUpdated Operation

Checks if an object has been updated since the key was obtained.

bool IsUpdated(string key)

Read Operation

Reads a single record.

Entity Read(string no)

ReadByRecId Operation

Reads the record that is identified by RecId. You can use GetRecIdFromKey to obtain a record ID. If the record is not found, then the operation returns null.

Entity ReadByRecId(string formattedRecId)

ReadMultiple Operation

Reads a filtered set of records, paged.

Entity [] ReadMultiple(Entity_Filter[] filterArray, string bookmarkKey, int setSize)

Update Operation

Updates a single record.

void Update(ref Entity entity)

UpdateMultiple Operation

Updates a set of records.

void UpdateMultiple(ref Entity[] entity)

See Also

Tasks

Walkthrough: Registering and Using a Page Web Service (SOAP)
Walkthrough: Creating a Web Service using Extension Codeunits (SOAP)