
----
h1. caCORE SDK 4.2 Data Service Style
----
{cagridtoc:exclude=exclude=caCORE SDK 4.2 Data Service Style}
h1. Obtaining the Data Service Style
----
The caCORE SDK 4.2 data service style for caGrid 1.3 is provided as an update to the Introduce toolkit. Future versions of caGrid will include this style directly and will not require an update to utilize it.
In the Introduce UI, click Help and choose Introduce Software Update
{attached-image:attachmentname=Select Update.png|tablealign=center}
Click the button to look for updates, and select the option "Data Services support for caCORE SDK 4.2 (1.3.0.2)" from the tree of available updates.
{attached-image:attachmentname=Update Style.png|tablealign=center}
Click Next to install the style, and then Finish to restart Introduce.
h1. Getting Started
----
The style is invoked when a [grid data service|dataservices:] is created in [Introduce|introduce:Home]. After the initial service creation screen has been completed, the data service creation dialog will appear. To get started with the style, select "caCORE SDK v 4.2" from the Style drop-down menu.
{attached-image:attachmentname=Step 0.png|tablealign=center}
h1. The Creation Wizard
----
The caCORE SDK 4.2 style provides a wizard-like interface with multiple steps which prompt the service developer for information required to create and configure the data service to use a caCORE SDK system.
h3. Selecting the caCORE Application API and client directory
The first page of the wizard requires the service developer to specify the name of their caCORE SDK generated application and select the appropriate client directory for the API type to be used.
{attached-image:attachmentname=Step 1.png|tablealign=center}
If the local Application Service API will be used, choose the "Local API" radio button, and browse to the local-client directory generated by the caCORE SDK project build process. Typically, this will be found at *<application-dir>\target\dist\exploded\output\example\package\local-client*.
If the remote API is to be used, choose the "Remote API" radio button, and select the remote-client directory for the project. Typically, this will be found at *<application-dir>\target\dist\exploded\output\example\package\remote-client*. Additionally, the developer must specify the hostname of the machine running the caCORE SDK remote API and the port number on which that service listens. If the remote service uses HTTPS, check the box to use HTTPS for connections.
Click *Next: Security* to continue.
h3. Specify security options
The next page of the wizard allows the service developer to specify what security options should be used when the data service connects to the caCORE SDK application.
{attached-image:tablealign=center|attachmentname=Step 2.png}
The service developer may _optionally_ specify one of the following type of application service security.
h5. Pass Grid Identity to CSM _(Local API Only)_
If the service developer selected the Local API on the previous page, an option is available to pass client's grid identity through to the caCORE SDK Application for authorization against CSM. *In this case, the data service must be deployed to a secure container and the service configured to use TLS* so that clients connecting to it will have a valid caller identity which can be passed along.
h5. Static Login
The developer may specify a static username and password which will always be used when connecting to the caCORE SDK application service. This login will be used for all connections to the application regardless of caller ID, and does not require the data service to be deployed to a secure container. This option is available for both local and remote API interaction with the application service.
Click *Next: Domain Model* to continue.