//Policies
MetaDataExtension ext = endpoint.getExtension(Constants.URI_WS_POLICY);
if (ext != null)
{
PolicyMetaExtension policyExt = (PolicyMetaExtension)ext;
for (Policy policy : policyExt.getPolicies(PolicyScopeLevel.WSDL_PORT))
{
addPolicyDefinition(policy);
addPolicyReference(policy, wsdlEndpoint);
}
for (Policy policy : policyExt.getPolicies(PolicyScopeLevel.WSDL_PORT_TYPE))
{
addPolicyDefinition(policy);
addPolicyURIAttribute(policy, wsdlInterface);
}
for (Policy policy : policyExt.getPolicies(PolicyScopeLevel.WSDL_BINDING))
{
addPolicyDefinition(policy);
addPolicyReference(policy, wsdlBinding);
}
}