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

elements without minOccurs="0" produce isnill="true" on the wire

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.0
    • 1.2
    • None
    • Operating System: Other
      Platform: Other
    • 14902

    Description

      Elements that are marked optional in wsdl schema. e.g. profile field in:
      <complexType name="User">
      <sequence>
      <element name="profile" type="someComplexType" minOccurs="0"/>
      </sequence>
      </complexType>
      <element name="User" type="types:User"/>

      Produces (inside SOAP body element) on the wire:
      <User>
      <profile xsi:nil="true"/>
      </User>

      Since the profile schema element is not marked as nillable="true" (only
      minOccurs="0") it would (at least) save bandwidth to just drop it altogether:
      <User>
      </User>

      [Both formats already work for deserialization.]

      thanks,
      Andre

      Attachments

        1. Axis-530-test.zip
          4 kB
          Eugene Shershnev
        2. patch.tar.gz
          54 kB
          Dominik Kacprzak

        Issue Links

          Activity

            People

              gdaniels Glen Daniels
              andre.kramer@computer.org Andre Kramer
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: