Each FME Server transformation service has a set of service-level request parameters, all prefixed with opt_. For details on the parameters, see FME Server Reference Manual.
The following example shows request parameters in a call to the Data Download service:
http://localhost/fmedatadownload/Samples/austinApartments.fmw?&opt_showresult=false&opt_servicemode=sync
The response format is controlled by the opt_responseformat parameter, depending on the service. Most services can return XML, json, or html, which can be parsed or displayed. Any other format should be saved or run in another application (for example, Google Earth for .kmz files).
Request: http://host/fmedatadownload/Samples/austinApartments.fmw?&opt_responseformat=xml
<serviceResponse>
<statusInfo>
<mode>sync</mode>
<status>success</status>
</statusInfo>
<fmeTransformationResult>
<fmeServerResponse>
<id>122</id>
<jobStatus>SUCCESS</jobStatus>
<result>
0:Translation Successful|OutputLocation=C:\apps\FMEServer\DefaultResults\FME_37636513_1353443755663_5092|ResultRootDir=/fmedatadownload/results|NumFeaturesOutput=49|LogFileName=datadownload/FME_37636513_1353443755663_5092.log
</result>
<resultSuccess>true</resultSuccess>
<serviceMsg/>
<serviceSuccess>true</serviceSuccess>
<timeStarted>2012-11-20 12:35:55</timeStarted>
<timeFinished>2012-11-20 12:35:57</timeFinished>
<requesterResultPort>51874</requesterResultPort>
<requesterHost>servertest1</requesterHost>
<request>
"Samples/austinApartments/austinApartments.fmw" -XML_PARAMETER <?xml version="1.0" encoding="UTF-8"?> <TRANSFORMATION_REQUEST><FME_DIRECTIVE name="OGCKML_1_DATASET">!FME_AUTO_DIR_NAME!\austinApartments.kml</FME_DIRECTIVE></TRANSFORMATION_REQUEST> --FME_SECURITY_USER "admin" --FME_SECURITY_ROLES "fmeadmin fmesuperuser"
</request>
<requestKeyword>FILE_DOWNLOAD_SERVICE</requestKeyword>
<priority>100</priority>
<description/>
</fmeServerResponse>
<fmeEngineResponse>
<statusNumber>0</statusNumber>
<statusMessage>Translation Successful</statusMessage>
<OutputLocation>
C:\apps\FMEServer\DefaultResults\FME_37636513_1353443755663_5092
</OutputLocation>
<ResultRootDir>/fmedatadownload/results</ResultRootDir>
<NumFeaturesOutput>49</NumFeaturesOutput>
<LogFileName>datadownload/FME_37636513_1353443755663_5092.log</LogFileName>
</fmeEngineResponse>
</fmeTransformationResult>
<jobID>122</jobID>
<url>
http://host/fmedatadownload/results/FME_37636513_1353443755663_5092.zip
</url>
</serviceResponse>
Request: http://host/fmedatadownload/Samples/austinApartments.fmw?&opt_responseformat=json
{"serviceResponse": {
"statusInfo": {
"mode": "sync",
"status": "success"
},
"fmeTransformationResult": {
"fmeServerResponse": {
"id": "123",
"jobStatus": "SUCCESS",
"result": "0:Translation Successful|OutputLocation=C:\\apps\\FMEServer\\DefaultResults\\FME_37636513_1353443874364_4628|ResultRootDir=/fmedatadownload/results|NumFeaturesOutput=49|LogFileName=datadownload/FME_37636513_1353443874364_4628.log",
"resultSuccess": "true",
"serviceMsg": "",
"serviceSuccess": "true",
"timeStarted": "2012-11-20 12:37:54",
"timeFinished": "2012-11-20 12:37:55",
"requesterResultPort": "51880",
"requesterHost": "servertest1",
"request": "\"Samples/austinApartments/austinApartments.fmw\" -XML_PARAMETER <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<TRANSFORMATION_REQUEST><FME_DIRECTIVE name=\"OGCKML_1_DATASET\">!FME_AUTO_DIR_NAME!\\austinApartments.kml<\/FME_DIRECTIVE><\/TRANSFORMATION_REQUEST> --FME_SECURITY_USER \"admin\" --FME_SECURITY_ROLES \"fmeadmin fmesuperuser\"",
"requestKeyword": "FILE_DOWNLOAD_SERVICE",
"priority": "100",
"description": ""
},
"fmeEngineResponse": {
"statusNumber": "0",
"statusMessage": "Translation Successful",
"outputLocation": "C:\\apps\\FMEServer\\DefaultResults\\FME_37636513_1353443874364_4628",
"resultRootDir": "/fmedatadownload/results",
"numFeaturesOutput": "49",
"logFileName": "datadownload/FME_37636513_1353443874364_4628.log"
}
},
"jobID": 123,
"url": "http://host/fmedatadownload/results/FME_37636513_1353443874364_4628.zip"
}}