Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-607

Nested namespace prefixes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Serialization
    • None

    Description

      Copied from a note to the mailing list.....

      The enumeration test sends this request message...

      <SOAP-ENV:Body>
      <ns1:getInput xmlns:ns1="http://enumeration.test.apache.org">
      <type att_enum_int="1" att_enum_string="one" att_enum_kind="CHEQUE">
      <ns1:enum_int>0</ns1:enum_int>
      <ns1:enum_string>one</ns1:enum_string>
      </type>
      </ns1:getInput>
      </SOAP-ENV:Body>

      but when run against the latest WebSphere Application Server, the server returns a deserialization fault. The problem seems to be prefixing enum_int and enum_string. When these elements are unqualified (the prefixes are removed), it works. The wsdl does not specify elementFormDefault, and the default value is elementFormDefault="unqualified".

      I discovered http://www.w3.org/TR/xmlschema-0/ which explains this. It says in section 3.1 2nd para "Qualification of local elements and attributes can be globally specified by a pair of attributes, elementFormDefault and attributeFormDefault, on the schema element, or can be specified separately for each local declaration using the form attribute. All such attributes' values may each be set to unqualified or qualified, to indicate whether or not locally declared elements and attributes must be unqualified. ". From this and the other examples they give, elementFormDefault="unqualified" means that an instance document (basically a soap message) must not qualify elements within a complex type.

      So it seems that this is a bug in Axis C++. There are other schema attributes which we probably don't support properly such as form, fixed, ref, use and attributeFormDefault.

      What do other people think? Have I interpreted the specs correctly? Do other people use elementFormDefault? If I fix it, will it break the server?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              whitlock Mark Whitlock
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: