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 3346764
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:20:32+00:00 2026-05-18T01:20:32+00:00

I will try my best to explain what’s going on. The app that I’m

  • 0

I will try my best to explain what’s going on. The app that I’m working on relies on soap services extensively. Since I’m making so many calls to different services I figured I would take a shot at creating my own webservice class. My new class is named SoapServiceRequest. I’ve defined a few instance variables along with one method. This one method takes 4 arguments:
1) username
2) password
3) serviceName (defined service on soap server)
4) withData (data sending to soap server)

I create an instance of this class, pass in the required 4 arguments but the method stops running midway. This method does the following…

builds the soap message
sets up the URL and connection
sends the data
sends the response back to the App (dumping to NSLog)
and when the “-(void)connectionDidFinishLoading:(NSURLConnection *)connection” method is called I am setting up an XMLParser to parse the returned data.. NSXMLParser will then call its delegate methods. I am not seeing the XmlParser fire.

The SoapServiceRequest class has the XMLParser defined. It appears that this is not being called. I wanted to setup this class and override a couple of methods in my other subclasses.

For example. I am changing a password from within my app via webservice. This works fine I am just not seeing the XML being returned of either true/false. The method ends on
“-(void)connectionDidFinishLoading:(NSURLConnection *)connection” and the XMLParser never gets called.

Below is what my connectionDidFinishLoading looks like.

//--parser to begin parsing our returned xml.

- (void)connectionDidFinishLoading:(NSURLConnection *)connection

{
    NSLog(@"Done.  Received Bytes: %d", [webData length]);
    NSString *theXML = [[NSString alloc]initWithBytes:[webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding];    
        //--show the XML--
    NSLog(@"%@",theXML);

    if (xmlParser) {
        [xmlParser release];
    }

    xmlParser = [[NSXMLParser alloc] initWithData:webData];
    [xmlParser setDelegate:self];
    [xmlParser setShouldResolveExternalEntities:YES];
    [xmlParser parse];

    [connection release];
    [webData release];
}

If my return data is true inform the user of success or just update the label, if false let user know etc.. Any suggestions on where to look?

Thanks.

  • 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-18T01:20:32+00:00Added an answer on May 18, 2026 at 1:20 am

    I had an error in my class definition in the XMLParser which is why the parser never did get called.

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

Sidebar

Related Questions

That might be broad question but I will try to explain best. I will
I am working on an algorithm that will try to pick out, given an
This will be a bit difficult to explain but I will try my best.
Sorry in advance if I don't explain this clearly. I will try my best
HI, I have the following scenario which I will try to explain as best
I will try to explain myself as best as possible, I know the title
I think this may not be possible, will try and explain as best as
This is a bit tricky to explain but I will try my best to
This is a little complicated so I will try and explain as best as
This is a bit convoluted but I will try to explain as best as

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.