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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:08:10+00:00 2026-06-15T15:08:10+00:00

Soap Request tested using glassfish web service tester <?xml version=1.0 encoding=UTF-8?><S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/> <S:Header/> <S:Body>

  • 0

Soap Request tested using glassfish web service tester

<?xml version="1.0" encoding="UTF-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header/>
<S:Body>
    <ns2:hello xmlns:ns2="http://WS/">
        <name>asd</name>
    </ns2:hello>
</S:Body>

Soap Response

<?xml version="1.0" encoding="UTF-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
    <ns2:helloResponse xmlns:ns2="http://WS/">
        <return>Hello asd !</return>
    </ns2:helloResponse>
</S:Body>

now i try to call this hello method on my ios using sudz to pass ‘name’ parameter to the webservice.
so this is code inside createEnvelope:

[s appendString: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>"];
[s appendString:@"<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">"];
[s appendString:@"<S:Header/>"];
[s appendString:@"<S:Body>"];
[s appendString:@"<ns2:hello "];
[s appendString:@"xmlns:ns2=\"http://WS/"];
[s appendString:@"\"/>"];
[s appendString:@"<name>alvin</name>"];
[s appendString:@"</ns2:hello> "];
[s appendString:@"</S:Body>"];
[s appendString:@"</S:Envelope>"];

here is netbeans log when accessed by ios

INFO: Received WS-I BP non-conformant Unquoted SoapAction HTTP header: http://WS/hello
INFO: berhasil null

log when accessed by android

 INFO: Received WS-I BP non-conformant Unquoted SoapAction HTTP header: http://WS/hello
 INFO: berhasil Cornel

but it always return null parameter, and in android using ksoap and it works perfectly.
with those envelope above i could call the method (hello) but it passing null parameter. please help T_T

  • 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-06-15T15:08:10+00:00Added an answer on June 15, 2026 at 3:08 pm

    Since nobody has answered this yet and I had the same problem which was not solved by other posts around the web…

    I have ARC enabled, no problems there. I did generate the ARCless version and that worked as well though I’m sticking with ARC. I had to change the code that generated the parameters for the request in Soap.m. I added the xmlns=”” in the return line

    // Serializes an object to a string, XML representation with a specific node name.
    + (NSString*) serialize: (id) object withName: (NSString*) nodeName {
        if([object respondsToSelector:@selector(serialize:)]) {
            return [object serialize: nodeName];
        }
        return [NSString stringWithFormat:@"<%@ xmlns=\"\">%@</%@>", nodeName, [Soap serialize: object], nodeName];
    }
    

    I also had to make this change:

    Referenced here: http://code.google.com/p/sudzc/issues/detail?id=40
    Changed from:

    if([child respondsToSelector:@selector(name)] && [[child name] isEqual: name]) {
    

    To this

    if([child respondsToSelector:@selector(name)] && [[child name] hasSuffix:: name]) {
    

    This is the SOAP request that finally ended up working for me.

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns="http://webservice.alerts.xxxconsulting.com/">
    <soap:Body>
    <echo>
    <arg0 xmlns="">echo msg</arg0>
    </echo>
    </soap:Body>
    </soap:Envelope>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i try to build following SOAP Request: <?xml version=1.0 encoding=utf-8?> <soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/>
Hi i want to make a request for soap using above soap xml <soapenv:Envelope
I have a soap request returning a response like below: <SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
I need to create SOAP request like this: <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:stor=http://storage.xdoc.xx/> <soapenv:Header/> <soapenv:Body> <stor:createDocument>
The response to my SOAP request is: <soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/> <soap:Body> <ns2:deliveries nextSequence=492hi xmlns:ns2=http://blahblahblah/> </soap:Body>
Below is a demo SOAP request message: HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length:
I need to have this node in my SOAP Request (using 1.1): <CredentialsHeader xmlns=http://www.url.com/Services/P24ListingService11
I have a SOAP request like this : <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:ch=urn://mfots.com/xmlmessaging/CH xmlns:oas=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd> <soapenv:Header> <ch:MFprofileMnt>
I have an applet that makes a SOAP request to a web service. It
I'm using XhmHttp request object to send SOAP request to web services from classic

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.