|
Most tools support both the official recommendations and the earlier versions of WS-Policy and WS-SecurityPolicy, allowing the versions to be used interchangeably. (Axis2 is the exception, supporting only the submission version of WS-Policy as of the current 1.5.4 release.) Despitethis flexibility, using different namespaces within a single document can create problems. There's no reason to mix WS-Policy or WS-SecurityPolicy namespaces deliberately, but it can easily happen by accident when you're combining portions of other policies in order to construct a new policy. The resulting conflicts can include both the namespaces used for elements and, in the case of token-inclusion values, the actual text values. For instance, both WS-SecurityPolicy 1.2 and 1.3 use the value http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Always to say that a token should always be included in messages. The older 1.1 version instead used the value http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always for the same purpose.
Because the meanings of XML elements are largely unchanged across versions of these standards, individual tools may choose to ignore the namespace differences when working with policy documents. Tools taking this approach will probably accept policies mixing namespaces, without any errors. In general, though, it's best to stay with the official recommendation namespace and, especially, to avoid mixing components from earlier namespaces with those from the recommendation namespace. |
|