CXF-8977: Add support for MTOM Serialization Policy Assertion 1.1#1685
CXF-8977: Add support for MTOM Serialization Policy Assertion 1.1#1685daspilker wants to merge 2 commits intoapache:mainfrom
Conversation
Review & FixesI've reviewed this PR and it looks good overall. Clean, well-structured change that correctly adds support for the MTOM Serialization Policy Assertion 1.1 namespace ( What I did
Review notesThe production code changes are clean and well-designed:
|
gnodet
left a comment
There was a problem hiding this comment.
Looks good. Rebased onto current main, fixed a minor extra blank line in MetadataConstants. All tests pass, checkstyle clean. Clean and well-structured change.
Summary
Add support for the W3C MTOM Serialization Policy Assertion 1.1 (WS-MTOMPolicy) alongside the existing 1.0 assertion (
OptimizedMimeSerializationfromhttp://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization).This allows CXF to process WSDL/policy documents that use the newer MTOM 1.1 policy namespace, which uses the
{http://www.w3.org/2007/08/soap12-mtom-policy}MTOMelement instead of the older{http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization}OptimizedMimeSerializationelement.Changes
MetadataConstants: AddMTOM11_ASSERTION_QNAMEconstant for the W3C MTOM 1.1 namespaceMTOMAssertionBuilder: Register and build assertions for both MTOM 1.0 and 1.1 QNamesMTOMPolicyInterceptor: Refactor to handle both assertion types via extractedassertAssertion()methodMTOMPolicyInterceptorProvider: Register both assertion typesTests
testRequiredMtom11andtestOptionalMtom11tests mirroring the existing 1.0 testsmtom11-policy.xmlandmtom11-policy-optional.xmlpolicy files using the W3C MTOM 1.1 namespacesetupServer()to accept a policy resource name instead of a boolean flagJIRA
CXF-8977