The paper presents a framework for web service selection that combines quality of service (QoS) with semantic similarity to effectively rank candidate services based on user preferences. It employs an associative classification algorithm to classify services into different QoS levels and utilizes these classifications in a two-phase selection process to ensure optimal service composition despite dynamic environments. Experimental results demonstrate that the proposed method satisfies non-functional requirements, enhancing the effectiveness of service selection in complex scenarios.