Thomas Raddatz created AXIS2-5438:
-------------------------------------
Summary: Namespace incorrectly added to unqualified elements
Key: AXIS2-5438
URL: https://issues.apache.org/jira/browse/AXIS2-5438
Project: Axis2
Issue Type: Bug
Components: codegen
Affects Versions: 1.5
Reporter: Thomas Raddatz
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]