DDSBMA Data Exchange System:ระบบเผยแพร่ แลกเปลี่ยนข้อมูลกลางสำนักการระบายน้ำ กทม.


Click here for a complete list of operations.

GetWeatherToday

Test

The test form is only available for requests from the local machine.

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 /WSS_DDSDXS.asmx HTTP/1.1
Host: p2-doeb-dxg-api.nidpro.tech
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetWeatherToday"

<?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:Header>
    <AuthHeader xmlns="http://tempuri.org/">
      <Username>string</Username>
      <Password>string</Password>
    </AuthHeader>
  </soap:Header>
  <soap:Body>
    <GetWeatherToday xmlns="http://tempuri.org/" />
  </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>
    <GetWeatherTodayResponse xmlns="http://tempuri.org/">
      <GetWeatherTodayResult>
        <Header>
          <Title>string</Title>
          <Description>string</Description>
          <Uri>string</Uri>
          <LastBuildDate>string</LastBuildDate>
          <CopyRight>string</CopyRight>
          <Generator>string</Generator>
          <status>string</status>
        </Header>
        <Stations>
          <Station>
            <WmoStationNumber>unsignedShort</WmoStationNumber>
            <StationNameThai>string</StationNameThai>
            <StationNameEnglish>string</StationNameEnglish>
            <Province>string</Province>
            <Latitude xsi:nil="true" />
            <Longitude xsi:nil="true" />
            <Observation xsi:nil="true" />
          </Station>
          <Station>
            <WmoStationNumber>unsignedShort</WmoStationNumber>
            <StationNameThai>string</StationNameThai>
            <StationNameEnglish>string</StationNameEnglish>
            <Province>string</Province>
            <Latitude xsi:nil="true" />
            <Longitude xsi:nil="true" />
            <Observation xsi:nil="true" />
          </Station>
        </Stations>
      </GetWeatherTodayResult>
    </GetWeatherTodayResponse>
  </soap:Body>
</soap:Envelope>