Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5945175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:38:40+00:00 2026-05-22T16:38:40+00:00

I have never interfaced with a web server before, i know little bit of

  • 0

I have never interfaced with a web server before, i know little bit of xml but don’t know anything about http headers. I need to basically connect to a server and pass information (using Cocoa-touch) and this is the information that was provided:

Request headers: 
POST https://www.example.org/example 
Content-Type: text/xml 
Content-Length: 638 
Authorization: [[developer-key]]

and i was given this request body:

<LetterValues> 
<FullName><![CDATA[John Doe]]></FullName>  
</LetterValues>

The request body is more than just this, I removed a lot just to keep it simple.

So can someone point me to a tutorial or right direction about how I can pass in this information?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:38:41+00:00Added an answer on May 22, 2026 at 4:38 pm
    -(void)xmlParsingInBackground
    {
    NSString xmlString = [NSString stringWithFormat:@"Your XML REquest"];
    NSURL * serviceUrl = [NSURL URLWithString:[NSString stringWithString:@"YOUR URL"]];
    NSMutableURLRequest * serviceRequest = [NSMutableURLRequest requestWithURL:serviceUrl];
    [serviceRequest setValue:@"text/xml" forHTTPHeaderField:@"Content-type"];
    [serviceRequest setHTTPMethod:@"POST"];
    [serviceRequest setHTTPBody:[xmlString dataUsingEncoding:NSUTF8StringEncoding]];
    NSData *responseData;
    NSURLResponse * serviceResponse;
    NSError * serviceError;
    responseData = [NSURLConnection sendSynchronousRequest:serviceRequest returningResponse:&serviceResponse error:&serviceError];
    NSString *resp=[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
    if(responseData != NULL)
    {       
        NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:responseData];
        [xmlParser setDelegate:self];
        //[xmlParser setDelegate:parser];       
        BOOL success = [xmlParser parse];
    
        if(success)
        { // DO SOMETHING HERE
                }
    
    }
    

    DO THE ABOVE THING, AND IMPLEMENT FOLLOWING:

     - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName 
    attributes:(NSDictionary *)attributeDict 
    
     - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string  
    
     - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName 
    

    THIS WILL HELP YOU. 🙂

    ADDITION: Download code from following link that will tell you how to implement above methods Sizmic XML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never thought about until recently, but I'm not sure why we call
I have found this question , but it was never resolved and don't want
I have never used Windsor before but have used other DI frameworks, and I
I have never worked with web services and rails, and obviously this is something
I have never hand-coded object creation code for SQL Server and foreign key decleration
I have never programmed a gadget for Vista or Seven, but I would like
I've been using repositories for data access for some time now but have never
I have never used Emacs before and the first time I tried it I
I'm developing a little web service and ran into a detail I don't understand.
I have seen a couple threads about this, but am not getting very straight

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.