Tips on avoiding common WSF/PHP installation issues.

Tuesday, October 21, 2008

Here are some useful tips avoid common fit falls in installing WSF/PHP.

1. Often users complain that When the run the sample clients, they see the response

"ERROR, WS Client not Found'.

This is often due not setting the wsf.home entry correctly. Make sure to set wsf.home directory to point to wsf_c  directory if your are on windows or using pecl installation with WSF/C library installed separately.

Another reason for this is not adding the wsf_c/lib directory to PATH environment variable if you are on a windows system.

2.  WSDL Generation and WSDL mode does not work.

This is often due to you not having added the scripts folder found inside the wsfphp distribution to the php.ini's include path entry.

3. Compile WSF/PHP using source gives errors.

This could be due to two issues.

1. First you need to have installed the dev-libraries of PHP, Libxml2 and OpenSSL.

2. Incorrect configure options provided to the configure script.

          Often you do not need to provide any options to the configure script since it is written to work as

./configure, make , make install sequence.

3 comments:

ebuyerfb said...

How about this issue? I'm sure I've messed up some configuration somewhere.

Warning: WSService::reply(wsf_wsdl.php) [wsservice.reply]: failed to open stream: No such file or directory in /home/.dairy/qtyman/qtyman.com/webapp3/QtyMan.php on line 408

That line is just the call to: $service->reply();


I've installed a custom PHP 5.2.6 on Dreamhost, installed WSF, and generated my server code from a WSDL file using the online version of wsdl2php.

When I run "php QtyMan.php" I just get the error:
please provide reply function's argument SOAP Envelope XML string

I assume that is expected.

nandikajayawardana said...

I guess you may not have added the scripts directory to your php.ini include path.

Filipino Monkey said...

When i installed it the scripts file was never copied to the destination dir from the source dir. copy the scripts dir somewhere and add the path to it in inlude_path in php.ini