Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5438

Namespace incorrectly added to unqualified elements

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6.2
    • Component/s: codegen
    • Labels:
      None

      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.

        Attachments

        1. OTSTDecisionService.wsdl
          4 kB
          Thomas Raddatz

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tools400 Thomas Raddatz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: