Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do {
- let theJSONData = try NSJSONSerialization.dataWithJSONObject(
- param ,
- options: NSJSONWritingOptions(rawValue: 0))
- var theJSONText : String = String(data: theJSONData,
- encoding: NSASCIIStringEncoding)!
- print(theJSONText)
- theJSONText = theJSONText.stringByReplacingOccurrencesOfString("\", withString: "", options: NSStringCompareOptions.LiteralSearch, range: nil)
- print(theJSONText)
- let newParam = ["ESignData":theJSONText]
- } catch let error as NSError {
- print(error)
- }
- {"EntNum":"47","JobNo":"1737753","ClientID":"100","HospNo":"1","QAReason":"","DoctorNo":"1694","Action":"Sign"}
- {"EntNum":"47","JobNo":"1737753","ClientID":"100","HospNo":"1","QAReason":"","DoctorNo":"1694","Action":"Sign"}
- WebService.PostURL(mainLink, methodname: ESIGNTHISDOC, param: newParam, userName: AUTH_USERNAME, password: AUTH_PWD, CompletionHandler: { (success, response) in
- })
- Param = {
- ESignData = "{"EntNum":"47","JobNo":"1737753","ClientID":"100","HospNo":"1","QAReason":"","DoctorNo":"1694","Action":"Sign"}";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement