신사(SinSa)
Published 2016. 4. 28. 07:40
(Swift) HTTP XMLRPC 코드와 오류 기록
func chilkatTest() {

    let http = CkoHttp()

    var success: Bool

    //  Any string unlocks the component for the 1st 30-days.
    success = http.UnlockComponent("Anything for 30-day trial")
    if success != true {
        println("\(http.LastErrorText)")
        return
    }

    var xmlReq: String? = "<?xml version=\"1.0\"?><methodCall><methodName>demo.sayHello</methodName><params /></methodCall>"

    var xmlResponse: String? = http.XmlRpc("http://www.cknotes.com/xmlrpc.php", xmlIn: xmlReq)
    if xmlResponse == nil  {
        println("\(http.LastErrorText)")
        return
    }

    println("\(xmlResponse!)")

}


profile

신사(SinSa)

@신사(SinSa)

포스팅이 좋았다면 "좋아요❤️" 눌러주세요!