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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:50:47+00:00 2026-05-23T14:50:47+00:00

In the WSDL2ObjC documentation there is a sample code like below, but in my

  • 0

In the WSDL2ObjC documentation there is a sample code like below, but in my generated code I couldnt find any class, method or property equavilant to “myOperationUsingParameters”
what is that and where can I find it? I don’t know also what “myOperation” and what “ns1” is.

I’m newbie, so in Objective C maybe there is a meaning when I change the capitals of variables in a certain way and concatenate them with some keywords?

for instance:
ns1_MyOperationRequest — myOperationUsingParameters

tnx

#import "MyWebService.h"
MyWebServiceBinding *binding = [MyWebService MyWebServiceBinding];
binding.logXMLInOut = YES;

ns1_MyOperationRequest *request = [[ns1_MyOperationRequest new] autorelease];
request.attribute = @"attributeValue";
request.element = [[ns1_MyElement new] autorelease];
request.element.value = @"elementValue"];

MyWebServiceBindingResponse *response = [binding myOperationUsingParameters:request];
  • 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-23T14:50:47+00:00Added an answer on May 23, 2026 at 2:50 pm

    All depends on your web service class name etc as wsdl2objc makes up alot of your NSObjects and methods based upon this, however, suggesting that you are using soap 1.2 bindings and your web service was called ‘SimpleService’, the following would call a web method named ‘MobileTestService and return back the integer value from the xml generated.

    -(NSString *)returnThatStringFromWebServiceResult 
    
    {
    
    
    SimpleServiceSoap12Binding * binding = [SimpleService SimpleServiceSoap12Binding];
    
    binding.logXMLInOut = YES; // shows all in the console log.
    
    SimpleService_concat * testParams = [[SimpleService_concat new]autorelease];
    
    testParams.s1 = someTextField.text; // parameters all become properties of this testParams object
    
    testParams.s2 = anotherTextField.text;
    
    SimpleServiceSoap12BindingResponse * response= [binding SimpleService_concatUsingParameters:testParams];
    
    [response self]; // removes compile error
    
    NSArray * responseBodyParts = response.bodyParts;
    
    NSError * responseError = response.error;
    
    if (responseError!=NULL) 
    
    {
        return @"";     // if error from ws use [responeError code]; for http err code
    
    
    }
    
    for (id bodyPart in responseBodyParts)
    
    {
    
        if ([bodyPart isKindOfClass:[SimpleService_concat_Response class]]) 
    
        {
            SimpleService_concatResponse* body = (SimpleService_concatResponse*) bodyPart;
    
            return body.SimpleService_concatResult; // if you are returning a string from your WS then this value will be a string, 
    
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any other documentation available at wsdl2objc besides the Usage Instructions?. The documentation
I have generated code with WSDL2OBJC. I have big problem with request in my
I am trying to use wsdl2objc with this soap web service. But when am
I have recently downloaded the most recent build of this awesome tool WSDL2OBJC from
I'm trying to consume an ASP.net Web service, and found a utility called WSDL2ObjC.
i'm using wsdl2objc to consume a WSDL and my biggest problem is that i
I am trying to call my web service using wsdl2objc. I found the following
hi everyone i am new to iphone development and started with some sample application.
I am looking for a library / code generator that supports the UsernameToken profile
I tried to call a web service from iphone. I used wsdl2objc to generate

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.