THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
uri | REQUIRED the location of the file containing the Policy definition |
includeInWSDL | Whether to include the policy in the generated WSDL when generating a wsdl. Default it true |
placement | Specify where to place the policy |
faultClass | if placement is a FAULT, this specifies which fault the policy would apply to |
Note | ||
---|---|---|
When using a custom Spring configuration, you need to import | ||
Code Block | ||
java | java |
{note}When using a custom Spring configuration, you need to import META-INF/cxf/cxf-extension-policy.xml |
Code Block | ||||
---|---|---|---|---|
| ||||
{note @Policies({ @Policy(uri = "annotationpolicies/TestInterfacePolicy.xml"), @Policy(uri = "annotationpolicies/TestImplPolicy.xml", placement = Policy.Placement.SERVICE_PORT), @Policy(uri = "annotationpolicies/TestPortTypePolicy.xml", placement = Policy.Placement.PORT_TYPE) } ) @WebService public static interface TestInterface { @Policies({ @Policy(uri = "annotationpolicies/TestOperationPolicy.xml"), @Policy(uri = "annotationpolicies/TestOperationInputPolicy.xml", placement = Policy.Placement.BINDING_OPERATION_INPUT), @Policy(uri = "annotationpolicies/TestOperationOutputPolicy.xml", placement = Policy.Placement.BINDING_OPERATION_OUTPUT), @Policy(uri = "annotationpolicies/TestOperationPTPolicy.xml", placement = Policy.Placement.PORT_TYPE_OPERATION), @Policy(uri = "annotationpolicies/TestOperationPTInputPolicy.xml", placement = Policy.Placement.PORT_TYPE_OPERATION_INPUT), @Policy(uri = "annotationpolicies/TestOperationPTOutputPolicy.xml", placement = Policy.Placement.PORT_TYPE_OPERATION_OUTPUT) } ) int echoInt(int i); } |