For vector layer we have solution to get the feature with in the bounding box.
PFB the solution
http://tsauerwein.github.io/ol3/animation-flights/examples/box-selection.html
but, Is there any respective solution for for WMS layer?
Is there any respective solution for for WMS layer?
No from my knowledge. It seems confirmed from this topic "Use GetFeatureInfo with OpenLayers and a Bounding Polygon" on GIS.stackexchange forum and from reading the official GeoServer WMS GetFeatureInfo documentation section