DirectPost
전체 작업 목록을 보려면 여기를 클릭하십시오.
GetPostBySidoGugun
종류 : 지번주소
설명 : 특정 시/도와 구/군을 입력 받아 해당하는 모든 우편번호(6자리)와 주소를 스트링 배열로 반환합니다.
반환되는 스트링의 우편번호와 주소는 탭으로 구분됩니다.
선언문 : string[] GetPostBySidoGugun(string Sido, string Gugun)
테스트
HTTP POST 프로토콜을 사용하여 작업을 테스트하려면 [호출] 단추를 클릭하십시오.SOAP 1.1
다음은 샘플 SOAP 1.1 요청 및 응답입니다. 표시된 placeholders는 실제 값으로 바꿔야 합니다.
POST /Post1.x/Post.asmx HTTP/1.1
Host: webservice.direct.co.kr
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservice.direct.co.kr/post1.x/GetPostBySidoGugun"
<?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>
<GetPostBySidoGugun xmlns="http://webservice.direct.co.kr/post1.x/">
<Sido>string</Sido>
<Gugun>string</Gugun>
</GetPostBySidoGugun>
</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>
<GetPostBySidoGugunResponse xmlns="http://webservice.direct.co.kr/post1.x/">
<GetPostBySidoGugunResult>
<string>string</string>
<string>string</string>
</GetPostBySidoGugunResult>
</GetPostBySidoGugunResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
다음은 샘플 SOAP 1.2 요청 및 응답입니다. 표시된 placeholders는 실제 값으로 바꿔야 합니다.
POST /Post1.x/Post.asmx HTTP/1.1
Host: webservice.direct.co.kr
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>
<GetPostBySidoGugun xmlns="http://webservice.direct.co.kr/post1.x/">
<Sido>string</Sido>
<Gugun>string</Gugun>
</GetPostBySidoGugun>
</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>
<GetPostBySidoGugunResponse xmlns="http://webservice.direct.co.kr/post1.x/">
<GetPostBySidoGugunResult>
<string>string</string>
<string>string</string>
</GetPostBySidoGugunResult>
</GetPostBySidoGugunResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
다음은 샘플 HTTP GET 요청 및 응답입니다. 표시된 placeholders를 실제 값으로 바꾸어야 합니다.
GET /Post1.x/Post.asmx/GetPostBySidoGugun?Sido=string&Gugun=string HTTP/1.1 Host: webservice.direct.co.kr
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ArrayOfString xmlns="http://webservice.direct.co.kr/post1.x/"> <string>string</string> <string>string</string> </ArrayOfString>
HTTP POST
다음은 샘플 HTTP POST 요청 및 응답입니다. 표시된 placeholders를 실제 값으로 바꾸어야 합니다.
POST /Post1.x/Post.asmx/GetPostBySidoGugun HTTP/1.1 Host: webservice.direct.co.kr Content-Type: application/x-www-form-urlencoded Content-Length: length Sido=string&Gugun=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ArrayOfString xmlns="http://webservice.direct.co.kr/post1.x/"> <string>string</string> <string>string</string> </ArrayOfString>