QUESTION:
When the extension is enabled on my site M2.4.3, SOAP stops working with error: The "array" class doesn't exist and the namespace must be specified (command setup:di:compile was run).
This also applies to default API endpoints like /soap/default?wsdl&services=backendModuleServiceV1
[2022-03-28 08:26:27] main.CRITICAL: Report ID: webapi-6241713325a80; Message: The "array" class doesn't exist and the namespace must be specified. Verify and try again. {"exception":"[object] (Exception(code: 0): Report ID: webapi-6241713325a80; Message: The \"array\" class doesn't exist and the namespace must be specified. Verify and try again. at /home/mrat/magento/vendor/magento/framework/Webapi/ErrorProcessor.php:208, LogicException(code: 0): The \"array\" class doesn't exist and the namespace must be specified. Verify and try again. at /home/mrat/magento/vendor/magento/framework/Reflection/TypeProcessor.php:143)"} []
When we disable the module, the error is gone.
Can you please provide a solution for this?
ANSWER:
To fix this error, please edit the file app/code/Bss/CustomerApproval/Api/CustomerApprovalManagementInterface.php as below:

If you need any further assistance, please feel free to contact us. If you might care, here are some information about BSS Commerce:
BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.
We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.
For B2B businesses, our Magento B2B Extension by BSS Commerce is a flagship and widely adopted solution globally, offering advanced pricing, company account management, and streamlined workflows.
Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article