Access Keys:
Skip to content (Access Key - 0)

Create and Modify the Service Skeleton


Table of Contents

caCORE Datatype Mapping Extension


Since the release of caGrid, various users have requested the ability to use types from caCORE-SDK generated schemas in their analytical service. A new community project, caCORE Datatype Mapping Extension, was created to address this need.

We'll be using this extension as part of this tutorial and have already installed it in the hackathon setup. If you're interested in learning more about it, you can obtain more information about it on the caGrid Wiki at: caCORE Datatype Mapping Extension Home

Create the Service Skeleton


This phase of this tutorial involves starting the Introduce toolkit and using it to create the skeleton of the new grid service.

Open a Windows Command Prompt

  1. Click Start->Run and type cmd, then press the Enter key
  2. Change directory to the caGrid Installer:

    %> cd c:\hackathon\caGrid

  3. Start Introduce using the provided Ant task:

    %> ant introduce

Once Introduce has been started, we can begin to create the service skeleton.

Create the Service Skeleton

  1. Click the Create Service Skeleton button on the toolbar at the top of the Introduce portal. The Create caGrid Service Skeleton screen will appear (see right).
  2. Type the following as your service directory C:\hackathon\PhotoSharing.
  3. Type PhotoSharing in the Service Name field.
  4. Type org.cagrid.demo.photosharing in the Package Name field.
  5. Verify that the Namespace field contains http://photosharing.demo.cagrid.org/PhotoSharing.
  6. Click the Create button.

Add caCORE Data Types


Now that we have created the service skeleton, we want to modify the service. The Modify Service Interface for our PhotoSharing service will open automatically once Introduce finishes creating the skeleton. The first step in modifying our service will be to add caCORE Data Types.

  1. Click the Types tab
  2. Select the caCORE SDK tab in the Import Data Types section
  3. Select caCORE SDK v4.1 from the caCORE SDK Version drop down.
  4. Set C:\hackathon\caCORE_SDK_411 to the caCORE SDK directory.
  5. Click the Add button

Add Gallery Service Context


Next, we will add a gallery service context.

  1. Click the Services tab.
  2. Click Services element in the Services box.
  3. Click Add Service Context.

Modify the Gallery Service Context


Modify the gallery service context:

  1. Set Gallery to Service Name
  2. Set "http://photosharing.demo.cagrid.org/PhotoSharing/Gallery" to Namespace.
  3. Set org.cagrid.demo.photosharing.gallery to Package Name.
  4. Uncheck secure in the Resource Framework Options

Configure Secure Communications


Modify the Security of the Gallery Service Context:

  1. Click the Security tab
  2. Click Custom option
  3. Check the Transport Layer Security option

Authorization Mechanism


Change the Authorization Mechanism:

  1. Select the Authorization tab
  2. Select Enforce Authentication from the Authorization Mechanism drop down box.
  3. Click the Done button

Save Your Service


Save Your Service!

Remember to save your service. Introduce will allow you to roll back to a save point. This can be very useful in the event that you run into problems.

Click the Save button at the bottom of the "Modify Service Interface"

Modify the Main Service Context


We will enable secure access to your service via Introduce.

  1. Click the Services tab.
  2. Select PhotoSharing.
  3. Click Modify Service

Authentication Requirements


Add authentication requirements.

  1. Click the Security tab.
  2. Select Custom.
  3. Check Transport Layer Security

Authorization Mechanism


Change the Authorization Mechanism:

  1. Select the Authorization tab
  2. Select Enforce Authentication from the Authorization Mechanism drop down box.
  3. Click the Done button

Save Your Service


Save Your Service Again!

Remember to save your service again. Introduce will allow you to roll back to a save point. This can be very useful in the event that you run into problems.

Click the Save button at the bottom of the "Modify Service Interface"

Last edited by Sarah Honacki (363 days ago)
Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license