Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-143

Better management of namespace declarations....

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.5.6
    • WSS4J Handlers
    • None

    Description

      For performance reasons, (and readability) it would be better if wss4j didn't duplicate namespace decls on all the child elements if they are redundant or not needed. For example:

      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1606023307">
      <wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2008-09-26T20:14:28.841Z</wsu:Created>
      <wsu:Expires xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2008-09-26T20:19:28.841Z</wsu:Expires>
      </wsu:Timestamp>

      could be shortened to:
      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1606023307">
      <wsu:Created>2008-09-26T20:14:28.841Z</wsu:Created>
      <wsu:Expires>2008-09-26T20:19:28.841Z</wsu:Expires>
      </wsu:Timestamp>

      That would save bandwidth, make parsing faster (less to parse/process), the DOM model smaller in memory, etc...

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: