You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bharath Ganesh (JIRA)" <ji...@apache.org> on 2007/10/31 06:23:50 UTC
[jira] Created: (CXF-1157) WS-Policy reference issues
WS-Policy reference issues
--------------------------
Key: CXF-1157
URL: https://issues.apache.org/jira/browse/CXF-1157
Project: CXF
Issue Type: Bug
Affects Versions: 2.0.2
Reporter: Bharath Ganesh
RM and Addressing are not getting enabled while using the WS-RM policy assertions using a policy reference in the WSDL.
Sample wsdl snippet:
<wsdl:service name="CartSLSBBeanService">
<wsdl:port binding="ns1:CartSLSBBeanServiceSoapBinding" name="CartSLSBBeanPort">
<wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/02/addressing/wsdl"/>
<soap:address location=" http://localhost:8181/cart/cart"/>
<wsp:PolicyReference xmlns:wsp="http://www.w3.org/2006/07/ws-policy" URI="#RM"/>
</wsdl:port>
</wsdl:service>
<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
xmlns:wsu=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="RM">
<wsam:Addressing xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
<wsp:Policy/>
</wsam:Addressing>
<wsrmp:RMAssertion xmlns:wsrmp="http://schemas.xmlsoap.org/ws/2005/02/rm/policy">
<wsrmp:BaseRetransmissionInterval Milliseconds="10000"/>
</wsrmp:RMAssertion>
</wsp:Policy>
The policy was being referred through the element: <wsp:PolicyReference xmlns:wsp="http://www.w3.org/2006/07/ws-policy" URI="#RM"/>
But this was not causing addressing and rm to be enabled. (note: policy engine is enabled)
Workaround: Embed the policy into the service, instead of Policy reference)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.