Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2682

wsdl2Java generates invalid empty string namespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.4
    • None
    • WSDL processing
    • None
    • Eclipse 3.2 on Mac OS 10.4.10 (Intel)

    Description

      I generated with WSDL2Java a service skeleton and client stubs for the attached WSDL which I used for interoperability tests. When I investigated errors, I found the following in the generated SOAP request:

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <AcceptBase64 xmlns="http://www.textgrid.de/tests/bytearray/">
      <data xmlns="">SGVsbG8gV29ybGQh</data>
      <length xmlns="">12</length>
      </AcceptBase64>
      </soapenv:Body>
      </soapenv:Envelope>

      Note the empty namespaces in the data and length elements. The W3C recommendation "Namespaces in XML 1.0" states explicitly: "The empty string, though it is a legal URI reference, cannot be used as a namespace name" (http://www.w3.org/TR/xml-names/#iri-use).

      Attachments

        1. bytearray.wsdl
          3 kB
          Christoph Ludwig

        Activity

          People

            Unassigned Unassigned
            cludwig Christoph Ludwig
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: