Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to remove 'n0' prefix from header element #214

Open
GoogleCodeExporter opened this issue Apr 25, 2016 · 1 comment
Open

Unable to remove 'n0' prefix from header element #214

GoogleCodeExporter opened this issue Apr 25, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Prepare a soap envelope 'envelope' with some soap header and body
2. set:
       envelope.dotNet = true;
       envelope.implicitTypes = true;
       envelope.setAddAdornments(false);
3. When checking the requestdump with httpTransportSE.debug  = true, 'n0' is 
prefixed with header element while removed from body.

<v:Envelope 
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:d="http://www.w3.org/2001/XMLSchema" 
    xmlns:c="http://www.w3.org/2003/05/soap-encoding" 
    xmlns:v="http://www.w3.org/2003/05/soap-envelope">
    <v:Header>
        <n0:soapLoginHeader xmlns:n0="http://tempuri.org/">
            <soapUser>xxx</soapUser>
            <soapPass>xxx</soapPass>
        </n0:soapLoginHeader>
    </v:Header>
    <v:Body>
        <getSomething xmlns="http://tempuri.org/">
            <ID>xxxx</ID>
            <name>xxxx</name>
        </getSomething>
    </v:Body>
</v:Envelope>

What is the expected output? What do you see instead?
'n0' should not be prefixed in body as well header.

<v:Envelope 
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:d="http://www.w3.org/2001/XMLSchema" 
    xmlns:c="http://www.w3.org/2003/05/soap-encoding" 
    xmlns:v="http://www.w3.org/2003/05/soap-envelope">
    <v:Header>
        <soapLoginHeader xmlns="http://tempuri.org/">
            <soapUser>xxx</soapUser>
            <soapPass>xxx</soapPass>
        </soapLoginHeader>
    </v:Header>
    <v:Body>
        <getHistoryTrackDtl xmlns="http://tempuri.org/">
            <ID>xxxx</ID>
            <name>xxxx</name>
        </getHistoryTrackDtl>
    </v:Body>
</v:Envelope>

What version of the product are you using? On what operating system?
Working in android and using 
ksoap2-android-assembly-3.4.0-jar-with-dependencies.jar

Please provide any additional information below.
 The code is : 

Original issue reported on code.google.com by [email protected] on 29 Apr 2015 at 7:06

@GoogleCodeExporter
Copy link
Author

The project is migrating to github. If you believe this issue is still valid 
and should be tracked please file a new issue at 
https://github.com/simpligility/ksoap2-android/issues



Original comment by [email protected] on 7 Aug 2015 at 5:35

  • Changed state: AwaitingContribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant