## Sakai IMS Tool Interoperability Test Environment

*** This is not a supported part of any Sakai release - it is just included here for convenence for developers who want to test IMS Tool Interoperability ***.

The basic idea of this is to provide some source code to interact with IMS Tool Interoperability in PHP - to come up with some simple tests to make it easier to develop TI tools and experiment with TI with less overhead than in Java.

## What makes this all work?

Here are the files in this package

- log.txt
  This is a log that DoLaunchRequest and DoOutcomeRequest write to while they are operating. It is nice to tail this log while debugging - you can press refresh and go to the bottom in a browser but that is kind of weak. You can reset the log.
- Sakai-Test-IMSTI.xml
  A tool descriptor that points back to this service. If you want to run this on your own computer, you will need to modify the ServiceLocation tag in this file to point to something like "http://localhost/~csev/imsti-test/DoLaunchRequest.php". Make sure to save this as a file or view source - because most browsers do not react well to raw XML.
- TIRLaunchSyncSingle.wsdl
  This is the WSDL for the Launch Request. You can also get this from DoLaunchRequest.
- TIROutcomeSyncSingle.wsdl
  This is the WSDL for the Outcome Request. You can also get this from DoOutComeRequest..

This package can be used online or it can be used on your own computer so you can do simple loopback tests without a network connection.

And since part of the goals of TI are to empower non-Java developers - this code is a step in that direction. There are some notes here that detail some difficulties with nusoap. This code should *not* be thought of as a reference implementation - at least not in its current state. This is some technology to play with and provides a convienent endpoint to experiment with IMS TI inside of Sakai. It is not a bad set of samples using WSDL with nusoap although I am not an expert here.

## Using this in Sakai to test IMS Tool Interoperability

These are the steps to using this in Sakai to test IMSTI.

- Download the launch descriptor and save it to your computer.
- Add the IMS TI Tool to your site (assuming you have it checked out and compiled)
- Navigate to the IMS TI Tool and press new
- Give the tool a name, and selectthe launch file you downloaded above and press Upload
- When Sakai says "The new ToolInstance has been saved." press Continue.
- On the two detail screens press Continue.
- When you see a Launch button - press it!
- You should see some output that looks like this:

      Welcome to EndpointTool.php
      This is the actual running tool.

      SiteId= a78e0f1f-08e7-48c2-0011-01461b356193
      LaunchIdentifier= be17eb4d-5c0e-4c1f-8035-5ced075790ab
      Role= admin
      EID= csev
      Userid= 5d379004-9917-422d-0006-ab401d0e0933
      FirstName=
      LastName=

Congratulations!

## Getting this Software

Download from http://www-personal.umich.edu/~csev/sakai/imsti/

You can then adapt this source code if you are doing PHP, or imitate it for languages like perl, ruby, etc. There is a README.txt.

/Chuck Thu Feb 22 18:45:52 EST 2007