You are here: Reference Manual > FME Server Services > Transformation Services > Job Submitter Service > Examples

Examples

Example 1

A Job Submitter service request with one published parameters that specifies XML as the response format.

Request

http://localhost/fmejobsubmitter/Samples/austinDownload.fmw?THEMES=railroad&opt_responseformat=xml

Response

<?xml version="1.0" encoding="ISO-8859-1" ?>

<serviceResponse>

<!-- Service Status Info -->

<statusInfo>

<status>success</status>

<mode>sync</mode>

</statusInfo>

 

<!-- Service Return -->

<fmeTransformationResult>

<fmeEngineResponse>...</fmeEngineResponse>

<fmeServerResponse>...</fmeServerResponse>

</fmeTransformationResult>

<jobID>53</jobID>

</serviceResponse>

Example 2

A Job Submitter service request that specifies the service mode as async, requester’s e-mail address, and JSON as the response format.

Request

http://localhost/fmejobsubmitter/Samples/austinDownload.fmw?opt_servicemode=async&opt_requesteremail=joe@safe.com&opt_responseformat=xml

Response

{"serviceResponse": {

"email": "someone@safe.com",

"jobID": 15,

"statusInfo": {

"mode": "async",

"status": "success"

}

}}

Example 3

Specifying the Notification Service topic to notify when a job succeeds or fails, respectively.

http://localhost/fmejobsubmitter/Samples/austinDownload.fmw?&nm_jobsuccess_topic=JOBSUBMITTER_ASYNC_JOB_SUCCESS&nm_jobfailure_topic=JOBSUBMITTER_ASYNC_JOB_FAILURE

See Also