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


Click here for a complete list of operations.

GetWaterHistory

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/GetWaterHistory"

<?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>
    <GetWaterHistory xmlns="http://tempuri.org/">
      <Code>string</Code>
    </GetWaterHistory>
  </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>
    <GetWaterHistoryResponse xmlns="http://tempuri.org/">
      <WaterHistoryData>
        <Items>
          <item>
            <id>int</id>
            <code>string</code>
            <site_time>string</site_time>
            <wl_in />
            <wl_out01>string</wl_out01>
            <wl_out02>string</wl_out02>
          </item>
          <item>
            <id>int</id>
            <code>string</code>
            <site_time>string</site_time>
            <wl_in />
            <wl_out01>string</wl_out01>
            <wl_out02>string</wl_out02>
          </item>
        </Items>
        <error>string</error>
      </WaterHistoryData>
    </GetWaterHistoryResponse>
  </soap:Body>
</soap:Envelope>