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

Difference in the way Namespaces are handled in JDK1.8_121 and JDK_1.8_141 or higher #143

Open
Tomas-Kraus opened this issue Nov 2, 2017 · 1 comment

Comments

@Tomas-Kraus
Copy link
Member

I have come across an issue where the Namespaces are moved from child XML node to the Parent XML Node.
I want to know the reason behind this change. Also, if there is a way to override this behavior?
To demonstrate the issue. I have created a sample WebService Client and Server. It does not require any additional setup.

The Client should be using the lower JDK version i.e JDK1.8_121 or below and server JDK1.8_141.

The server prints the SOAPMessage in the handleMessage of the MessageHandler. The Namespace which was with <arg0 in JDK 1.8_121 is moved to the <soapenv:Body with JDK1.8_141.
WebServiceProj.zip

Here is the output for your reference.
Case 1. With JDK1.8_121

@server : handleMessage()......
*Message Start
This is an Inbound Request :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/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">
SOAP-ENV:Header/
soapenv:Body

Kunal

</soapenv:Body>
</soapenv:Envelope>
Message End*

Case 1. With JDK1.8_141

@server : handleMessage()......
*Message Start
This is an Inbound Request :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/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">
SOAP-ENV:Header/
<soapenv:Body xmlns="http://jaxws.vmware.com/">

Kunal

</soapenv:Body>
</soapenv:Envelope>
Message End*
Attaching the

@Tomas-Kraus
Copy link
Member Author

@lukasj lukasj transferred this issue from jakartaee/saaj-api Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant