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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:27:08+00:00 2026-05-28T01:27:08+00:00

I am using Soap Web services and get response in XML and that Response

  • 0

I am using Soap Web services and get response in XML and that Response i am store in NSMutableData and than i perform XML parsing i am using NSXMLParser. my problem is that some times it is works and some times not i can’t determine what is the problem so anybody can help me to out of this problem.
I am using this code-

    NSString *msgLength = [NSString stringWithFormat:@"%d", [soapMessage length]];
    [theRequest addValue: @"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
    [theRequest addValue: @"http://MYLINK......." forHTTPHeaderField:@"MY_action"];
    [theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
    [theRequest setHTTPMethod:@"POST"];
    [theRequest setHTTPBody: [soapMessage dataUsingEncoding:NSUTF8StringEncoding]];
    NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
    if(theConnection)
    {
        webData_msg = [[NSMutableData data] retain];
    }

and getting also response in-

-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
    [webData_msg appendData:data];  
}

but after getting response parse the xml here-

-(void)connectionDidFinishLoading:(NSURLConnection *)connection
{
    if( xmlParser_msg)
    {
        [xmlParser_msg release];
        xmlParser_msg=nil;
    }
    xmlParser_msg = [[NSXMLParser alloc] initWithData: webData_msg];
    [xmlParser_msg setDelegate: self];
    [xmlParser_msg setShouldResolveExternalEntities: YES];
    [xmlParser_msg parse];

    [connection release];
    [webData_msg release];
}

than problem arise here, some times NSXMLParserDelegate methods call some times not call.
What is going wrong here? please help and sorry for any mistake in English.

  • 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-28T01:27:09+00:00Added an answer on May 28, 2026 at 1:27 am

    The problem was I was getting HTML response through web service so xml purser hangs on that.
    It was sometimes errors coming from web service side with HTML content.

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

Sidebar

Related Questions

I am implementing SOAP web services for a commercial application, and I am using
How can I build a stand-alone SOAP-based Web Services using Delphi? Must work with
how to get the value which is returned from the web service using soap
I have an SOAP response that looks similar to this: <?xml version=1.0 encoding=UTF-8?> <soapenv:Envelope
I'm working with SOAP based web services that require authentication. I usually use the
I'm using Tibco BusinessWorks to consume a soap web service over an HTTPS connection.
I'm trying to implement a stateful web service in PHP using the SOAP extension.
I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using
I understand that SQL Server endpoint returns data using SOAP. Does anyone know if
Does anybody know how I can troubleshoot web services responses? When I get my

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.