C# Class NSoft.NFramework.Networks.XmlHttpTool

XML 형식의 정보를 HTTP Protocol을 통해 통신 할 때 사용되는 Utility class.
Afficher le fichier Open project: debop/NFramework

Méthodes publiques

Méthode Description
GetText ( string uri, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : string

HTTP GET 방식으로 서버로부터 XML 정보를 얻는다.

GetXml ( string uri, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : XmlDocument

HTTP Get 방식으로 응답을 받아 XmlDocument 의 인스턴스로 빌드하여 반환한다.

PostText ( string uri, string payload, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : string

HTTP Post 방식으로 응답을 받아 문자열로 반환한다.

PostXml ( string uri, XmlDocument document, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : XmlDocument

HTTP POST 방식으로 응답을 받아 XmlDocument 의 인스턴스로 빌드하여 반환한다.

Send ( string uri, XmlDoc document, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : XmlDoc

RealWeb XML HTTP 통신 모듈 설정이다.

Method Details

GetText() public static méthode

HTTP GET 방식으로 서버로부터 XML 정보를 얻는다.
public static GetText ( string uri, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : string
uri string 서버 주소
isAsync bool 비동기 여부
timeoutMilliseconds int 통신 Timeout (단위: milliseconds)
userId string 계정 Id
password string 계정 비밀번호
Résultat string

GetXml() public static méthode

HTTP Get 방식으로 응답을 받아 XmlDocument 의 인스턴스로 빌드하여 반환한다.
public static GetXml ( string uri, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : XmlDocument
uri string 응답받을 서버 주소
isAsync bool 비동기 여부
timeoutMilliseconds int 통신 Timeout
userId string 계정 Id
password string 계정 비밀번호
Résultat System.Xml.XmlDocument

PostText() public static méthode

HTTP Post 방식으로 응답을 받아 문자열로 반환한다.
public static PostText ( string uri, string payload, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : string
uri string 응답받을 서버 주소
payload string 응답 요청시의 Parameter 정보
isAsync bool 비동기 여부
timeoutMilliseconds int 통신 Timeout
userId string 계정 Id
password string 계정 비밀번호
Résultat string

PostXml() public static méthode

HTTP POST 방식으로 응답을 받아 XmlDocument 의 인스턴스로 빌드하여 반환한다.
public static PostXml ( string uri, XmlDocument document, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : XmlDocument
uri string 응답받을 서버 주소
document System.Xml.XmlDocument 응답 요청시의 Form Parameter 정보
isAsync bool 비동기 여부
timeoutMilliseconds int 통신 Timeout
userId string 계정 Id
password string 계정 비밀번호
Résultat System.Xml.XmlDocument

Send() public static méthode

RealWeb XML HTTP 통신 모듈 설정이다.
public static Send ( string uri, XmlDoc document, bool isAsync = false, int timeoutMilliseconds = System.Threading.Timeout.Infinite, string userId = null, string password = null ) : XmlDoc
uri string 서버 URI
document NSoft.NFramework.Xml.XmlDoc 요청용 RclXmlDocument
isAsync bool 비동기 통신 여부
timeoutMilliseconds int 통신 제한시간 (default : System.Threading.Timeout.Infinite)
userId string
password string
Résultat NSoft.NFramework.Xml.XmlDoc