DirectPost


전체 작업 목록을 보려면 여기를 클릭하십시오.

Get5PostAddressByRoad

종류 : 도로명주소
설명 : 시도, 도로명을 입력 받아 해당하는 모든 우편번호(5자리), 주소 스트링 배열로 반환합니다.
          반환되는 스트링의 우편번호와 주소는 탭으로 구분됩니다.
선언문 : string[] Get5PostAddressByRoad(string sido, string Road)

테스트

HTTP POST 프로토콜을 사용하여 작업을 테스트하려면 [호출] 단추를 클릭하십시오.
매개 변수
sido:
Road:

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

<?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>
    <Get5PostAddressByRoad xmlns="http://webservice.direct.co.kr/post1.x/">
      <sido>string</sido>
      <Road>string</Road>
    </Get5PostAddressByRoad>
  </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>
    <Get5PostAddressByRoadResponse xmlns="http://webservice.direct.co.kr/post1.x/">
      <Get5PostAddressByRoadResult>
        <string>string</string>
        <string>string</string>
      </Get5PostAddressByRoadResult>
    </Get5PostAddressByRoadResponse>
  </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>
    <Get5PostAddressByRoad xmlns="http://webservice.direct.co.kr/post1.x/">
      <sido>string</sido>
      <Road>string</Road>
    </Get5PostAddressByRoad>
  </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>
    <Get5PostAddressByRoadResponse xmlns="http://webservice.direct.co.kr/post1.x/">
      <Get5PostAddressByRoadResult>
        <string>string</string>
        <string>string</string>
      </Get5PostAddressByRoadResult>
    </Get5PostAddressByRoadResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

다음은 샘플 HTTP GET 요청 및 응답입니다. 표시된 placeholders를 실제 값으로 바꾸어야 합니다.

GET /Post1.x/Post.asmx/Get5PostAddressByRoad?sido=string&Road=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/Get5PostAddressByRoad HTTP/1.1
Host: webservice.direct.co.kr
Content-Type: application/x-www-form-urlencoded
Content-Length: length

sido=string&Road=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>