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

  • Home
  • SEARCH
  • 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 6547119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:47:28+00:00 2026-05-25T11:47:28+00:00

I have generated code with WSDL2OBJC. I have big problem with request in my

  • 0

I have generated code with WSDL2OBJC.
I have big problem with request in my Objective C client:

CatalogoPortBinding *binding = [[CatalogoSvc CatalogoPortBinding] initWithAddress:@"http://localhost:8080/WSServer/Catalogo_V1"];
    binding.logXMLInOut = YES;  // to get logging to the console.

    CatalogoSvc_hello *request = [[CatalogoSvc_hello alloc] init];

    NSString *t = @"David";
    request.name = t;

    NSLog(@"request: %@",request.name);

    CatalogoPortBindingResponse *response = [binding helloUsingParameters:request];


    //NSLog(@"%@",resp.bodyParts);
    for (id mine in response.bodyParts)
    {

        NSLog(@"name: %@",[mine return_]);
        if ([mine isKindOfClass:[CatalogoSvc_helloResponse class]])
        {   
            if (sec == YES) {

                //NSLog(@"name: %@",[mine return_]);
                NSString *texto = (NSString*)[mine return_];
                [lab setText:(NSString*)texto];
            }
        }

    }

my console show:

2011-08-31 12:29:05.086 Catalogo-V1[3596:207] request: David
2011-08-31 12:29:05.088 Catalogo-V1[3596:207] OutputHeaders:
{
    "Content-Length" = 434;
    "Content-Type" = "text/xml; charset=utf-8";
    Host = localhost;
    Soapaction = "";
    "User-Agent" = wsdl2objc;
}
2011-08-31 12:29:05.088 Catalogo-V1[3596:207] OutputBody:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:CatalogoSvc="http://org/" xsl:version="1.0">
  <soap:Body>
    <CatalogoSvc:hello>
      <CatalogoSvc:name>David</CatalogoSvc:name>
    </CatalogoSvc:hello>
  </soap:Body>
</soap:Envelope>
2011-08-31 12:29:05.093 Catalogo-V1[3596:207] ResponseStatus: 200
2011-08-31 12:29:05.094 Catalogo-V1[3596:207] ResponseHeaders:
{
    "Content-Type" = "text/xml;charset=utf-8";
    Date = "Wed, 31 Aug 2011 10:29:05 GMT";
    Server = "GlassFish Server Open Source Edition 3.1.1";
    "Transfer-Encoding" = Identity;
    "X-Powered-By" = "Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Apple Inc./1.6)";
}
2011-08-31 12:29:05.094 Catalogo-V1[3596:207] ResponseBody:
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:helloResponse xmlns:ns2="http://org/"><return>Hello null !</return></ns2:helloResponse></S:Body></S:Envelope>
2011-08-31 12:29:05.095 Catalogo-V1[3596:207] name: Hello null !

I need to show this message: “Hello David !” and i receive: “Hello null!”.

  • 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-25T11:47:28+00:00Added an answer on May 25, 2026 at 11:47 am

    Based on comparing this request to what you have in your question posted about a manual solution, it looks like you’ve got namespace issues happening here. The SOAP request generated here applies the http://org/ namespace (via the identifier CatalogoSvc) to the “name” element:

    <CatalogoSvc:hello>
      <CatalogoSvc:name>David</CatalogoSvc:name>
    </CatalogoSvc:hello>
    

    In the manual scenario where you have gotten this to work, the http://org/ namespace is applied to the surrounding “hello” element but not the “name” element:

    <ns2:hello xmlns:ns2="http://org/>
        <name>david</name>
    </ns2:hello>
    

    Based on this observation, I would deduce that your service is not expecting a namespace to be applied to the name element, so it is not finding that parameter when it is sent with a namespace.

    To fix this problem you will need to either:

    1. Figure out how to tell the SOAP client stub generation to NOT apply a namespace to your parameter, or
    2. Update your service to make it expect a namespaced “name” element.

    Since the client side code is presumably generated from the service’s WSDL, I suspect that the Objective-C code is doing it right and your service code has it wrong, but that’s just a suspicion. Either way, you need to find a way to make client and server side “agree”

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

Sidebar

Related Questions

I have a problem while pasting my contents (or text) generated by Java code
I have looked at the generated designer code of Form s and UserControl s,
How can I have a trace of native code generated by the JIT-Compiler ?
I have this code try { //AN EXCEPTION IS GENERATED HERE!!! } catch {
I have a bunch of PHP code that is auto-generated and it puts all
html code meta tag description, it is generated dynamically and we have quotes in
I have a dialog box, created with the code javascript and HTML generated below.
I have a couple ANTLR-generated code files, and I'm currently happy with how they
I have a SOAP 1.1 client that was generated with the Delphi 2007 WSDL
Is there a way I can have a generated code file like so: public

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.