PrestashopUser03 Posted May 22, 2023 Share Posted May 22, 2023 Bonjour à tous, Je souhaite utiliser SoapClient dans un module front controller afin d'appeler une API de cette façon : $client = new SoapClient( 'mon_url', [ 'trace' => true, 'use' => SOAP_LITERAL, 'encoding' => 'UTF-8', ] ); Mais lorsque je le fais, je reçois cette erreur : "Attempted to load class "SoapClient" from the global namespace. Did you forget a "use" statement?" Donc ma question est simple : comment utiliser SoapClient dans un module front controller legacy ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now