 		let request = NSMutableURLRequest(URL: NSURL(string: url)!)
 		request.HTTPMethod = "POST"
 		request.HTTPBody = input.dataUsingEncoding(NSUTF8StringEncoding)
-		request.addValue(header, forHTTPHeaderField: "SOAPACTION")
+		request.addValue(header as String, forHTTPHeaderField: "SOAPACTION")
 		
 		return request
 	}

		return Static.instance
	}
	
	func request(host: String, code: M2MVieraController.KeyCode) -> NSMutableURLRequest {
		return self.commonURLRequest(host, action: "X_SendKey", option: "<X_KeyEvent>" + code.toString() + "</X_KeyEvent>")
	}
	
	func request(host: String, string: String) -> NSMutableURLRequest {
		return self.commonURLRequest(host, action: "'X_SendString", option: "<X_String>" + string + "</X_String>")
	}
	
	private func commonURLRequest(host: String, action: String, option: String) -> NSMutableURLRequest {
		let xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:%@ xmlns:u=\"urn:panasonic-com:service:p00NetworkControl:1\">%@</u:%@></s:Body></s:Envelope>"
		let header = NSString(format: "\"urn:panasonic-com:service:p00NetworkControl:1#%@\"", action)

		}
	}

	/// 機器を探索するためのIPアドレス
	class var searchHost: NSString {
		return "239.255.255.250" as NSString
	}
	
	/// 機器を探索するためのポート番号
	class var searchPort: UInt16 {
		return 1900
	}
	
	/// 機器を探索するためのヘッダ
	class var searchData: NSData {
		return ("M-SEARCH * HTTP/1.1'\r\nST: urn:panasonic-com:device:p00RemoteController:1\r\nMX: 1\r\nMAN: \"ssdp:discover\"\r\nHOST: 239.255.255.250:1900\r\n\r\n\r\n" as NSString).dataUsingEncoding(NSUTF8StringEncoding)!
	}
