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

The Archive Base Latest Questions

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

I have 2 SOAP services that I want to call from an IPad app.

  • 0

I have 2 SOAP services that I want to call from an IPad app.

One is used to Log the user in (SecurityASMX), the other is one that returns the current username (SecuredCalls) once logged in.

I can call the SecurityASMX no problem using the following code. The Async call callback is operation :

- (IBAction) OnButtonClick:(id) sender {

    bindingSecurity = [[SecurityASMXSvc SecurityASMXSoapBinding] initWithAddress:@"http://myserver/Azur.IPADTest.Web.Services/public/Security.asmx"];
    bindingSecurity.logXMLInOut = YES;

    SecurityASMXSvc_Login *requestLogin = [[SecurityASMXSvc_Login alloc] init];
    requestLogin.strUsername = @"test";
    requestLogin.strPassword = @"testpass";

    [bindingSecurity LoginAsyncUsingParameters:requestLogin delegate:self];

    [requestLogin release];

    self.label.text = @"Login in progress";
}

- (void) operation:(SecurityASMXSoapBindingOperation *)operation completedWithResponse:(SecurityASMXSoapBindingResponse *)response
{
    [NSThread sleepForTimeInterval:2.0];

    self.label.text = @"Login Done!";

}

This works fine.

However, in the same code file, I have a binding to my second web service to return the username with the following code. The async call callback is operationSecure :

- (IBAction) OnButtonSecureCallClick:(id) sender {

    bindingSecuredCalls = [[SecureCallsSvc SecureCallsSoapBinding] initWithAddress:@"http://myserver/Azur.IPADTest.Web.Services/private/SecureCalls.asmx"];
    bindingSecuredCalls.logXMLInOut = YES;

    SecureCallsSvc_ReturnUserName *requestReturnUserName = [[SecureCallsSvc_ReturnUserName alloc] init];

    [bindingSecuredCalls ReturnUserNameAsyncUsingParameters:requestReturnUserName delegate:self];

    [requestReturnUserName release];

    self.label.text = @"Get UserName In Progress";
}


- (void) operationSecure:(SecureCallsSoapBindingOperation *)operation completedWithResponse:(SecureCallsSoapBindingResponse *)response
{
    [NSThread sleepForTimeInterval:2.0];

    self.label.text = @"Get Username Done!";

}

The problem is that when the call to ReturnUserName returns, the method that gets called is the one for the login (operation) and not the one I want (operationSecure).

How can I tell my second webservice binding to call the second callback?

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-24T15:56:27+00:00Added an answer on May 24, 2026 at 3:56 pm

    First thing would be to check if the API you’re using (I assume it’s a third party API) allows you to specify the callback method.

    If not, you can work with the operation parameter and use isKindOfClass to see what is actually being passed.

    - (void) operation:(SecurityASMXSoapBindingOperation *)operation completedWithResponse:(SecurityASMXSoapBindingResponse *)response
    {
        [NSThread sleepForTimeInterval:2.0];
    
        if([operation isKindOfClass:[SecurityASMXSoapBindingOperation class]])
        {
            self.label.text = @"Login Done!";
        }
        else if([operation isKindOfClass:[SecureCallsSoapBindingOperation class]])
        {
            self.label.text = @"Get Username Done!";
        }
    }
    

    Ideally you’d set the type of operation and response parameters to be the superclass of the respective objects returned.

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

Sidebar

Related Questions

I have SOAP services with data. I want to download all data from that
From my android app, I want to call php web services. At times, I
I Have an internal SOAP Web service that is being called from an external
I have used ksoap2 to call my SOAP service. It works fine in android2.2
I have a simple WCF service that I call server side from code behind
I am very new to Soap web services and HTML5 i want develop App
We have some applications (web and WPF) that call WCF services to access data.
I'm developing a JSF 2.0 app that consumes a SOAP-based web service. I want
we have a public asmx service that is accessed by our clients through SOAP
I have a complex RIA client that communicates with a WCF SOAP web service,

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.