You are here: Reference Manual > FME Server Services > Transformation Services > Data Streaming Service

Data Streaming Service

The Data Streaming service accepts and carries out transformation requests as specified by a workspace, returning the results as a data stream, instead of providing a link to it.

此服务为各种客户端提供数据馈送,例如Geors,Geojson,GML和KML等格式。MIME类型标题随时随地返回数据。

Note:You must install this service if you are also installing theKML Network Link service.

为数据流服务请求URL or form requests. For example:

http:///fmedatastreaming//.fmw?

The resulting dataset is one file only. After the translation has finished, this dataset is streamed with the appropriate content-type (mime-type) over HTTP back to the client making the request. For example, a web browser or Google Earth are clients that could make the request.

The数据上传服务works in conjunction with theData Download,数据流,和职位提交者上传文件的服务。

Requirements

The streaming service can accept workspaces that write single or multiple files. If the output contains more than one file, the service creates and streams a zip file containing all output files. No published parameters are required.

Note:Output can include workspaces that write HTML, PNG, KML, GeoRSS, GeoJSON, PDF, and others.

Service Specific Request Parameters

Name

Value

Description

opt_responseformat

XML |杰森
Default: xml

Defines the language of the response. The text must be all lowercase.

opt_geturl The URL to a dataset The URL of the source dataset to be used for transformation
opt_showresult. true | false 它指示来自这三个服务的XML / JSON响应是否包括FME转换结果。如果不存在此参数,则默认值为true。

Using Remote Data During a Request

Using data from HTTP POST body as Reader dataset

This web service can receive data and override source dataset via HTTP POST. The content of the POST request body will be saved to a temporary file which will be used as the Reader dataset of the workspace. If there is more than one reader in the workspace, then you will need to indicate which reader will use the temporary file. You indicate your choice when publishing the workspace by editing the service registration.

使用来自HTTP的数据作为读者数据集

此Web服务可以通过HTTP GET接收数据和覆盖读取器数据集。数据集应指定为URL并通过“opt_geturl”参数传递给服务。支持HTTP和FTP URL。如果工作空间中有多个读者,则需要指示哪些读者将使用临时文件。通过编辑服务注册,您可以在发布工作空间时表示您的选择。

For example here is a service request that uses a remote KMZ dataset:

http://localhost/fmedatastrameing/test/viewer.fmw?opt_geturl = http://data.vancouver.ca/download/kml/elementary_school_boundaries.kmz

Response Elements

如果响应格式指定为XML或JSON,则服务故障响应可能包含下表中所示的元素。

Element

Child Elements

Value

Description

statusInfo

信息

信息string

service failure message

status

success | failure

service status

fmeTransformationResult

fmeServerResponse

FME Server response properties

FME Server response

fmeEngineResponse

FME引擎响应属性

FME Engine response

See Also