You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I not use one php framework and have never used composer to install php packeges.
Now on my linux box i have installed composer and i go to my project dir and exec
$ composer require php2wsdl/php2wsdl
this create one dir structure:
./vendor
--- composer
----- php2wsdl
------ wingu
autolad.php
In the file mysoapclass.php i insert
require DIR . '/vendor/autoload.php';
and at end of this file i insert:
line 261-268
$class = 'ibr';
$serviceURI = "http://127.0.0.1/soap/finale";
$wsdlGenerator = new PHPClass2WSDL($class, $serviceURI);
// Generate thw WSDL from the class adding only the public methods that have @soap annotation.
$wsdlGenerator->generateWSDL(true);
$wsdlXML = $wsdlGenerator->dump();
file_put_contents ( 'finale.wsdl', $wsdXML );
running 'php mysoapclass.php' i get
PHP Fatal error: Uncaught Error: Class 'PHPClass2WSDL' not found in /var/www/html/soap/finale/mysoapclass.php:263
I have try some require/include modification without success.
Thank's for your reply
Gian Luca
The text was updated successfully, but these errors were encountered:
I not use one php framework and have never used composer to install php packeges.
Now on my linux box i have installed composer and i go to my project dir and exec
$ composer require php2wsdl/php2wsdl
this create one dir structure:
./vendor
--- composer
autolad.php
In the file mysoapclass.php i insert
require DIR . '/vendor/autoload.php';
and at end of this file i insert:
line 261-268
$class = 'ibr';
$serviceURI = "http://127.0.0.1/soap/finale";
$wsdlGenerator = new PHPClass2WSDL($class, $serviceURI);
// Generate thw WSDL from the class adding only the public methods that have @soap annotation.
$wsdlGenerator->generateWSDL(true);
$wsdlXML = $wsdlGenerator->dump();
file_put_contents ( 'finale.wsdl', $wsdXML );
running 'php mysoapclass.php' i get
PHP Fatal error: Uncaught Error: Class 'PHPClass2WSDL' not found in /var/www/html/soap/finale/mysoapclass.php:263
I have try some require/include modification without success.
Thank's for your reply
Gian Luca
The text was updated successfully, but these errors were encountered: