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!)") }
'코드와 오류 기록' 카테고리의 다른 글
Transport Security has Blocked a cleartext HTTP 해결 (0) | 2016.04.30 |
---|---|
cocoapods swift (0) | 2016.04.28 |
WWDC16 초대장의 비밀과 아이패드에 osX를 설치해줄 것인가? (0) | 2016.04.21 |
아이폰 실행취소 (ctrl+z) 기능 알아보기 (0) | 2016.04.08 |
아이폰 메모 잠금(iOS 9.3) 외 모든 기능 살펴보기 (0) | 2016.04.07 |