Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3021

Multiply namespace declaration in envelope elements

    XMLWordPrintable

Details

    Description

      While building soap envelope JbossWS declares name-space several times.

      For example,
      method returns array of string records, where some of them are null:
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header/>
      <env:Body>
      <ns2:getNilElementResponse xmlns:ns2="http://service.domain.com/">
      <return>
      <values>
      <records>test</records>
      <records xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      <records>test1</records>
      <records xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      </values>
      </return>
      </ns2:getNilElementResponse>
      </env:Body>
      </env:Envelope>

      It would be good to place `xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"` to the `env:body` or to the parent tag.
      This issue is critical, when huge amount of null data is transfered to customer application.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chernser Sergey Chernov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: