You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-dev@incubator.apache.org by Abu Obeida Bakhach <Ab...@microsoft.com> on 2009/02/20 01:07:22 UTC
need help building WS02 stack
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:Abu.Obeida@microsoft.com]
Sent: Wednesday, February 18, 2009 6:23 PM
To: stonehenge-dev@incubator.apache.org
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:dimuthuc@gmail.com]
Sent: Wednesday, February 18, 2009 6:48 AM
To: stonehenge-dev@incubator.apache.org
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 <
Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On Behalf
> Of Uthaiyashankar
> Sent: Thursday, February 12, 2009 9:18 AM
> To: stonehenge-dev@incubator.apache.org
> 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
Re: need help building WS02 stack
Posted by Dimuthu Gamage <di...@gmail.com>.
Hi,
I just downloaded the nightly build,
http://wso2.org/downloads/wsf/php/nightly-build that we asked you to test
with.Looks like it too has the problem of not having the
"dynamic_invocation/xslt/". Could be a problem in the nightly build scripts.
One quick option you have is to set the include_path directive to some the
script directory of the wsf/php svn trunk. Alternatively I have uploaded a
build from computer here which you can try out from,
http://downloads.dimuthu.org/bins/wso2-wsf-php-bin-SNAPSHOT-win32.zip
Thanks
Dimuthu
On Tue, Mar 10, 2009 at 8:07 AM, Dimuthu Gamage <di...@gmail.com> wrote:
> Hi Abu Obeida,
>
> Can you check that you set the complete scripts directory to the php.ini
> directive include_path. There should be a directory
> "dynamic_invocation/xslt/" that actually contains the file
> "wsdl11to20.xsl10.xsl" . Look like somehow it is not copied.
>
> Thanks
> Dimuthu
>
>
> On Tue, Mar 10, 2009 at 6:38 AM, Abu Obeida Bakhach <
> Abu.Obeida@microsoft.com> wrote:
>
>> Shankar,
>> I did run the scripts as part of the original process. Here is what the
>> table details
>>
>> SERVICENAME URL
>> PHP_BS
>> http://localhost:8080/php_stocktrader/business_service/business_svc.php
>> PHP_OPS
>> http://localhost:8080/php_stocktrader/order_processor/order_processor_svc.php
>> PHP_OPSSEC
>> http://localhost:8080/php_stocktrader/order_processor/order_processor_svc_msec.php
>>
>> CLIENTTOBS and BSTOOPS are empty. Are they supposed to be like that?
>>
>> Anyways, going back to the main issue, I still get a HTTP 500 error
>> message whenever I try to access any of those links. I am not sure what is
>> needed to be done to enable accessing those links? I am seeing the same
>> error in the error.log as in my previous email a week ago... Can you please
>> help me understand wwhat needs to be resolved here?
>> For example, what is the 'intermediate model', why is this line producing
>> an empty string?
>> $xslt_str = file_get_contents(WSF_WSDL1TO2_XSL_LOCATION, TRUE);
>>
>> If you need any log files please let me know.
>>
>> Thanks,
>>
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 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
>> [Mon Mar 09 17:56:04 2009] [error] [client 127.0.0.1] PHP Fatal error:
>> WSService::reply() [<a href='wsservice.reply'>wsservice.reply</a>]: Error
>> occurred in script: Error creating intermediate model in C:\\Program Files
>> (x86)\\Apache Software
>> Foundation\\Apache2.2\\htdocs\\php_stocktrader\\business_service\\business_svc.php
>> on line 437
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
>> Sent: Monday, March 09, 2009 3:09 AM
>> To: stonehenge-dev@incubator.apache.org
>> Subject: Re: need help building WS02 stack
>>
>> Hi,
>>
>> You have to run database scripts in
>>
>> https://svn.apache.org/repos/asf/incubator/stonehenge/trunk/stocktrader/php/resources/db_scripts
>>
>> This will create tables with name "SERVICE" (which says what are the
>> endpoints of services), "CLIENTTOBS" (which tells what client connects to
>> what business service), and "BSTOOPS" (which tells what business service
>> connects to what order processor service). Configuration service uses
>> them.
>> You have to modify entries in "SERVICE" table and give correct endpoint
>> address.
>>
>> All the clients and business services gets the end point address of other
>> service (where it should be connected to) from config service. It gives us
>> the ability to switch between implementations in runtime.
>>
>> Regards,
>> Shankar
>>
>> On Mon, Mar 9, 2009 at 12:56 PM, Abu Obeida Bakhach <
>> Abu.Obeida@microsoft.com> wrote:
>>
>> > Hello Shankar,
>> > I've left this for a while, resuming it again:
>> >
>> > I've configured apache to use port 8080, and it seems working fine.
>> > However, I am not understanding the config service endpoint, its not
>> > working, and I think I need a little more context on what it's supposed
>> to
>> > do..
>> >
>> > Did you give the config service endpoint? You have to change the end
>> point
>> > address of the services in "Services" table. (I think you still have
>> 8080
>> > problem to get the connectivity to config service and business service).
>> > Please also check whether config service end point is correct (remember
>> the
>> > 8080). I Admit, we have to put all these details in the wiki..
>> >
>> > Also can you please clarify what do you mean by 'services table'?
>> >
>> > I would definitely appreciate any more info, here or on the wiki.
>> >
>> > Thanks,
>> >
>> > -----Original Message-----
>> > From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
>> > Sent: Friday, February 27, 2009 7:13 PM
>> > To: stonehenge-dev@incubator.apache.org
>> > Subject: Re: need help building WS02 stack
>> >
>> > Hi,
>> >
>> > See my comments...
>> >
>> >
>> > On Sat, Feb 28, 2009 at 7:54 AM, Abu Obeida Bakhach <
>> > Abu.Obeida@microsoft.com> wrote:
>> >
>> > > 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.
>> >
>> >
>> >
>> > You don't need 8080 specifically. It is the port where apache runs. (You
>> > can
>> > modify it in httpd.conf). We used 8080 because, IIS used 80 and we need
>> > both
>> > to test the interop. Removing 8080 works means, your apache is running
>> on
>> > port 80
>> >
>> >
>> > >
>> > >
>> > > 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?
>> >
>> >
>> > Did you give the config service endpoint? You have to change the end
>> point
>> > address of the services in "Services" table. (I think you still have
>> 8080
>> > problem to get the connectivity to config service and business service).
>> > Please also check whether config service end point is correct (remember
>> the
>> > 8080). I Admit, we have to put all these details in the wiki..
>> >
>> > Regards,
>> > Shankar..
>> >
>> >
>>
>
>
>
> --
> Thanks,
> Dimuthu Gamage
>
> http://www.dimuthu.org
> http://www.wso2.org
>
--
Thanks,
Dimuthu Gamage
http://www.dimuthu.org
http://www.wso2.org
Re: need help building WS02 stack
Posted by Dimuthu Gamage <di...@gmail.com>.
Hi Obeida,
Looks like what is failing is the client side. It fails to invoke the
transport and send the message to the server. Can you make sure that the old
libraries not in the path(environment variable). Since you earlier tried to
install the wsf/php 2.0 and now the nightly build my assumption is you have
some old libraries in the path and wsf/php tries to load to incorrrect dll
version.
About the error on failing 'php_mssql', you should use 'ntwdblib.dll' a
newer version than one come default with php_mssql extension. You can follow
this instructions, http://www.php.net/manual/en/mssql.requirements.php
Thanks
Dimuthu
On Fri, Mar 20, 2009 at 5:53 AM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> wrote:
> Although my first attempt didn't succeed, I am retrying the WS02 stack, and
> documenting the issues I am running into to ensure a comprehensive list.
>
> I am running into the same problem as before, yet my old solution is not
> working.
>
> The situation is that clicking the sample code links generated the NO
> response receive error error message below. I tried two ways to fix it:
>
> 1- I've ensured that the samples directory is correlated located below the
> HTDOCS folder (my mistake in the past was directly copying the files without
> the 'samples' folder itself)
>
> 2- As you suggested back then, I examined the logs:
>
> Examined the wsf_php_server.log
> [Thu Mar 19 16:31:32 2009] [info] No files in the path
> D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
> [Thu Mar 19 16:31:32 2009] [info] [rampart][rampart_mod] rampart_mod
> initialized
> [Thu Mar 19 16:31:32 2009] [info] [rahas]Rahas modulce initialized
> [Thu Mar 19 16:31:32 2009] [info] No files in the path
> D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
> [Thu Mar 19 16:31:32 2009] [info] [rampart][rampart_mod] rampart_mod
> initialized
> [Thu Mar 19 16:31:32 2009] [info] [rahas]Rahas module initialized
>
> wsf_php_client.log
> [Thu Mar 19 16:31:47 2009] [info] No files in the path
> D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
> [Thu Mar 19 16:31:47 2009] [info] [rampart][rampart_mod] rampart_mod
> initialized
> [Thu Mar 19 16:31:47 2009] [info] [rahas]Rahas module initialized
> [Thu Mar 19 16:31:47 2009] [info] Starting addressing out handler
> [Thu Mar 19 16:31:47 2009] [error]
> ..\..\src\core\transport\http\sender\http_sender.c(1419) Error occurred in
> transport
> [Thu Mar 19 16:31:47 2009] [error] ..\..\src\core\engine\engine.c(179)
> Transport sender invoke failed
> [Thu Mar 19 16:31:47 2009] [error] wsf_client.c(1649) [WSF/PHP] Response
> Payload NULL( Error number and code) => : 74 :: Error occurred in transport
> [Thu Mar 19 16:31:47 2009] [info] [rampart][rampart_mod] rampart_mod
> shutdown
> [Thu Mar 19 16:31:47 2009] [info] [rahas] Rahas module shutdown
>
>
> It seems that the client is not working right, unlike the first time I saw
> the same behavior.
>
>
> BTW, I ensured that the http://localhost:8080/samples/echo_service.phplink does work correctly
>
>
> On separate note, I am seeing this error in the php_error.log
>
> [19-Mar-2009 16:40:44] PHP Warning: PHP Startup: Unable to load dynamic
> library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified
> module could not be found.
>
> in Unknown on line 0
>
> [19-Mar-2009 16:40:45] PHP Warning: PHP Startup: Unable to load dynamic
> library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified
> module could not be found.
>
> in Unknown on line 0
>
> thanks,
>
> -----Original Message-----
> From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
> Sent: Thursday, February 26, 2009 5:49 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Wednesday, February 25, 2009 7:18 PM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > > Sent: Tuesday, February 24, 2009 1:46 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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>
> > <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 <
> > > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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:dimuthuc@gmail.com]
> > > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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 <
> > > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com]
> On
> > > > Behalf
> > > > > Of Uthaiyashankar
> > > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > > To: stonehenge-dev@incubator.apache.org
> > > > > 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
>
--
Thanks,
Dimuthu Gamage
http://www.dimuthu.org
http://www.wso2.org
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
resend
-----Original Message-----
From: Abu Obeida Bakhach [mailto:Abu.Obeida@microsoft.com]
Sent: Thursday, March 19, 2009 5:24 PM
To: stonehenge-dev@incubator.apache.org
Subject: RE: need help building WS02 stack
Importance: High
Although my first attempt didn't succeed, I am retrying the WS02 stack, and documenting the issues I am running into to ensure a comprehensive list.
I am running into the same problem as before, yet my old solution is not working.
The situation is that clicking the sample code links generated the NO response receive error error message below. I tried two ways to fix it:
1- I've ensured that the samples directory is correlated located below the HTDOCS folder (my mistake in the past was directly copying the files without the 'samples' folder itself)
2- As you suggested back then, I examined the logs:
Examined the wsf_php_server.log
[Thu Mar 19 16:31:32 2009] [info] No files in the path D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
[Thu Mar 19 16:31:32 2009] [info] [rampart][rampart_mod] rampart_mod initialized
[Thu Mar 19 16:31:32 2009] [info] [rahas]Rahas module initialized
[Thu Mar 19 16:31:32 2009] [info] No files in the path D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
[Thu Mar 19 16:31:32 2009] [info] [rampart][rampart_mod] rampart_mod initialized
[Thu Mar 19 16:31:32 2009] [info] [rahas]Rahas module initialized
wsf_php_client.log
[Thu Mar 19 16:31:47 2009] [info] No files in the path D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
[Thu Mar 19 16:31:47 2009] [info] [rampart][rampart_mod] rampart_mod initialized
[Thu Mar 19 16:31:47 2009] [info] [rahas]Rahas module initialized
[Thu Mar 19 16:31:47 2009] [info] Starting addressing out handler
[Thu Mar 19 16:31:47 2009] [error] ..\..\src\core\transport\http\sender\http_sender.c(1419) Error occurred in transport
[Thu Mar 19 16:31:47 2009] [error] ..\..\src\core\engine\engine.c(179) Transport sender invoke failed
[Thu Mar 19 16:31:47 2009] [error] wsf_client.c(1649) [WSF/PHP] Response Payload NULL( Error number and code) => : 74 :: Error occurred in transport
[Thu Mar 19 16:31:47 2009] [info] [rampart][rampart_mod] rampart_mod shutdown
[Thu Mar 19 16:31:47 2009] [info] [rahas] Rahas module shutdown
It seems that the client is not working right, unlike the first time I saw the same behavior.
BTW, I ensured that the http://localhost:8080/samples/echo_service.php link does work correctly
On separate note, I am seeing this error in the php_error.log
[19-Mar-2009 16:40:44] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
[19-Mar-2009 16:40:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
thanks,
-----Original Message-----
From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
Sent: Thursday, February 26, 2009 5:49 PM
To: stonehenge-dev@incubator.apache.org
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 <
Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> Sent: Wednesday, February 25, 2009 7:18 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Tuesday, February 24, 2009 1:46 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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:dimuthuc@gmail.com]
> > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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 <
> > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> > > Behalf
> > > > Of Uthaiyashankar
> > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
Although my first attempt didn't succeed, I am retrying the WS02 stack, and documenting the issues I am running into to ensure a comprehensive list.
I am running into the same problem as before, yet my old solution is not working.
The situation is that clicking the sample code links generated the NO response receive error error message below. I tried two ways to fix it:
1- I've ensured that the samples directory is correlated located below the HTDOCS folder (my mistake in the past was directly copying the files without the 'samples' folder itself)
2- As you suggested back then, I examined the logs:
Examined the wsf_php_server.log
[Thu Mar 19 16:31:32 2009] [info] No files in the path D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
[Thu Mar 19 16:31:32 2009] [info] [rampart][rampart_mod] rampart_mod initialized
[Thu Mar 19 16:31:32 2009] [info] [rahas]Rahas module initialized
[Thu Mar 19 16:31:32 2009] [info] No files in the path D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
[Thu Mar 19 16:31:32 2009] [info] [rampart][rampart_mod] rampart_mod initialized
[Thu Mar 19 16:31:32 2009] [info] [rahas]Rahas module initialized
wsf_php_client.log
[Thu Mar 19 16:31:47 2009] [info] No files in the path D:\Projects\WS02\WSF_PHP\wso2-wsf-php-bin-snapshot-win32\wsf_c/services.
[Thu Mar 19 16:31:47 2009] [info] [rampart][rampart_mod] rampart_mod initialized
[Thu Mar 19 16:31:47 2009] [info] [rahas]Rahas module initialized
[Thu Mar 19 16:31:47 2009] [info] Starting addressing out handler
[Thu Mar 19 16:31:47 2009] [error] ..\..\src\core\transport\http\sender\http_sender.c(1419) Error occurred in transport
[Thu Mar 19 16:31:47 2009] [error] ..\..\src\core\engine\engine.c(179) Transport sender invoke failed
[Thu Mar 19 16:31:47 2009] [error] wsf_client.c(1649) [WSF/PHP] Response Payload NULL( Error number and code) => : 74 :: Error occurred in transport
[Thu Mar 19 16:31:47 2009] [info] [rampart][rampart_mod] rampart_mod shutdown
[Thu Mar 19 16:31:47 2009] [info] [rahas] Rahas module shutdown
It seems that the client is not working right, unlike the first time I saw the same behavior.
BTW, I ensured that the http://localhost:8080/samples/echo_service.php link does work correctly
On separate note, I am seeing this error in the php_error.log
[19-Mar-2009 16:40:44] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
[19-Mar-2009 16:40:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
thanks,
-----Original Message-----
From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
Sent: Thursday, February 26, 2009 5:49 PM
To: stonehenge-dev@incubator.apache.org
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 <
Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> Sent: Wednesday, February 25, 2009 7:18 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Tuesday, February 24, 2009 1:46 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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:dimuthuc@gmail.com]
> > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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 <
> > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> > > Behalf
> > > > Of Uthaiyashankar
> > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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
RE: ApacheCon EU anyone?
Posted by Kent Brown <Ke...@microsoft.com>.
Hey, I'm here and (being an ApacheCon newbie, and the square peg from Microsoft ;-)) it'd be great to hook up with others involved with Stonehenge. I would love to tag along for drinks or dinner if anyone's game. I'm here through Friday morning.
(Sorry for off-topic email. You can email directly at kent.brown@microsoft.com. )
Kent
-----Original Message-----
From: Senaka Fernando [mailto:senakafdo@gmail.com]
Sent: Friday, March 13, 2009 9:42 AM
To: stonehenge-dev@incubator.apache.org
Subject: Re: ApacheCon EU anyone?
I too will be attending the conference.
Regards,
Senaka
On Fri, Mar 13, 2009 at 5:17 PM, Afkham Azeez <af...@gmail.com> wrote:
> Ruwan Linton & I will be attending the conference.
>
> Azeez
>
> On Thu, Mar 12, 2009 at 6:14 AM, Kent Brown <Ke...@microsoft.com>
> wrote:
> > I am going to ApacheCon EU in Amsterdam (March 23-27). Anyone else
> going? Do we think we could organize a BoF or hackfest? I could help MC a
> BoF, if someone knows how to arrange that with the conference organizers. I
> might even be able to pull together a virtual machine with one or both
> running to give a quick demo.
> >
> > It would also be great to make a push next week to get as much done to
> get the existing implementations to the point that people can download and
> build without too much hassle.
> >
> > Kent
> >
> >
>
>
>
> --
> Thanks
> Afkham Azeez
>
> Blog: http://afkham.org
> Developer Portal: http://www.wso2.org
> WSAS Blog: http://wso2wsas.blogspot.com
> Company: http://wso2.com
> GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
>
Re: ApacheCon EU anyone?
Posted by Senaka Fernando <se...@gmail.com>.
I too will be attending the conference.
Regards,
Senaka
On Fri, Mar 13, 2009 at 5:17 PM, Afkham Azeez <af...@gmail.com> wrote:
> Ruwan Linton & I will be attending the conference.
>
> Azeez
>
> On Thu, Mar 12, 2009 at 6:14 AM, Kent Brown <Ke...@microsoft.com>
> wrote:
> > I am going to ApacheCon EU in Amsterdam (March 23-27). Anyone else
> going? Do we think we could organize a BoF or hackfest? I could help MC a
> BoF, if someone knows how to arrange that with the conference organizers. I
> might even be able to pull together a virtual machine with one or both
> running to give a quick demo.
> >
> > It would also be great to make a push next week to get as much done to
> get the existing implementations to the point that people can download and
> build without too much hassle.
> >
> > Kent
> >
> >
>
>
>
> --
> Thanks
> Afkham Azeez
>
> Blog: http://afkham.org
> Developer Portal: http://www.wso2.org
> WSAS Blog: http://wso2wsas.blogspot.com
> Company: http://wso2.com
> GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
>
Re: ApacheCon EU anyone?
Posted by Afkham Azeez <af...@gmail.com>.
Ruwan Linton & I will be attending the conference.
Azeez
On Thu, Mar 12, 2009 at 6:14 AM, Kent Brown <Ke...@microsoft.com> wrote:
> I am going to ApacheCon EU in Amsterdam (March 23-27). Â Anyone else going? Â Do we think we could organize a BoF or hackfest? Â I could help MC a BoF, if someone knows how to arrange that with the conference organizers. Â I might even be able to pull together a virtual machine with one or both running to give a quick demo.
>
> It would also be great to make a push next week to get as much done to get the existing implementations to the point that people can download and build without too much hassle.
>
> Kent
>
>
--
Thanks
Afkham Azeez
Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
Re: ApacheCon EU anyone?
Posted by Paul Fremantle <pz...@gmail.com>.
I'm going and I'm giving a talk on Stonehenge!
http://www.eu.apachecon.com/c/aceu2009/sessions/144
The summary didn't say "Stonehenge" because it hadn't been accepted
when the submissions had to go in.
Paul
On Thu, Mar 12, 2009 at 12:44 AM, Kent Brown <Ke...@microsoft.com> wrote:
> I am going to ApacheCon EU in Amsterdam (March 23-27). Â Anyone else going? Â Do we think we could organize a BoF or hackfest? Â I could help MC a BoF, if someone knows how to arrange that with the conference organizers. Â I might even be able to pull together a virtual machine with one or both running to give a quick demo.
>
> It would also be great to make a push next week to get as much done to get the existing implementations to the point that people can download and build without too much hassle.
>
> Kent
>
>
--
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
Re: need help building WS02 stack
Posted by Dimuthu Gamage <di...@gmail.com>.
Hi Abu Obeida,
Can you check that you set the complete scripts directory to the php.ini
directive include_path. There should be a directory
"dynamic_invocation/xslt/" that actually contains the file
"wsdl11to20.xsl10.xsl" . Look like somehow it is not copied.
Thanks
Dimuthu
On Tue, Mar 10, 2009 at 6:38 AM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> wrote:
> Shankar,
> I did run the scripts as part of the original process. Here is what the
> table details
>
> SERVICENAME URL
> PHP_BS
> http://localhost:8080/php_stocktrader/business_service/business_svc.php
> PHP_OPS
> http://localhost:8080/php_stocktrader/order_processor/order_processor_svc.php
> PHP_OPSSEC
> http://localhost:8080/php_stocktrader/order_processor/order_processor_svc_msec.php
>
> CLIENTTOBS and BSTOOPS are empty. Are they supposed to be like that?
>
> Anyways, going back to the main issue, I still get a HTTP 500 error message
> whenever I try to access any of those links. I am not sure what is needed to
> be done to enable accessing those links? I am seeing the same error in the
> error.log as in my previous email a week ago... Can you please help me
> understand wwhat needs to be resolved here?
> For example, what is the 'intermediate model', why is this line producing
> an empty string?
> $xslt_str = file_get_contents(WSF_WSDL1TO2_XSL_LOCATION, TRUE);
>
> If you need any log files please let me know.
>
> Thanks,
>
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 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
> [Mon Mar 09 17:56:04 2009] [error] [client 127.0.0.1] PHP Fatal error:
> WSService::reply() [<a href='wsservice.reply'>wsservice.reply</a>]: Error
> occurred in script: Error creating intermediate model in C:\\Program Files
> (x86)\\Apache Software
> Foundation\\Apache2.2\\htdocs\\php_stocktrader\\business_service\\business_svc.php
> on line 437
>
>
>
>
>
> -----Original Message-----
> From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
> Sent: Monday, March 09, 2009 3:09 AM
> To: stonehenge-dev@incubator.apache.org
> Subject: Re: need help building WS02 stack
>
> Hi,
>
> You have to run database scripts in
>
> https://svn.apache.org/repos/asf/incubator/stonehenge/trunk/stocktrader/php/resources/db_scripts
>
> This will create tables with name "SERVICE" (which says what are the
> endpoints of services), "CLIENTTOBS" (which tells what client connects to
> what business service), and "BSTOOPS" (which tells what business service
> connects to what order processor service). Configuration service uses them.
> You have to modify entries in "SERVICE" table and give correct endpoint
> address.
>
> All the clients and business services gets the end point address of other
> service (where it should be connected to) from config service. It gives us
> the ability to switch between implementations in runtime.
>
> Regards,
> Shankar
>
> On Mon, Mar 9, 2009 at 12:56 PM, Abu Obeida Bakhach <
> Abu.Obeida@microsoft.com> wrote:
>
> > Hello Shankar,
> > I've left this for a while, resuming it again:
> >
> > I've configured apache to use port 8080, and it seems working fine.
> > However, I am not understanding the config service endpoint, its not
> > working, and I think I need a little more context on what it's supposed
> to
> > do..
> >
> > Did you give the config service endpoint? You have to change the end
> point
> > address of the services in "Services" table. (I think you still have 8080
> > problem to get the connectivity to config service and business service).
> > Please also check whether config service end point is correct (remember
> the
> > 8080). I Admit, we have to put all these details in the wiki..
> >
> > Also can you please clarify what do you mean by 'services table'?
> >
> > I would definitely appreciate any more info, here or on the wiki.
> >
> > Thanks,
> >
> > -----Original Message-----
> > From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
> > Sent: Friday, February 27, 2009 7:13 PM
> > To: stonehenge-dev@incubator.apache.org
> > Subject: Re: need help building WS02 stack
> >
> > Hi,
> >
> > See my comments...
> >
> >
> > On Sat, Feb 28, 2009 at 7:54 AM, Abu Obeida Bakhach <
> > Abu.Obeida@microsoft.com> wrote:
> >
> > > 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.
> >
> >
> >
> > You don't need 8080 specifically. It is the port where apache runs. (You
> > can
> > modify it in httpd.conf). We used 8080 because, IIS used 80 and we need
> > both
> > to test the interop. Removing 8080 works means, your apache is running on
> > port 80
> >
> >
> > >
> > >
> > > 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?
> >
> >
> > Did you give the config service endpoint? You have to change the end
> point
> > address of the services in "Services" table. (I think you still have 8080
> > problem to get the connectivity to config service and business service).
> > Please also check whether config service end point is correct (remember
> the
> > 8080). I Admit, we have to put all these details in the wiki..
> >
> > Regards,
> > Shankar..
> >
> >
>
--
Thanks,
Dimuthu Gamage
http://www.dimuthu.org
http://www.wso2.org
ApacheCon EU anyone?
Posted by Kent Brown <Ke...@microsoft.com>.
I am going to ApacheCon EU in Amsterdam (March 23-27). Anyone else going? Do we think we could organize a BoF or hackfest? I could help MC a BoF, if someone knows how to arrange that with the conference organizers. I might even be able to pull together a virtual machine with one or both running to give a quick demo.
It would also be great to make a push next week to get as much done to get the existing implementations to the point that people can download and build without too much hassle.
Kent
Re: need help building WS02 stack
Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
Hi,
>
> SERVICENAME URL
> PHP_BS
> http://localhost:8080/php_stocktrader/business_service/business_svc.php
> PHP_OPS
> http://localhost:8080/php_stocktrader/order_processor/order_processor_svc.php
> PHP_OPSSEC
> http://localhost:8080/php_stocktrader/order_processor/order_processor_svc_msec.php
>
It is correct.
>
> CLIENTTOBS and BSTOOPS are empty. Are they supposed to be like that?
No, it should have details. I have updated the insert scripts now.
ClientToBS should have following data
CLIENT column: PHP_CLIENT
BS column: PHP_BS
BStoOPS table should have
BS column: PHP_BS
OPS column: PHP_OPS
Regards,
Shankar
--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "The Open Source SOA Company"
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
Shankar,
I did run the scripts as part of the original process. Here is what the table details
SERVICENAME URL
PHP_BS http://localhost:8080/php_stocktrader/business_service/business_svc.php
PHP_OPS http://localhost:8080/php_stocktrader/order_processor/order_processor_svc.php
PHP_OPSSEC http://localhost:8080/php_stocktrader/order_processor/order_processor_svc_msec.php
CLIENTTOBS and BSTOOPS are empty. Are they supposed to be like that?
Anyways, going back to the main issue, I still get a HTTP 500 error message whenever I try to access any of those links. I am not sure what is needed to be done to enable accessing those links? I am seeing the same error in the error.log as in my previous email a week ago... Can you please help me understand wwhat needs to be resolved here?
For example, what is the 'intermediate model', why is this line producing an empty string?
$xslt_str = file_get_contents(WSF_WSDL1TO2_XSL_LOCATION, TRUE);
If you need any log files please let me know.
Thanks,
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 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
[Mon Mar 09 17:56:04 2009] [error] [client 127.0.0.1] PHP Fatal error: WSService::reply() [<a href='wsservice.reply'>wsservice.reply</a>]: Error occurred in script: Error creating intermediate model in C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\php_stocktrader\\business_service\\business_svc.php on line 437
-----Original Message-----
From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
Sent: Monday, March 09, 2009 3:09 AM
To: stonehenge-dev@incubator.apache.org
Subject: Re: need help building WS02 stack
Hi,
You have to run database scripts in
https://svn.apache.org/repos/asf/incubator/stonehenge/trunk/stocktrader/php/resources/db_scripts
This will create tables with name "SERVICE" (which says what are the
endpoints of services), "CLIENTTOBS" (which tells what client connects to
what business service), and "BSTOOPS" (which tells what business service
connects to what order processor service). Configuration service uses them.
You have to modify entries in "SERVICE" table and give correct endpoint
address.
All the clients and business services gets the end point address of other
service (where it should be connected to) from config service. It gives us
the ability to switch between implementations in runtime.
Regards,
Shankar
On Mon, Mar 9, 2009 at 12:56 PM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> wrote:
> Hello Shankar,
> I've left this for a while, resuming it again:
>
> I've configured apache to use port 8080, and it seems working fine.
> However, I am not understanding the config service endpoint, its not
> working, and I think I need a little more context on what it's supposed to
> do..
>
> Did you give the config service endpoint? You have to change the end point
> address of the services in "Services" table. (I think you still have 8080
> problem to get the connectivity to config service and business service).
> Please also check whether config service end point is correct (remember the
> 8080). I Admit, we have to put all these details in the wiki..
>
> Also can you please clarify what do you mean by 'services table'?
>
> I would definitely appreciate any more info, here or on the wiki.
>
> Thanks,
>
> -----Original Message-----
> From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
> Sent: Friday, February 27, 2009 7:13 PM
> To: stonehenge-dev@incubator.apache.org
> Subject: Re: need help building WS02 stack
>
> Hi,
>
> See my comments...
>
>
> On Sat, Feb 28, 2009 at 7:54 AM, Abu Obeida Bakhach <
> Abu.Obeida@microsoft.com> wrote:
>
> > 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.
>
>
>
> You don't need 8080 specifically. It is the port where apache runs. (You
> can
> modify it in httpd.conf). We used 8080 because, IIS used 80 and we need
> both
> to test the interop. Removing 8080 works means, your apache is running on
> port 80
>
>
> >
> >
> > 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?
>
>
> Did you give the config service endpoint? You have to change the end point
> address of the services in "Services" table. (I think you still have 8080
> problem to get the connectivity to config service and business service).
> Please also check whether config service end point is correct (remember the
> 8080). I Admit, we have to put all these details in the wiki..
>
> Regards,
> Shankar..
>
>
Re: need help building WS02 stack
Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
Hi,
You have to run database scripts in
https://svn.apache.org/repos/asf/incubator/stonehenge/trunk/stocktrader/php/resources/db_scripts
This will create tables with name "SERVICE" (which says what are the
endpoints of services), "CLIENTTOBS" (which tells what client connects to
what business service), and "BSTOOPS" (which tells what business service
connects to what order processor service). Configuration service uses them.
You have to modify entries in "SERVICE" table and give correct endpoint
address.
All the clients and business services gets the end point address of other
service (where it should be connected to) from config service. It gives us
the ability to switch between implementations in runtime.
Regards,
Shankar
On Mon, Mar 9, 2009 at 12:56 PM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> wrote:
> Hello Shankar,
> I've left this for a while, resuming it again:
>
> I've configured apache to use port 8080, and it seems working fine.
> However, I am not understanding the config service endpoint, its not
> working, and I think I need a little more context on what it's supposed to
> do..
>
> Did you give the config service endpoint? You have to change the end point
> address of the services in "Services" table. (I think you still have 8080
> problem to get the connectivity to config service and business service).
> Please also check whether config service end point is correct (remember the
> 8080). I Admit, we have to put all these details in the wiki..
>
> Also can you please clarify what do you mean by 'services table'?
>
> I would definitely appreciate any more info, here or on the wiki.
>
> Thanks,
>
> -----Original Message-----
> From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
> Sent: Friday, February 27, 2009 7:13 PM
> To: stonehenge-dev@incubator.apache.org
> Subject: Re: need help building WS02 stack
>
> Hi,
>
> See my comments...
>
>
> On Sat, Feb 28, 2009 at 7:54 AM, Abu Obeida Bakhach <
> Abu.Obeida@microsoft.com> wrote:
>
> > 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.
>
>
>
> You don't need 8080 specifically. It is the port where apache runs. (You
> can
> modify it in httpd.conf). We used 8080 because, IIS used 80 and we need
> both
> to test the interop. Removing 8080 works means, your apache is running on
> port 80
>
>
> >
> >
> > 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?
>
>
> Did you give the config service endpoint? You have to change the end point
> address of the services in "Services" table. (I think you still have 8080
> problem to get the connectivity to config service and business service).
> Please also check whether config service end point is correct (remember the
> 8080). I Admit, we have to put all these details in the wiki..
>
> Regards,
> Shankar..
>
>
>
> >
> >
> > thanks
> >
> > -----Original Message-----
> > From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
> > Sent: Thursday, February 26, 2009 5:49 PM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > > Sent: Wednesday, February 25, 2009 7:18 PM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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 <
> > > Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > > > Sent: Tuesday, February 24, 2009 1:46 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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>
> > <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 <
> > > > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > > > To: stonehenge-dev@incubator.apache.org
> > > > > 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:dimuthuc@gmail.com]
> > > > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > > > To: stonehenge-dev@incubator.apache.org
> > > > > 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 <
> > > > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com]
> > On
> > > > > Behalf
> > > > > > Of Uthaiyashankar
> > > > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > > > To: stonehenge-dev@incubator.apache.org
> > > > > > 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
> >
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "The Open Source SOA Company"
>
--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "The Open Source SOA Company"
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
Hello Shankar,
I've left this for a while, resuming it again:
I've configured apache to use port 8080, and it seems working fine. However, I am not understanding the config service endpoint, its not working, and I think I need a little more context on what it's supposed to do..
Did you give the config service endpoint? You have to change the end point
address of the services in "Services" table. (I think you still have 8080
problem to get the connectivity to config service and business service).
Please also check whether config service end point is correct (remember the
8080). I Admit, we have to put all these details in the wiki..
Also can you please clarify what do you mean by 'services table'?
I would definitely appreciate any more info, here or on the wiki.
Thanks,
-----Original Message-----
From: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com]
Sent: Friday, February 27, 2009 7:13 PM
To: stonehenge-dev@incubator.apache.org
Subject: Re: need help building WS02 stack
Hi,
See my comments...
On Sat, Feb 28, 2009 at 7:54 AM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> wrote:
> 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.
You don't need 8080 specifically. It is the port where apache runs. (You can
modify it in httpd.conf). We used 8080 because, IIS used 80 and we need both
to test the interop. Removing 8080 works means, your apache is running on
port 80
>
>
> 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?
Did you give the config service endpoint? You have to change the end point
address of the services in "Services" table. (I think you still have 8080
problem to get the connectivity to config service and business service).
Please also check whether config service end point is correct (remember the
8080). I Admit, we have to put all these details in the wiki..
Regards,
Shankar..
>
>
> thanks
>
> -----Original Message-----
> From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
> Sent: Thursday, February 26, 2009 5:49 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Wednesday, February 25, 2009 7:18 PM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > > Sent: Tuesday, February 24, 2009 1:46 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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>
> > <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 <
> > > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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:dimuthuc@gmail.com]
> > > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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 <
> > > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com]
> On
> > > > Behalf
> > > > > Of Uthaiyashankar
> > > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > > To: stonehenge-dev@incubator.apache.org
> > > > > 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
>
--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "The Open Source SOA Company"
Re: need help building WS02 stack
Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
Hi,
See my comments...
On Sat, Feb 28, 2009 at 7:54 AM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> wrote:
> 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.
You don't need 8080 specifically. It is the port where apache runs. (You can
modify it in httpd.conf). We used 8080 because, IIS used 80 and we need both
to test the interop. Removing 8080 works means, your apache is running on
port 80
>
>
> 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?
Did you give the config service endpoint? You have to change the end point
address of the services in "Services" table. (I think you still have 8080
problem to get the connectivity to config service and business service).
Please also check whether config service end point is correct (remember the
8080). I Admit, we have to put all these details in the wiki..
Regards,
Shankar..
>
>
> thanks
>
> -----Original Message-----
> From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
> Sent: Thursday, February 26, 2009 5:49 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Wednesday, February 25, 2009 7:18 PM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > > Sent: Tuesday, February 24, 2009 1:46 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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>
> > <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 <
> > > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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:dimuthuc@gmail.com]
> > > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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 <
> > > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com]
> On
> > > > Behalf
> > > > > Of Uthaiyashankar
> > > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > > To: stonehenge-dev@incubator.apache.org
> > > > > 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
>
--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "The Open Source SOA Company"
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
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:dimuthuc@gmail.com]
Sent: Thursday, February 26, 2009 5:49 PM
To: stonehenge-dev@incubator.apache.org
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 <
Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> Sent: Wednesday, February 25, 2009 7:18 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Tuesday, February 24, 2009 1:46 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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:dimuthuc@gmail.com]
> > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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 <
> > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> > > Behalf
> > > > Of Uthaiyashankar
> > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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
Re: need help building WS02 stack
Posted by Dimuthu Gamage <di...@gmail.com>.
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 <
Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> Sent: Wednesday, February 25, 2009 7:18 PM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> > Sent: Tuesday, February 24, 2009 1:46 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > > Sent: Wednesday, February 18, 2009 6:23 PM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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:dimuthuc@gmail.com]
> > > Sent: Wednesday, February 18, 2009 6:48 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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 <
> > > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> > > Behalf
> > > > Of Uthaiyashankar
> > > > Sent: Thursday, February 12, 2009 9:18 AM
> > > > To: stonehenge-dev@incubator.apache.org
> > > > 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
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
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:dimuthuc@gmail.com]
Sent: Wednesday, February 25, 2009 7:18 PM
To: stonehenge-dev@incubator.apache.org
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 <
Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> Sent: Tuesday, February 24, 2009 1:46 AM
> To: stonehenge-dev@incubator.apache.org
> 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>
>
> Thanks
> Dimuthu
>
> On Fri, Feb 20, 2009 at 6:37 AM, Abu Obeida Bakhach <
> Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > Sent: Wednesday, February 18, 2009 6:23 PM
> > To: stonehenge-dev@incubator.apache.org
> > 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:dimuthuc@gmail.com]
> > Sent: Wednesday, February 18, 2009 6:48 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> > Behalf
> > > Of Uthaiyashankar
> > > Sent: Thursday, February 12, 2009 9:18 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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
Re: need help building WS02 stack
Posted by Dimuthu Gamage <di...@gmail.com>.
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 <
Abu.Obeida@microsoft.com> 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:dimuthuc@gmail.com]
> Sent: Tuesday, February 24, 2009 1:46 AM
> To: stonehenge-dev@incubator.apache.org
> 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>
>
> Thanks
> Dimuthu
>
> On Fri, Feb 20, 2009 at 6:37 AM, Abu Obeida Bakhach <
> Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> > Sent: Wednesday, February 18, 2009 6:23 PM
> > To: stonehenge-dev@incubator.apache.org
> > 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:dimuthuc@gmail.com]
> > Sent: Wednesday, February 18, 2009 6:48 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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 <
> > Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> > Behalf
> > > Of Uthaiyashankar
> > > Sent: Thursday, February 12, 2009 9:18 AM
> > > To: stonehenge-dev@incubator.apache.org
> > > 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
RE: need help building WS02 stack
Posted by Abu Obeida Bakhach <Ab...@microsoft.com>.
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:dimuthuc@gmail.com]
Sent: Tuesday, February 24, 2009 1:46 AM
To: stonehenge-dev@incubator.apache.org
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
Thanks
Dimuthu
On Fri, Feb 20, 2009 at 6:37 AM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> Sent: Wednesday, February 18, 2009 6:23 PM
> To: stonehenge-dev@incubator.apache.org
> 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:dimuthuc@gmail.com]
> Sent: Wednesday, February 18, 2009 6:48 AM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> Behalf
> > Of Uthaiyashankar
> > Sent: Thursday, February 12, 2009 9:18 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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
Re: need help building WS02 stack
Posted by Dimuthu Gamage <di...@gmail.com>.
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
Thanks
Dimuthu
On Fri, Feb 20, 2009 at 6:37 AM, Abu Obeida Bakhach <
Abu.Obeida@microsoft.com> 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:Abu.Obeida@microsoft.com]
> Sent: Wednesday, February 18, 2009 6:23 PM
> To: stonehenge-dev@incubator.apache.org
> 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:dimuthuc@gmail.com]
> Sent: Wednesday, February 18, 2009 6:48 AM
> To: stonehenge-dev@incubator.apache.org
> 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 <
> Abu.Obeida@microsoft.com> 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: uthaiyashankar@gmail.com [mailto:uthaiyashankar@gmail.com] On
> Behalf
> > Of Uthaiyashankar
> > Sent: Thursday, February 12, 2009 9:18 AM
> > To: stonehenge-dev@incubator.apache.org
> > 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