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!)")
}