Samples Provided Outside the Toolkit
There are four other component samples provided outside the SDK toolkit itself.
UserList Sample (samples/component/webservices/userlist)
This is a simple sample that implements the SDK servlet UserList sample as a Web service. This sample simply enumerates all current WorldServer users.
No config.properties is required for this sample, and no special WorldServer test environment setup is required.
Translation Memory Sample (samples/component/webservices/tm)
This is a sample Web service object-manager for accessing WorldServer factory services that manage translation memory and translation group objects.
This demonstrates a Web-services manager using system SDK data transfer objects in a custom SDK Web service application.
For detailed instructions about the WorldServer test environment that is a prerequisite for running this sample, read its config.properties file.
Workflow Sample (samples/component/webservices/workflow)
This is a sample Web services project manager for managing project-groups, projects, and tasks. It demonstrates a Web-services subsystem using custom data transfer objects that wrap data obtained from system SDK data objects. WorldServer projects are created remotely, and their status is monitored until all tasks enter the translation step according to the test workflow.
This sample provides a setup Web method that creates and executes a project-group containing a specified number of projects and tasks. It includes a teardown Web method that cancels a running project-group, projects, and tasks. It relies on a simple translation test workflow.
For detailed instructions about the WorldServer test environment that is a prerequisite for running this sample, read its config.properties file.
WSDL Sample (samples/component/webservices/wsdl)
This is an SDK implementation of a pure custom Web service component using only WSDL dynamic invocation. It exposes WorldServer functionality via Web services in a standard way that can be accessed from anywhere using only the accompanying sdk-service.wsdl.
For instructions on how to build, deploy, and run this sample, see its readme.txt file.
> java samples.client.DynamicInvoker sdk-service.wsdl createProject 213840201 "WebServiceTest"
"Project for testing Web Service"
default French-France
/FileSystem/English-US/HTML/10/Overview.htm
"Simple Translation" 0 UnitTestCostModel0
createProjectReturn=
<b>Loading assets...</b>
Project created for locale
<i>French-France...</i>
<p><b>1 project was created.</b>
Project Group of ID 1065 was created.