Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-243

AxiomSoapHeaderElement has no convenient way to access child elements of the header element

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.5 M2
    • Component/s: Core
    • Labels:
      None

      Description

      If you are using Axiom-based messages and you are trying to inspect complex SOAP header elements (say in an interceptor), then it is not easy to access the child elements of a AxiomSoapHeaderElement.

      Ideally the general SoapHeaderElement interface would allow this. But the AxiomSoapHeaderElement does not either. The getAxiomHeaderBlock() method is protected too.

      To get access to the underlying Axiom elements you have to go all the up to the AxiomSoapMessage and use getAxiomMessage() and drill down from there.

      At a minimum it would be nice if the various AxiomSoap* classes had public methods to access the underlying Axiom elements.

        Issue Links

          Activity

          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          There is a good reason I made these classes non-public: I cannot guarantee that the interface will stay the same, as new Axiom versions are released. Therefore, I am resolving this as won't fix.

          Also, the org.sfrwk.ws.soap package lacks an abstraction for individual elements. We could add this, but that impose large requirements on future implementations (besides SAAJ and Axiom).

          Show
          arjen.poutsma Arjen Poutsma added a comment - There is a good reason I made these classes non-public: I cannot guarantee that the interface will stay the same, as new Axiom versions are released. Therefore, I am resolving this as won't fix. Also, the org.sfrwk.ws.soap package lacks an abstraction for individual elements. We could add this, but that impose large requirements on future implementations (besides SAAJ and Axiom).
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing 1.5 M2 issues.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Closing 1.5 M2 issues.

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              jim Jim Cummings
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: