2009. 4. 22. 14:07

ServerXMLHTTP

ServerXMLHTTP 를 이용하면 다슬 서버 간의 XML 데이터를 교환할 수 있습니다.


만약 웹페이지에서 다음과 같은 오류가 발생한다면..
msxml3.dll 오류 '80072efd'

A connection with the server could not be established

/new/board/write_process.asp, 줄 34
습니다.


ServerXMLHTTP의 모듈이 없어서 일수 도 있으며, 만약 있다면 방화벽에서 outbound 80 포트가 막혀서 일수도 있습니다.

해당 소스를 확인하겠습니다.
(소스상의 http://test.net 에 대해서 outbound 80 포트를 오픈)

<%
    DIM xml
    DIM res

    set xml = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
    xml.open "POST","http://test.net/service_test.php?id1=TEST&id2=2222", false
    xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    xml.send
    res = xml.responseText
    Set xml = Nothing
    Response.Write res
%>



ServerXMLHTTP는 Microsoft XML Parser(MSXML) 버전 3.0 이상에 포함되어 있습니다. MSXML 3.0은 다음 MSDN(Microsoft Developer Network) 웹 사이트에서 다운로드하여 설치할 수 있습니다.