Installation trouble: Class 'WSClient' not found
Hello all,
I'm having trouble running my first PHP SOAP client.
I get the following error:
Fatal error: Class 'WSClient' not found
Yet, when I run Wamp, it appears that WSF extension is loaded, as you can see on this screenshot: http://wso2.org/files/wsfactivated.JPG.
Here is what I've done:
+ Copy wsf.dll in /ext.
+ Add wso2-wsf-php-bin-x.y.z-win32\wsf_c\lib to PATH
+ Add wsf.dll to PATH
+ Add in php.ini:
[wsf]
wsf.home="\wsf_c"
wsf.log_path="\wsf_c\logs"
wsf.log_level=3
extension=wsf.dll
extension_dir ="./ext"
extension = php_xsl.dll
include_path = ".;/"
+ Copy php5apache2.dll to Apache2/modules
+ Add in httpd.conf :
LoadModule php5_module "C:\wamp\bin\apache\apache2.2.6\modules\php5apache2_2.dll" (if I put modules/php5apache2.dll it does not work)
PHPIniDir "C:\wamp\bin\apache\apache2.2.6\bin\"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Thanks for any help,
Karl3i.
| Attachment | Size |
|---|---|
| wsfactivated.JPG | 3.67 KB |
- Login or register to post comments
- Printer friendly version
- 374 reads











Although wamp says 'wsf' is
Although wamp says 'wsf' is enabled, actually it is not loaded. you may try phpinfo to know which of your extensions actually loaded. And please check the apache error log to have an idea what has actually gone wrong.
Thanks
Dimuthu
Hello Dimuthu, Thanks for
Hello Dimuthu,
Thanks for your answer.
In the wsf_php_server.log file, I've found the following errors:
[Fri Jun 27 09:07:31 2008] [error] ..\..\util\src\dir_handler.c(219) No files in the path C:\wamp\bin\php\wso2-wsf-php-bin-1.3.2-win32\wsf_c/services.
[Fri Jun 27 09:07:31 2008] [error] ..\..\util\src\class_loader.c(161) dlerror reason: Something went wrong loading the DLL. If you happen to see this message, please note that getting the exact error form Windows is a TODO. And if possible please help fix it. :)
[Fri Jun 27 09:07:31 2008] [error] ..\..\util\src\class_loader.c(161) dlerror reason: Something went wrong loading the DLL. If you happen to see this message, please note that getting the exact error form Windows is a TODO. And if possible please help fix it. :)
[Fri Jun 27 09:07:31 2008] [info] [rampart][rampart_mod] rampart_mod initialized
[Fri Jun 27 09:07:31 2008] [info] [rampart][rampart_mod] rampart_mod shutdown
Could this explain the problem I'm encountering?
If yes, how could I fix that?
Thanks
Karl3i.
More news on the problem
Hello,
I've figured out that the behavior is depending on environment variable type: user or system.
The following works (in that sense that WSF is correctly loaded, not more log error, though I still have "WSclient" not found when running PHP sample) :
USER ENVIRONMENT VARIABLE: C:\wamp\bin\php\libxml2-2.6.32+.win32\;C:\wamp\bin\php\libxml2-2.6.32+.win32\bin;
SYSTEM ENVIRONMENT VARIABLE: C:\wamp\bin\php\wso2-wsf-php-bin-1.3.2-win32\wsf_c\lib;C:\wamp\bin\php\php5.2.5\ext\wsf.dll
If I put all in system or all in user, then I have the error "wsf.dll" is not found.
Karl3i.
Hi, I can't have an idea
Hi, I can't have an idea about the problem from your information. Can you try typing php -m in a console (i 've not check it in Linux) or using phpinfo() function and check whether wsf is correctly loaded.
Dimuthu
Running php.exe -m
Hi Dimuthu,
when I run php.exe -m, I get:
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
curl
date
dom
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mysql
mysqli
odbc
openssl
pcre
PDO
pdo_mysql
Reflection
session
SimpleXML
soap
SPL
SQLite
standard
tokenizer
wddx
wsf
xml
xmlreader
xmlwriter
xsl
zlib
[Zend Modules]
Thanks,
Karl3i.
Install from another computer
Hi,
I've tried on another computer and all went fine, I could run the samples.
Then, I copied this working environment on the first PC (files + environment variable) and unfortunately it didn't work.
So there is something special with this PC, or with the configuration of this PC.
But for the moment, I cannot see what...
Karl3i.