Hi,
I am first time use Jasper product, I put the php-sample I getting this error ,
Warning: require_once(SOAP/Client.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\jasper\client.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'SOAP/Client.php' (include_path='.;C:\php5\pear') in C:\wamp\www\jasper\client.php on line 5
How can I slove this case?
Thank you.
Fong
Code: |
$webservices_uri = "http://localhost:8080/jasperserver/services/repository"; $namespace = "http://www.jaspersoft.com/namespaces/php"; require_once('SOAP/Client.php'); define("TYPE_FOLDER","folder"); define("TYPE_REPORTUNIT","reportUnit"); define("TYPE_DATASOURCE","datasource");</td></tr></tbody></table> |
2 Answers:
You must install the PEAR Soap package
http://pear.php.net/package/SOAP
Post Edited by Yaroslav Zenin at 11/18/08 13:23
In addition, I want to add this precision for people who might have the same problem and land like me on this page. I needed to :
* upgrade my Pear SOAP package (0.9.0 was not enought) => http://pear.php.net/package/SOAP
* install the Net_Dime package => http://pear.php.net/package/Net_DIME
After that the Notice Warning disapears :
Notice: Undefined index: content-type in /usr/share/php/SOAP/Transport/HTTP.php on line 395
The PEAR package does not seem to come in a complete package... SOAP is asking for files needed within itself.
Warning: require_once(HTTP/Request.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /stuff/share/websites/isaac/JasperPHP/SOAP/WSDL.php on line 27
Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'HTTP/Request.php' (include_path='.:/usr/share/pear:/usr/share/php') in /stuff/share/websites/isaac/JasperPHP/SOAP/WSDL.php on line 27