• bink wang
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
the code bellow:
SFRestRequest *request = [SFRestRequest requestWithMethod:SFRestMethodPOST path:@"
/services/apexrest/MyRestApi/MyFavorite" queryParams:nil];
    request.endpoint = @"/services/apexrest/MyRestApi/MyFavorite";
    [[SFRestAPI sharedInstance] sendRESTRequest:request failBlock:^(NSError *e){
        NSLog(@"error: %@", e);
    } completeBlock:^(id success){
        NSLog(@"success: %@", success);
    }];
the response print in the console:
​success: (null)

anyone can tell me why?? thenks
 
[ios mobile app]  the code blow:
-(void)launchRequest{
  SFRestRequest *request = [[SFRestRequest alloc] init]; 
  request.endpoint = @"/services/apexrest"; 
  request.method = SFRestMethodGET; 
  request.path = @"/MyRestApi/Inquiry/getInquiryDefaultValue"; 
  [[SFRestAPI sharedInstance] send:request delegate:self];
}
- (void)request:(SFRestRequest *)request didLoadResponse:(id)dataResponse { 
    NSLog(@"dataResponse: %@", [dataResponse description]);
}
the print log info is a hex stream, any one can tell me why???????   thanks

dataResponse: <227b5c22 74615c22 3a7b5c22 4f746865 725c223a 5b7b5c22 4e616d65 5c223a5c 2247656e 57617474 2050726f 70616e65 20353030 6b575c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 68414141 5c227d2c 7b5c224e 616d655c 223a5c22 47656e57 61747420 50726f70 616e6520 31353030 6b575c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 69414141 5c227d2c 7b5c224e 616d655c 223a5c22 47656e57 61747420 4761736f 6c696e65 20333030 6b575c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 6a414141 5c227d2c 7b5c224e 616d655c 223a5c22 47656e57 61747420 4761736f 6c696e65 20373530 6b575c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 6b414141 5c227d2c 7b5c224e 616d655c 223a5c22 47656e57 61747420 4761736f 6c696e65 20323030 306b575c 222c5c22 49645c22 3a5c2230 31743930 30303030 30327031 396c4141 415c227d 2c7b5c22 4e616d65 5c223a5c 22496e73 74616c6c 6174696f 6e3a2050 6f727461 626c655c 222c5c22 49645c22 3a5c2230 31743930 30303030 30327031 396d4141 415c227d 2c7b5c22 4e616d65 5c223a5c 22496e73 74616c6c 6174696f 6e3a2049 6e647573 74726961 6c202d20 4c6f775c 222c5c22 49645c22 3a5c2230 31743930 30303030 30327031 396e4141 415c227d 2c7b5c22 4e616d65 5c223a5c 22496e73 74616c6c 6174696f 6e3a2049 6e647573 74726961 6c202d20 4d656469 756d5c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 6f414141 5c227d2c 7b5c224e 616d655c 223a5c22 496e7374 616c6c61 74696f6e 3a20496e 64757374 7269616c 202d2048 6967685c 222c5c22 49645c22 3a5c2230 31743930 30303030 30327031 39704141 415c227d 2c7b5c22 4e616d65 5c223a5c 22534c41 3a20506c 6174696e 756d5c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 71414141 5c227d2c 7b5c224e 616d655c 223a5c22 534c413a 2042726f 6e7a655c 222c5c22 49645c22 3a5c2230 31743930 30303030 30327031 39724141 415c227d 2c7b5c22 4e616d65 5c223a5c 22534c41 3a205369 6c766572 5c222c5c 2249645c 223a5c22 30317439 30303030 30303270 31397341 41415c22 7d2c7b5c 224e616d 655c223a 5c22534c 413a2047 6f6c645c 222c5c22 49645c22 3a5c2230 31743930 30303030 30327031 39744141 415c227d 2c7b5c22 4e616d65 5c223a5c 2247656e 57617474 20446965 73656c20 31306b57 5c222c5c 2249645c 223a5c22 30317439 30303030 30303270 31397541 41415c22 7d5d2c5c 22e5beaa e792b0e5 99a85c22 3a5b7b5c 224e616d 655c223a 5c224765 6e576174 74204469 6573656c 20323030 6b575c22 2c5c2249 645c223a 5c223031 74393030 30303030 32703139 65414141 5c227d2c 7b5c224e 616d655c 223a5c22 47656e57 61747420 50726f70 616e6520 3130306b 575c222c 5c224964 5c223a5c 22303174 39303030 30303032 70313967 4141415c 227d5d2c 5c22e7b3 96e5b0bf e797855c 223a5b7b 5c224e61 6d655c22 3a5c2247 656e5761 74742044 69657365 6c203130 30306b57 5c222c5c 2249645c 223a5c22 30317439 30303030 30303270 31396641 41415c22 7d5d7d2c 5c224d52 5f427261 63685f5f 635c223a 5b5c22e7 a59ee688 b8e694af e5ba975c 222c5c22 e5ba83e5 b3b6e694 afe5ba97 5c222c5c 22e7a68f e5b2a1e6 94afe5ba 975c222c 5c22e9ab 98e69dbe e694afe5 ba975c22 2c5c22e3 82a2e382 b9e38388 e383a9e3 82bce383 8de382ab e6a0aae5 bc8fe4bc 9ae7a4be 20e69cac e7a4be5c 222c5c22 e382a2e3 82b9e383 88e383a9 e382bce3 838de382 abe38080 e69db1e4 baace694 afe7a4be 5c222c5c 22e58d83 e89189e6 94afe5ba 975c222c 5c22e5a4 a7e998aa e694afe5 ba975c22 2c5c22e6 9cade5b9 8ce694af e5ba975c 222c5c22 e4bb99e5 8fb0e694 afe5ba97 5c222c5c 22e69db1 e4baace6 94afe5ba 975c222c 5c22e59f bce78e89 e694afe5 ba975c22 2c5c22e6 9db1e4ba ace694af e7a4be28 e794b2e4 bfa1e8b6 8a295c22 2c5c22e6 a8aae6b5 9ce694af e5ba975c 222c5c22 e69db1e4 baace694 afe7a4be 28e58c97 e996a2e6 9db1295c 222c5c22 e5908de5 8fa4e5b1 8be694af e5ba975c 222c5c22 e4baace9 83bde694 afe5ba97 5c222c5c 22e587bd e9a4a8e5 8886e5ae a45c222c 5c22e5b8 afe5ba83 e58886e5 aea45c22 2c5c22e6 97ade5b7 9de58886 e5aea45c 222c5c22 e99d92e6 a3aee588 86e5aea4 5c222c5c 22e79b9b e5b2a1e5 8886e5ae a45c222c 5c22e7a7 8be794b0 e58886e5 aea45c22 2c5c22e5 b1b1e5bd a2e58886 e5aea45c 222c5c22 e983a1e5 b1b1e588 86e5aea4 5c222c5c 22e59f8e e58d97e5 8886e5ae a45c222c 5c22e5a4 9ae691a9 e58886e5 aea45c22 2c5c22e5 9f8ee8a5 bfe58886 e5aea45c 222c5c22 e5b79de8 b68ae588 86e5aea4 5c222c5c 22e69dbe e688b8e5 8886e5ae a45c222c 5c22e58e 9ae69ca8 e58886e5 aea45c22 2c5c22e5 ae87e983 bde5aeae e58886e5 aea45c22 2c5c22e9 ab98e5b4 8ee58886 e5aea45c 222c5c22 e6b0b4e6 88b8e588 86e5aea4 5c222c5c 22e59c9f e6b5a6e5 8886e5ae a45c222c 5c22e696 b0e6bd9f e58886e5 aea45c22 2c5c22e9 95b7e5b2 a1e58886 e5aea45c 222c5c22 e69dbee6 9cace588 86e5aea4 5c222c5c 22e995b7 e9878ee5 8886e5ae a45c222c 5c22e794 b2e5ba9c e58886e5 aea45c22 2c5c22e5 b2a1e5b4 8ee58886 e5aea45c 222c5c22 e5b290e9 989ce588 86e5aea4 5c222c5c 22e99d99 e5b2a1e5 8886e5ae a45c222c 5c22e6b2 bce6b4a5 e58886e5 aea45c22 2c5c22e6 b59ce69d bee58886 e5aea45c 222c5c22 e6b4a5e5 8886e5ae a45c222c 5c22e6bb 8be8b380 e58886e5 aea45c22 2c5c22e7 a68fe4ba 95e58886 e5aea45c 222c5c22 e98791e6 b2a2e588 86e5aea4 5c222c5c 22e5af8c e5b1b1e5 8886e5ae a45c222c 5c22e58c 97e69182 e58886e5 aea45c22 2c5c22e5 a0bae588 86e5aea4 5c222c5c 22e5a588 e889afe5 8886e5ae a45c222c 5c22e592 8ce6ad8c e5b1b1e5 8886e5ae a45c222c 5c22e8a5 bfe5aeae e58886e5 aea45c22 2c5c22e5 a7abe8b7 afe58886 e5aea45c 222c5c22 e5b2a1e5 b1b1e588 86e5aea4 5c222c5c 22e7a68f e5b1b1e5 8886e5ae a45c222c 5c22e5b0 8fe983a1 e58886e5 aea45c22 2c5c22e7 b1b3e5ad 90e58886 e5aea45c 222c5c22 e69dbee6 b19fe588 86e5aea4 5c222c5c 22e69dbe e5b1b1e5 8886e5ae a45c222c 5c22e5be b3e5b3b6 e58886e5 aea45c22 2c5c22e9 ab98e79f a5e58886 e5aea45c 222c5c22 e58c97e4 b99de5b7 9ee58886 e5aea45c 222c5c22 e4b985e7 9599e7b1 b3e58886 e5aea45c 222c5c22 e4bd90e8 b380e588 86e5aea4 5c222c5c 22e6b296 e7b884e5 8886e5ae a45c222c 5c22e995 b7e5b48e e58886e5 aea45c22 2c5c22e4 bd90e4b8 96e4bf9d e58886e5 aea45c22 2c5c22e5 a4a7e588 86e58886 e5aea45c 222c5c22 e7868ae6 9cace588 86e5aea4 5c222c5c 22e9b9bf e58590e5 b3b6e588 86e5aea4 5c222c5c 22e5aeae e5b48ee5 8886e5ae a45c225d 7d22>