ali_254 Posted November 6, 2021 Share Posted November 6, 2021 I want to use soap in codeigniter 4. i download file "nusoap.php" And put it next to the project. require_once(APPPATH.'Controllers\Payment\lib\nusoap.php'); $soapclient = new soapclient('https://verify.sep.ir/Payments/ReferencePayment.asmx?WSDL'); when run project , I receive error 'soapclient not found' Please help me, how can use soap in codeigniter 4.thanks Quote Link to comment https://forums.phpfreaks.com/topic/314173-how-to-use-soap-in-codeigniter-4/ Share on other sites More sharing options...
maxxd Posted November 6, 2021 Share Posted November 6, 2021 A few things. Are you using NuSOAP? If so, the class name is `nusoap_client`, not `soapclient`. Also, please explain "And put it next to the project.". What's the value of APPPATH, and is the nusoap.php file in the folder `APPPATH.'Controllers\Payment\lib`? 1 Quote Link to comment https://forums.phpfreaks.com/topic/314173-how-to-use-soap-in-codeigniter-4/#findComment-1591813 Share on other sites More sharing options...
ali_254 Posted November 6, 2021 Author Share Posted November 6, 2021 thanks ... i found solution... for use nusoap in codeigniter 4 . download nusoap from github: https://github.com/f00b4r/nusoap and install nusoap with composer , According to the description on the github page. for use nusoap in controller , register this code: Quote use soapclient; Quote Link to comment https://forums.phpfreaks.com/topic/314173-how-to-use-soap-in-codeigniter-4/#findComment-1591825 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.