You are here: Reference Manual > FME Server Web Services > Transformation Services > KML Network Link Service > Examples

Examples

Example 1

A KML Network Link request with a success response in the KML format.

Request

http://localhost/fmekmllink/Samples/austinApartments.fmw

Response

<?xml version="1.0" encoding="UTF-8" ?>

<kml xmlns="http://earth.google.com/kml/2.1">

<NetworkLink>

<name>KML Link Translation: austinApartments.fmw</name>

<visibility>0</visibility>

<description>A KML Link document processed by FME Server</description>

<Link>

<viewRefreshMode>onRegion</viewRefreshMode>

<viewRefreshTime>7</viewRefreshTime>

<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</viewFormat>

<href>http://SHOCKWAVE:8080/fmedatastreaming/Samples/austinApartments.fmw</href>

<refreshMode>onInterval</refreshMode>

<refreshInterval>60</refreshInterval>

</Link>

</NetworkLink>

</kml>

Example 2

A KML Network Link request with a failure response in the XML format:

Request

http://localhost/fmekmllink/Samples/austinApartments2.fmw?opt_responseformat=xml

Response

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

<serviceResponse>

<statusInfo>

<message>Workspace 'austinApartments2.fmw' does not exist.</message>

<status>failure</status>

</statusInfo>

</serviceResponse>

Example 3

A KML Network Link request with a failure response in the JSON format:

Request

http://localhost/fmekmllink/Samples/austinApartments2.fmw?opt_responseformat=json

Response

{"serviceResponse": {"statusInfo": {

"message": "Workspace 'austinApartments2.fmw' does not exist.",

"status": "failure"

}}}

See Also