June 2017
Intermediate to advanced
536 pages
9h 49m
English
However, before we move onto the client, let's take a quick look at WSDL. The @soap tag used on the ServiceProxy class methods has nothing to do with the functioning of SoapServer as it is now. We used it merely because of the php2wsdl library that enables us to auto-generate a WSDL file based on the provided class. The php2wsdl library is provided as a composer package, which means we can install it by simply running the following command within the soap-service/server directory:
composer require php2wsdl/php2wsdl
Once installed, we can create the soap-service\server\wsdl-auto-gen.php file with the following content:
<?phprequire_once __DIR__ . '/vendor/autoload.php';require_once __DIR__ . '/ServiceProxy.php';$class ...
Read now
Unlock full access