Thanks Dimuthu, the problem turned out to be that path references included the samples folder. I had copied the contents of the folder and placed it under htdocs. Adding the samples layer fixed it all.
I am a lot closer now, thanks for your help. Here are the issues of the day :) 1] I am not sure why the documentation refers to localhost:8080. Why the special need for 8080? The trader client pages currently don't work on that port. (example http://localhost:8080/php_stocktrader/trader_client/glossary.php) removing the 8080 part allows them to work. Am I missing something? Same apprehension goes for the various weird port numbers in the SQL script. 2] Attempting to actually log in fails. Nothing happens except for a "website cannot display the page" error message. After checking a variety of logs, I determined that the php_xsl.dll file wasn't installed. So I re-installed PHP. You probably should put a note of that in the wiki. Now I am still getting the same error, however with more details in the apache log: [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: file_get_contents(dynamic_invocation/xslt/wsdl11to20.xsl10.xsl) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 162, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: DOMDocument::loadXML() [<a href='domdocument.loadxml'>domdocument.loadxml</a>]: Empty string supplied as input in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 164, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: XSLTProcessor::importStylesheet() [<a href='xsltprocessor.importstylesheet'>xsltprocessor.importstylesheet</a>]: compilation error in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 166, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: XSLTProcessor::importStylesheet() [<a href='xsltprocessor.importstylesheet'>xsltprocessor.importstylesheet</a>]: xsltParseStylesheetProcess : empty stylesheet in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 166, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: XSLTProcessor::transformToXml() [<a href='xsltprocessor.transformtoxml'>xsltprocessor.transformtoxml</a>]: No stylesheet associated to this object in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 179, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: DOMDocument::loadXML() [<a href='domdocument.loadxml'>domdocument.loadxml</a>]: Empty string supplied as input in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 180, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Warning: file_get_contents(dynamic_invocation/xslt/wsdl2sig.xslt) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in D:\\Projects\\WS02\\WSF_PHP\\wso2-wsf-php-bin-snapshot-win32\\scripts\\dynamic_invocation\\wsf_wsdl_util.php on line 218, referer: http://localhost/php_stocktrader/trader_client/login.php [Fri Feb 27 18:18:33 2009] [error] [client 127.0.0.1] PHP Fatal error: WSClient::getProxy() [<a href='wsclient.getproxy'>wsclient.getproxy</a>]: Error occurred in script: Error creating intermediate model in C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\php_stocktrader\\trader_client\\request_processor.php on line 529, referer: http://localhost/php_stocktrader/trader_client/login.php Can you please shed some light there? thanks -----Original Message----- From: Dimuthu Gamage [mailto:[email protected]] Sent: Thursday, February 26, 2009 5:49 PM To: [email protected] Subject: Re: need help building WS02 stack If you get this error message, the client side should be workiing correctly. But there should be problem in the server side. You can find the problem from the log files. (wsf_php_client.log, wsf_php_server.log). it is in where you put wsf.log_path. 1st make sure that you have a valid service endpoint. in the echo sample it should be "http://localhost/samples/echo_service.php". so you should have the echo_service.php script inside the sample directory of the web root (insdie htdocs) you can type that serivce endpoint in the browser and check for its availability. Thanks Dimuthu On Fri, Feb 27, 2009 at 5:42 AM, Abu Obeida Bakhach < [email protected]> wrote: > Actually I figured out the problem > > The manual mentioned > LoadModule php5_module modules/php5apache2.dll > > While the correct thing was > > LoadModule php5_module modules/php5apache2_2.dll (note the _2) > > Now whenever I click on the sample code links, like > http://localhost/echo_client.php > > I get > Message = Error , NO Response Received > > Is that a sample config issue, or reflective of my installation? > > Thanks, > > -----Original Message----- > From: Dimuthu Gamage [mailto:[email protected]] > Sent: Wednesday, February 25, 2009 7:18 PM > To: [email protected] > Subject: Re: need help building WS02 stack > > Hi Abue Obeida, > > yes. you need to add the following line to apache to run .php extension > with > php extension. > > AddType application/x-httpd-php .php > > You may have missed it in the README.INSTALL_WIN32 > > Thanks > Dimuthu > > > On Thu, Feb 26, 2009 at 8:03 AM, Abu Obeida Bakhach < > [email protected]> wrote: > > > Thanks Dimuthu! > > I deployed the binaries, and copied the WSo2 sample code. The main page > > worked, but I nocited that clicking on some the client tests would > generate > > an HTML page with the PHP code displayed, instead of actually running > them. > > Would that be due to an apache setting? > > I tried running it again, and apache server refused to start. I will be > > debugging it tomorrow. > > thanks > > > > -----Original Message----- > > From: Dimuthu Gamage [mailto:[email protected]] > > Sent: Tuesday, February 24, 2009 1:46 AM > > To: [email protected] > > Subject: Re: need help building WS02 stack > > > > Hi Abu Obeida, > > > > We have uploaded the nightly build[1]. You need to try openssl version > > 0.9.8d or 0.9.8e. If you can't find the library, use it from here[2] > (this > > is 32-bit version). > > > > [1] http://wso2.org/downloads/wsf/php/nightly-build > > [2] > http://people.apache.org/~dimuthu/public/downloads/OpenSSL-0.9.8d.zip<http://people.apache.org/%7Edimuthu/public/downloads/OpenSSL-0.9.8d.zip> > <http://people.apache.org/%7Edimuthu/public/downloads/OpenSSL-0.9.8d.zip> > > > > Thanks > > Dimuthu > > > > On Fri, Feb 20, 2009 at 6:37 AM, Abu Obeida Bakhach < > > [email protected]> wrote: > > > > > I went ahead and tried building the wsf/phph stack, and I ran into more > > > issues. Can I get some help with the these points: > > > > > > 1- I got WSF/PHP from the trunk [1] and started downloading the > > > prerequisites: I noticed most of them refer to win32. However I have > > Vista > > > 64-bit, would that be a problem in general? > > > > > > 2- in the case of OpenSSL, I tried to install the 0.09.8J 64-bit > version, > > > Is my version choice correct? > > > (basically I am checking to see if 64 bit is OK) > > > > > > 3- how exactly can I build in visual studio? The build script refers to > > > unix nmake files and stuff... > > > D:\Projects\WS02\WSF_PHP>build > > > 1 file(s) copied. > > > 1 file(s) copied. > > > 'vcvars32.bat' is not recognized as an internal or external command, > > > operable program or batch file. > > > 'nmake' is not recognized as an internal or external command, > > > operable program or batch file. > > > A subdirectory or file wso2-wsf-php-bin-2.0.0-win32 already exists. > > > File not found - wso2-wsf-c-bin-2.0.0 > > > 0 File(s) copied > > > The system cannot find the path specified. > > > 'nmake' is not recognized as an internal or external command, > > > operable program or batch file. > > > The system cannot find the path specified. > > > The system cannot find the path specified. > > > > > > 4- My VS 9.0 installation directory does not have any vcvars32.bat, > what > > is > > > that about? > > > > > > > > > I really would prefer to have the build binaries for WSF/PHP available > > > somewhere., any update on that? > > > > > > > > > Thanks, > > > > > > > > > > > > -----Original Message----- > > > From: Abu Obeida Bakhach [mailto:[email protected]] > > > Sent: Wednesday, February 18, 2009 6:23 PM > > > To: [email protected] > > > Subject: RE: PHP and WSAS stocktrader committed to trunk > > > > > > Thanks for the details! > > > I will be waiting for a binary distribution of WSF/PHP to be available. > > > When do you think that will be? > > > > > > > > > -----Original Message----- > > > From: Dimuthu Gamage [mailto:[email protected]] > > > Sent: Wednesday, February 18, 2009 6:48 AM > > > To: [email protected] > > > Subject: Re: PHP and WSAS stocktrader committed to trunk > > > > > > Hi Abu Obeida, > > > > > > I think you already have figured this out. Just trying to answer the > > > questions in brief. > > > > > > On Wed, Feb 18, 2009 at 1:12 AM, Abu Obeida Bakhach < > > > [email protected]> wrote: > > > > > > > Hello Shankar, > > > > I would like to give this a try, can you help with some pointers on > the > > > > following newbie questions: > > > > > > > > - I understand that WSF/PHP is an extension to Axis2/C. So I need to > > > > install both of them, does Axis2 rely on some other apache web server > > as > > > > well? > > > > > > > > > When you download WSF/PHP axis2/c will be packed within the > distribution > > > (inside wsf_c/axis2 directory). In fact it is correct to mention > wsf/php > > as > > > an extension to PHP. And Axis2/C (and all the other projects like > Apache > > > Rampart/C, Sandesha/C) is like embeded in WSF/PHP to get the web > services > > > functionality. > > > > > > You need web server (apache or IIS) to run PHP. And WSF/PHP will run on > > > there as an extension to PHP. > > > > > > So there are 2 steps of configurations. > > > 1. Configure Apache to run PHP (i.e. httpd.conf) > > > 2. Configure PHP to enable wsf/php (i.e. in php.ini) > > > > > > > > > > > > > > - I read somewhere that "WSO2 Web Services Framework/PHP (WSO2 > WSF/PHP) > > > > makes use of GNOME XML library." So I assume I need to install that > as > > > well. > > > > > > > > > Yes. WSF/PHP uses libxml library. You can find the download links in > > the > > > README_INSTALL_WIN32 file. > > > > > > > > > > > - Since this is PHP, don't I need some runtime that can understand > PHP? > > > Is > > > > there a PHP sdk/server I need to install? I figured I should, so I > get > > > one > > > > off php.net > > > > > > > > > Yea. you need to download php to use wsf/php. > > > > > > > > > > > > > > > > > > Any other dependencies that I need to load and run PHP stocktrader? > > > > > > > > > To run PHP stocktrader (in the stonehenge turnk), you need to install > > > WSF/PHP from SVN trunk[1], You can't use wsf/php 2.0.0 (the latest > > > distribution) as we have updated stocktrader to use some wsdl mode API > > > changes in post wsf/php 2.0. I think this should be updated in the > > WSF/PHP > > > intallation guide as well. You need to get the WSF/PHP source from the > > svn > > > and build it. Meanwhile I will check the possibility of hosting a > nightly > > > build of windows binary. > > > > > > > > > [1] https://wso2.org/repos/wso2/trunk/wsf/php > > > > > > Thanks > > > Dimuthu > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > -----Original Message----- > > > > From: [email protected] [mailto:[email protected]] On > > > Behalf > > > > Of Uthaiyashankar > > > > Sent: Thursday, February 12, 2009 9:18 AM > > > > To: [email protected] > > > > Subject: PHP and WSAS stocktrader committed to trunk > > > > > > > > Hi, > > > > > > > > I have moved and committed PHP and WSAS stocktrader to trunk. You can > > > find > > > > the installation guide in [1]. Please try them and report the > > > > bugs/problems. > > > > > > > > > > > > To try PHP stocktrader, get WSF/PHP from either trunk [2] or from > > nightly > > > > build [3]. > > > > > > > > Currently, WSAS Stocktrader is dependent on jdts JDBC driver [4], > which > > > is > > > > having LGPL licence. Will it be a problem to have this dependency? > > > > > > > > Regards, > > > > Shankar > > > > > > > > [1] > > > > > > > > > > > > > > http://cwiki.apache.org/confluence/display/STONEHENGE/Stonehenge+Stocktrader+Installation+Guide > > > > [2] https://wso2.org/repos/wso2/trunk/wsf/php > > > > [3] http://wso2.org/downloads/wsf/php/nightly-build > > > > [4] http://jtds.sourceforge.net/ > > > > > > > > -- > > > > S.Uthaiyashankar > > > > Software Architect > > > > WSO2 Inc. > > > > http://wso2.com/ - "The Open Source SOA Company" > > > > > > > > > > > > > > > > -- > > > Thanks, > > > Dimuthu Gamage > > > > > > http://www.dimuthu.org > > > http://www.wso2.org > > > > > > > > > > > > -- > > Thanks, > > Dimuthu Gamage > > > > http://www.dimuthu.org > > http://www.wso2.org > > > > > > -- > Thanks, > Dimuthu Gamage > > http://www.dimuthu.org > http://www.wso2.org > -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org
