Bind the attributes and operations of a REST (Representational State Transfer) Web service to a mobile business object.
Field | Action |
---|---|
Data source type | REST Web Service |
Connection profile | Select the REST Web Service connection profile to which you are binding your mobile business object attributes. If the required data source is not in the list, click Create to define a new connection profile. |
The base URL was defined in the connection profile, and is shown (read-only) in the definition page for attributes or operations.
{paramName(xsdType)}For example, '/getCustomer/{id(int)}'. A string datatype is used if you do not explicitly specify the datatype. You can also specify support of nullable for the parameter as: '/getCustomer/{id(int?)}'. These datatypes can be specified in the URI template and are case-sensitive:
Tab | Description |
---|---|
Representation – allows you to specify the request or response representation |
Select Edit to specify the XML schema for a request or response representation, instead of referencing an existing representation:
Only one XSD can be defined for a given representation.
Define XSLT manually – for response representation, after the XSD definition and root element was specified, Unwired WorkSpace automatically generates a default XSLT for the response representation. You can open the XSLT editing dialog to modify the XSLT. Modifying multi-XSLTs for one response representation to support commingled MBOs is also supported. All available XSLT definitions are listed in the table in the XSD definition dialog:
Select OK to save your definition and exit the dialog. |
Authentication |
Supports HTTP Basic Authentication:
The user name and password fields can be entered directly, retrieved from a personalization key, or by selecting New key and creating a new personalization key. |
HTTP header | Captures all properties needed to execute or manage the REST Web Service. You can enter the existing HTTP header as defined in the HTTP specification, or declare your own HTTP header.
For each element of the HTTP header you can:
|
Click Next or Finish when done.