DDSBMA Data Exchange System:ระบบเผยแพร่ แลกเปลี่ยนข้อมูลกลางสำนักการระบายน้ำ กทม.
Click here for a complete list of operations.
GetRainLastData
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/GetRainLastData"
<?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>
<GetRainLastData 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>
<GetRainLastDataResponse xmlns="http://tempuri.org/">
<RainLastData>
<Items>
<item>
<code>string</code>
<site_time>dateTime</site_time>
<rf5min>float</rf5min>
<rf15min>float</rf15min>
<rf30min>float</rf30min>
<rf1hr>float</rf1hr>
<rf3hr>float</rf3hr>
<rf6hr>float</rf6hr>
<rf12rh>float</rf12rh>
<rf24rh>float</rf24rh>
</item>
<item>
<code>string</code>
<site_time>dateTime</site_time>
<rf5min>float</rf5min>
<rf15min>float</rf15min>
<rf30min>float</rf30min>
<rf1hr>float</rf1hr>
<rf3hr>float</rf3hr>
<rf6hr>float</rf6hr>
<rf12rh>float</rf12rh>
<rf24rh>float</rf24rh>
</item>
</Items>
<error>string</error>
</RainLastData>
</GetRainLastDataResponse>
</soap:Body>
</soap:Envelope>