Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-320

Allow StAXSOAPModelBuilder to fallback to XML infoset if the document is not SOAP

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently, StAXOMBuilder can only be used to build an XML infoset, while StAXSOAPModelBuilder can only be used to build a SOAP infoset model. However in some cases it is impossible to determine beforehand whether a document or message is SOAP or plain XML. To handle this case with the current version of Axiom, the only available strategy is to start processing the document with one of the two builders and restart the processing with the other if the document doesn't match the type of builder. The proposal is to modify StAXSOAPModelBuilder so that it (optionally) falls back to plain XML if it detects that the document element is not a SOAP envelope. This should be feasible since StAXSOAPModelBuilder extends StAXOMBuilder.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                veithen Andreas Veithen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: