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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:25:59+00:00 2026-05-24T16:25:59+00:00

guys I’m a new iOS developer, I’m having a problem when calling soap functions

  • 0

guys

I’m a new iOS developer, I’m having a problem when calling soap functions in new thread.

Here is more details:

I have a function calling soap web service:

WebService *webService = [[[WebService alloc]init]retain];
[webService getUser:self action:@selector(getUserHandler) userName: usnm  encPassword: pswd];

This function is simply generated from sudzc.com(Great Website! Thanx!)
simply calling this function I can get

<user><username>XXX</username><userStatus>XXX</userStatus><companyCode>XXX</companyCode><password>XXX</password></user>

back from webservice. and my getUserHandler will work perfectly.

but if I want to call the webservice in a thread like this:

[NSThread detachNewThreadSelector:@selector(myMethod) toTarget:self withObject:nil];

-(void)myMethod
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    NSLog(@"!, %@,%@",usnm,pswd);
    WebService *webService = [[[WebService alloc]init]retain];
    [webService getUser:self action:@selector(getUserHandler) userName: usnm  encPassword: pswd];
    [pool drain];
}

I don’t seem to get the returnxml, and it seems the getUserHandler never starts(I put a NSLog in the getUserHandler, but it won’t print this time).

I got no idea why is this happening,

any hints are welcome!

Thanx!

  • 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-24T16:26:00+00:00Added an answer on May 24, 2026 at 4:26 pm

    I highly recommend you to look into the Sync-Async pattern as described in the tutorial here:

    Sync-Async Pair Pattern – Easy concurrency on iOS

    There is also a question focussing on the same issue:

    Multiple async webservice requests NSURLConnection iOS

    HTH

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

Sidebar

Related Questions

Ok guys and gals, here is my problem: I've built a custom control that
Guys, I have got a slightly different problem with Java Dynamic class loading. I
Ok guys just a small game: I have some specifications for a project. At
Hi guys I wrote this code and i have two errors. Invalid rank specifier:
You guys were very helpful yesterday. I am still a bit confused here though.
Hi guys anyone know what the helll is going on here? ERROR SNIPPET: Loading
Guys i have tried to refresh my page with a button.. <input type=reset value=Refresh
Guys, I have a CSS Layout that I am using that has a header,
Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I
Guys, I need some help! I have a fully rendered menu (a safe html

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.