I found the solution here, on this forum :) . To secure only endpoint but not wsdl you need to secure only POST method:
<security-constraint>
<web-resource-collection>
<web-resource-name>TestFormatsService</web-resource-name>
<url-pattern>/TestFormatsService</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>friend</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<role-name>friend</role-name>
</security-role>