Most WSDL files are accepted during consumption, but some files can cause problems:
Fetching records through a filter
When you import WSDL for consuming a web service, the WSDL shows an HTTP endpoint instead of an HTTPS endpoint. When you consume the WSDL with an HTTP header through a filter, no records are fetched.
After import of WSDL, modify the endpoint to https, and call the filter.
The following screenshot shows the updated endpoint: