Enabling and Customizing WS-Policy

Previous TopicNext TopicContents

P6 EPPM Web Services uses an external attachment file to support WS-Policy. Since the reference to the external file is commented out in the default P6 EPPM Web Services installation, WS-Policy for P6 EPPM Web Services is disabled by default. However, you can enable WS-Policy by uncommenting the reference to the external file before deploying P6 EPPM Web Services to the server.

The external file, policies.xml, requires HTTPS and WS-Addressing for P6 EPPM Web Services. However, if you want to remove either of these requirements from a P6 EPPM Web Services, you can customize WS-Policy by removing the HTTPS and/or WS-Addressing sections for that service from the external attachment file.

To enable and customize WS-Policy:

  1. Extract the cxf.xml and policies.xml files from the p6ws.ear file.
    1. Navigate to the p6ws.ear file and use this command to extract to extract the p6ws.war file:
      • jar xf p6ws.ear p6ws.war
    2. Execute the following commands to extract the cxf.xml and policies.xml files from the p6ws.war file:
      • jar xf p6ws.ear WEB-INF/classes/cxf.xml
      • jar xf p6ws.ear WEB-INF/classes/policies.xml
  2. To uncomment the reference in the cxf.xml file to the external attachment file:
    1. Open the cxf.xml file in a text editor.
    2. Find following line in the cxf.xml file:
      • <!-- <ref bean="policyIn" /> -->
    3. Uncomment this line by removing the the beginning and the end of the comment tag:
      • <ref bean="policyIn" />
    4. Find following lines in the cxf.xml file:
      • <!--
      • <p:externalAttachment location="classpath:/policies.xml"/>
      • -->
    5. Remove the lines beginning with <!-- and --> to uncomment the external file reference.
    6. Find following lines in the cxf.xml file:
      • <!-- <p:policies/> -->
    7. Uncomment this line by removing the the beginning and the end of the comment tag:
      • <p:policies/>
  3. Customize the policies.xml file.
    1. Open the policies.xml in a text editor.
    2. Customize the HTTPS Policy definitions section. For example, to remove the requirement to use HTTPS with the Spread service, remove these lines from the HTTPS Policy definitions section of the policies.xml file:
      • <wsa:EndpointReference>
      • <wsa:Address>/SpreadService</wsa:Address>
      • </wsa:EndpointReference>
    3. Customize the WS Addressing Policy definitions section. For example, to remove the requirement to use WS Addressing with the Spread service, remove the following lines from the WS Addressing Policy definitions section of the policies.xml file:
      • <wsa:EndpointReference>
      • <wsa:Address>/SpreadService</wsa:Address>
      • </wsa:EndpointReference>
  4. Update the p6ws.ear file with the new cxf.xml file and policies.xml files.
    1. Ensure that you are in the same directory as the p6ws.ear file.
    2. Use the following commands to update the p6ws.war file:
      • jar uf p6ws.war WEB-INF/classes/cxf.xml
      • jar uf p6ws.war WEB-INF/classes/policies.xml
    3. Use the following command to update the p6ws.ear file with updated the p6ws.war file:

      jar uf p6ws.ear p6ws.war

    4. Delete the p6ws.war file and the WEB-INF directory.

Tips

The default policies.xml file is separated into two sections:

See Also

Prerequisites for P6 EPPM Configuration

System Requirements

Uninstalling Previous Versions of P6

Installing Applications



Legal Notices
Copyright © 1999, 2015, Oracle and/or its affiliates. All rights reserved.

Last Published Wednesday, July 29, 2015

PDF Library