我想在swift中调用简单的SOAP Web服务并将响应分配给NSDictionary
//Making Connection
let stringURL="http://www.xxxxx.com/mobileapp/category.php"
let url1: NSURL = NSURL(string: stringURL )!
let request: NSURLRequest = NSURLRequest(URL: url1)
let connection:NSURLConnection = NSURLConnection(request: request, delegate: self, startImmediately: false)!
connection.start()
但我不清楚如何在swift中编写连接委托 我应该在这些代表下写些什么?
func connection(connection: NSURLConnection!, didReceiveData data: NSData!)
func connectionDidFinishLoading(connection: NSURLConnection!)
我的回复是一本词典。如何在我的应用程序端将其分配给NSDictionary? 请帮我。