Description
A Web Service skeleton that is generated by WSDL2JAVA incorrectly adds namespaces to unqualified elements of the response message. In contrast to that the client is expected to send a request message with unqualified elements.
Correct request message:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dstns="http://www.ibm.com/rules/decisionservice/Tra/OTST" xmlns:wns1="http://www.ilog.com/rules" xmlns:wns2="http://www.ibm.com/rules/decisionservice/Tra/OTST/param">
<soapenv:Body>
<dstns:OTSTRequest>
<dstns:DecisionID>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dstns:DecisionID>
<wns2:odr>
<wns1:order>
<oamount>123</oamount>
<amount>456</amount>
</wns1:order>
</wns2:odr>
</dstns:OTSTRequest>
</soapenv:Body>
</soapenv:Envelope>
Incorrect response message:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns3:OTSTResponse xmlns:ns3="http://www.ibm.com/rules/decisionservice/Tra/OTST">
<ns3:DecisionID>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</ns3:DecisionID>
<odr xmlns="http://www.ibm.com/rules/decisionservice/Tra/OTST/param">
<order xmlns="http://www.ilog.com/rules">
<oamount>123</oamount>
<amount>456</amount>
</order>
</odr>
</ns3:OTSTResponse>
</soapenv:Body>
</soapenv:Envelope>
According to the wsdl file, both messages have the same format.
Version 1.5.6 is affected as well.