Service


Click here for a complete list of operations.

getLastDataOfMeteoStation

This operation gets data of one of the meteo station listed by the 'getListOfMeteoStations' operation. The operation requires a code station as parameter and returns temperature (°C), precipitation (mm), wind velocity (m/s), wind direction (gN), global radiation (W/mq), relative umidity (%), snow depth (cm). Data refers to time period starting from yesterday at 0:00 to the time of last data collected today.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
codice:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /service.asmx HTTP/1.1
Host: dati.meteotrentino.it
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.meteotrentino.it/getLastDataOfMeteoStation"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getLastDataOfMeteoStation xmlns="http://www.meteotrentino.it/">
      <codice>string</codice>
    </getLastDataOfMeteoStation>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getLastDataOfMeteoStationResponse xmlns="http://www.meteotrentino.it/">
      <getLastDataOfMeteoStationResult>
        <temperature_list>
          <air_temperature UM="string">
            <date>string</date>
            <value>double</value>
          </air_temperature>
          <air_temperature UM="string">
            <date>string</date>
            <value>double</value>
          </air_temperature>
        </temperature_list>
        <precipitation_list>
          <precipitation UM="string">
            <date>string</date>
            <value>double</value>
          </precipitation>
          <precipitation UM="string">
            <date>string</date>
            <value>double</value>
          </precipitation>
        </precipitation_list>
        <wind_list>
          <wind10m UM_speed="string" UM_direction="string">
            <date>string</date>
            <speed_value>double</speed_value>
            <direction_value>double</direction_value>
          </wind10m>
          <wind10m UM_speed="string" UM_direction="string">
            <date>string</date>
            <speed_value>double</speed_value>
            <direction_value>double</direction_value>
          </wind10m>
        </wind_list>
        <global_radiation_list>
          <global_radiation UM="string">
            <date>string</date>
            <value>int</value>
          </global_radiation>
          <global_radiation UM="string">
            <date>string</date>
            <value>int</value>
          </global_radiation>
        </global_radiation_list>
        <relative_humidity_list>
          <relative_humidity UM="string">
            <date>string</date>
            <value>double</value>
          </relative_humidity>
          <relative_humidity UM="string">
            <date>string</date>
            <value>double</value>
          </relative_humidity>
        </relative_humidity_list>
        <snow_depth_list>
          <snow_depth UM="string">
            <date>string</date>
            <value>double</value>
          </snow_depth>
          <snow_depth UM="string">
            <date>string</date>
            <value>double</value>
          </snow_depth>
        </snow_depth_list>
      </getLastDataOfMeteoStationResult>
    </getLastDataOfMeteoStationResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /service.asmx HTTP/1.1
Host: dati.meteotrentino.it
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <getLastDataOfMeteoStation xmlns="http://www.meteotrentino.it/">
      <codice>string</codice>
    </getLastDataOfMeteoStation>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <getLastDataOfMeteoStationResponse xmlns="http://www.meteotrentino.it/">
      <getLastDataOfMeteoStationResult>
        <temperature_list>
          <air_temperature UM="string">
            <date>string</date>
            <value>double</value>
          </air_temperature>
          <air_temperature UM="string">
            <date>string</date>
            <value>double</value>
          </air_temperature>
        </temperature_list>
        <precipitation_list>
          <precipitation UM="string">
            <date>string</date>
            <value>double</value>
          </precipitation>
          <precipitation UM="string">
            <date>string</date>
            <value>double</value>
          </precipitation>
        </precipitation_list>
        <wind_list>
          <wind10m UM_speed="string" UM_direction="string">
            <date>string</date>
            <speed_value>double</speed_value>
            <direction_value>double</direction_value>
          </wind10m>
          <wind10m UM_speed="string" UM_direction="string">
            <date>string</date>
            <speed_value>double</speed_value>
            <direction_value>double</direction_value>
          </wind10m>
        </wind_list>
        <global_radiation_list>
          <global_radiation UM="string">
            <date>string</date>
            <value>int</value>
          </global_radiation>
          <global_radiation UM="string">
            <date>string</date>
            <value>int</value>
          </global_radiation>
        </global_radiation_list>
        <relative_humidity_list>
          <relative_humidity UM="string">
            <date>string</date>
            <value>double</value>
          </relative_humidity>
          <relative_humidity UM="string">
            <date>string</date>
            <value>double</value>
          </relative_humidity>
        </relative_humidity_list>
        <snow_depth_list>
          <snow_depth UM="string">
            <date>string</date>
            <value>double</value>
          </snow_depth>
          <snow_depth UM="string">
            <date>string</date>
            <value>double</value>
          </snow_depth>
        </snow_depth_list>
      </getLastDataOfMeteoStationResult>
    </getLastDataOfMeteoStationResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /service.asmx/getLastDataOfMeteoStation?codice=string HTTP/1.1
Host: dati.meteotrentino.it
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<lastData xmlns="http://www.meteotrentino.it/">
  <temperature_list>
    <air_temperature UM="string">
      <date>string</date>
      <value>double</value>
    </air_temperature>
    <air_temperature UM="string">
      <date>string</date>
      <value>double</value>
    </air_temperature>
  </temperature_list>
  <precipitation_list>
    <precipitation UM="string">
      <date>string</date>
      <value>double</value>
    </precipitation>
    <precipitation UM="string">
      <date>string</date>
      <value>double</value>
    </precipitation>
  </precipitation_list>
  <wind_list>
    <wind10m UM_speed="string" UM_direction="string">
      <date>string</date>
      <speed_value>double</speed_value>
      <direction_value>double</direction_value>
    </wind10m>
    <wind10m UM_speed="string" UM_direction="string">
      <date>string</date>
      <speed_value>double</speed_value>
      <direction_value>double</direction_value>
    </wind10m>
  </wind_list>
  <global_radiation_list>
    <global_radiation UM="string">
      <date>string</date>
      <value>int</value>
    </global_radiation>
    <global_radiation UM="string">
      <date>string</date>
      <value>int</value>
    </global_radiation>
  </global_radiation_list>
  <relative_humidity_list>
    <relative_humidity UM="string">
      <date>string</date>
      <value>double</value>
    </relative_humidity>
    <relative_humidity UM="string">
      <date>string</date>
      <value>double</value>
    </relative_humidity>
  </relative_humidity_list>
  <snow_depth_list>
    <snow_depth UM="string">
      <date>string</date>
      <value>double</value>
    </snow_depth>
    <snow_depth UM="string">
      <date>string</date>
      <value>double</value>
    </snow_depth>
  </snow_depth_list>
</lastData>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /service.asmx/getLastDataOfMeteoStation HTTP/1.1
Host: dati.meteotrentino.it
Content-Type: application/x-www-form-urlencoded
Content-Length: length

codice=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<lastData xmlns="http://www.meteotrentino.it/">
  <temperature_list>
    <air_temperature UM="string">
      <date>string</date>
      <value>double</value>
    </air_temperature>
    <air_temperature UM="string">
      <date>string</date>
      <value>double</value>
    </air_temperature>
  </temperature_list>
  <precipitation_list>
    <precipitation UM="string">
      <date>string</date>
      <value>double</value>
    </precipitation>
    <precipitation UM="string">
      <date>string</date>
      <value>double</value>
    </precipitation>
  </precipitation_list>
  <wind_list>
    <wind10m UM_speed="string" UM_direction="string">
      <date>string</date>
      <speed_value>double</speed_value>
      <direction_value>double</direction_value>
    </wind10m>
    <wind10m UM_speed="string" UM_direction="string">
      <date>string</date>
      <speed_value>double</speed_value>
      <direction_value>double</direction_value>
    </wind10m>
  </wind_list>
  <global_radiation_list>
    <global_radiation UM="string">
      <date>string</date>
      <value>int</value>
    </global_radiation>
    <global_radiation UM="string">
      <date>string</date>
      <value>int</value>
    </global_radiation>
  </global_radiation_list>
  <relative_humidity_list>
    <relative_humidity UM="string">
      <date>string</date>
      <value>double</value>
    </relative_humidity>
    <relative_humidity UM="string">
      <date>string</date>
      <value>double</value>
    </relative_humidity>
  </relative_humidity_list>
  <snow_depth_list>
    <snow_depth UM="string">
      <date>string</date>
      <value>double</value>
    </snow_depth>
    <snow_depth UM="string">
      <date>string</date>
      <value>double</value>
    </snow_depth>
  </snow_depth_list>
</lastData>