Dracula's Castle

by BJHStudios

submit your photo

Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

101 reputation
bio website arunios.blogspot.in
location Pondicherry, India
visits member for 3 years
seen Sep 21 '12 at 16:44

Teach me the rules.... I will teach the way to reach the goal....

My git: Spynet

அருண் திருநாவுகரசு

ஒழுக்கம் விழுப்பந் தரலான் ஒழுக்கம்
உயிரினும் ஓம்பப் படும்.

profile for Spynet at Stack Overflow, Q&A for professional and enthusiast programmers

Rest "
The Soap request
NSError *xmlError = nil;

NSString *requestHeader = [self prepareRequestPayload];

requestHeader = [NSString stringWithFormat:@"inputXml=%@", requestHeader];
NSMutableURLRequest *URLRequest = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@""]]];

[URLRequest setHTTPMethod:@"POST"];
[URLRequest setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
[URLRequest setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
[URLRequest setHTTPBody:[requestHeader dataUsingEncoding:NSUTF8StringEncoding]];

NSURLResponse *URLResponse;
NSData *responseData = [NSURLConnection sendSynchronousRequest:URLRequest returningResponse:&URLResponse error:&xmlError];

if (xmlError) {
    *error = [NSError errorWithDomain:@"Response error" code:0 userInfo:@{NSLocalizedDescriptionKey: @"Remote server not responding"}];
    NSLog(@"Error occured");
    return NO;
    DDXMLDocument *xmlDocument = [[DDXMLDocument alloc]initWithData:responseData options:0 error:&xmlError];
    DDXMLNode * node =  [[xmlDocument nodesForXPath:@"//Error" error:&xmlError] firstObject];
    for (DDXMLElement *check in [node children])
        NSString *error = [check stringValue];
        NSLog(@"The error  : %@",error);

   *error = [NSError errorWithDomain:@"Response error" code:0 userInfo:@{NSLocalizedDescriptionKey: @"There is no data returned from server"}];
    return NO;

http://yuvarajmanickam.wordpress.com/2012/10/17/nsurlconnection-basics-for-ios-beginners/ "

⌘ அருண் . திரு



This user has not answered any questions
This user has not asked any questions
This user has not participated in any tags
Stack Overflow 2,686 rep 31440
Programmers 290 rep 47
Ask Different 108 rep 7
Server Fault 101 rep 1
Super User 101 rep 1

0 Votes Cast

This user has not cast any votes