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 Chintana Wilamuna <ch...@gmail.com> on 2009/05/22 19:26:22 UTC

Re: Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX

On Sat, May 23, 2009 at 12:26 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> Step two in the README.INSTALL for the WS02/PHP download say to download and extract the WSF/C package. Then run build.sh
>
> However there is no build.sh  in the package. There is a build.bat, build-samples.sh and a build directory (which does not contain a build.sh either)
>
> How shall I proceed. I really need to get this system working ASAP

Step 2 is for installing the PHP PECL package. If you complete step
one, then you're done. Step 2 is not needed.

Bye,

    -Chintana

-- 
http://engwar.com/

Getting Stonehenge PHP on LINUX to work

Posted by "Drew Baird (Volt)" <a-...@microsoft.com>.
(renamed title to more accurately describe issue)

Thanks Chintana.
I assumed I am missing something. Like an include in php to scripts but there is nothing in the scripts folder.
I turned on warnings so this is what I see. (from logon screen)

Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 529
Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 533
Notice: Undefined variable: endPoint in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 539
Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 807
Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 824
Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826
Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826

What did I miss?

Thanks!
Drew

<remainder snip>

RE: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX)

Posted by "Drew Baird (Volt)" <a-...@microsoft.com>.
I corrected the entries if the wsf.home and the errors changed although they are similar

Fatal error: Uncaught exception 'Exception' with message 'ws client create failed' in /var/www/html/php_stocktrader/trader_client/request_processor.php:526 Stack trace: 
#0 /var/www/html/php_stocktrader/trader_client/request_processor.php(526): WSClient->__construct(Array) 
#1 /var/www/html/php_stocktrader/trader_client/request_processor.php(804): GetBSEndPoint() 
#2 /var/www/html/php_stocktrader/trader_client/request_processor.php(820): GetProxy() 
#3 /var/www/html/php_stocktrader/trader_client/login.php(36): Login('uid:1', 'xxx') 
#4 {main} thrown in  /var/www/html/php_stocktrader/trader_client/request_processor.php on line 526

________________________________________
From: Drew Baird (Volt)
Sent: Tuesday, May 26, 2009 11:03 PM
To: Drew Baird (Volt); stonehenge-dev@incubator.apache.org
Subject: RE: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for  WSF-PHP) (for Stonehenge PHP) on LINUX)

more:
I looked at the wsf entries in PHPInfo. Most the values are set to 'tmp' and the wsf.home value was set to 'no value' -- I think this is a bad thing.

________________________________________
From: Drew Baird (Volt)
Sent: Tuesday, May 26, 2009 9:32 PM
To: stonehenge-dev@incubator.apache.org
Subject: RE: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for  WSF-PHP) (for Stonehenge PHP) on LINUX)

Thanks for responding Chintana

Yes I did the colon.
It seems to not want to make the proxy.

I do e an empty scripts directory. at /var/www/scripts. I created it and expected it to contain code related to WFS.

Drew

________________________________________
From: Chintana Wilamuna [chintanaw@gmail.com]
Sent: Tuesday, May 26, 2009 7:19 PM
To: stonehenge-dev@incubator.apache.org
Subject: Re: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for  WSF-PHP) (for Stonehenge PHP) on LINUX)

On Tue, May 26, 2009 at 11:06 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> New title for clarity
> Current state: The welcome screen displays but I cannot login
> 1. I did do the phpinfo script and WSF and MSSQL are installed.
> 2. The PHP StockTrader is in the correct place
> 3. The PHP MSSQL Test connect described in the PHP man pages appears to work
>
> Any ideas are appreciated.

In resources/conf/database_config.xml have you changed the
<server>127.0.0.1,1433</server> to <server>ip:port</server>? (Note the
colon instead of the comma)

Bye,

    -Chintana

--
http://engwar.com/

RE: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX)

Posted by "Drew Baird (Volt)" <a-...@microsoft.com>.
more:
I looked at the wsf entries in PHPInfo. Most the values are set to 'tmp' and the wsf.home value was set to 'no value' -- I think this is a bad thing.

________________________________________
From: Drew Baird (Volt)
Sent: Tuesday, May 26, 2009 9:32 PM
To: stonehenge-dev@incubator.apache.org
Subject: RE: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for  WSF-PHP) (for Stonehenge PHP) on LINUX)

Thanks for responding Chintana

Yes I did the colon.
It seems to not want to make the proxy.

I do e an empty scripts directory. at /var/www/scripts. I created it and expected it to contain code related to WFS.

Drew

________________________________________
From: Chintana Wilamuna [chintanaw@gmail.com]
Sent: Tuesday, May 26, 2009 7:19 PM
To: stonehenge-dev@incubator.apache.org
Subject: Re: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for  WSF-PHP) (for Stonehenge PHP) on LINUX)

On Tue, May 26, 2009 at 11:06 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> New title for clarity
> Current state: The welcome screen displays but I cannot login
> 1. I did do the phpinfo script and WSF and MSSQL are installed.
> 2. The PHP StockTrader is in the correct place
> 3. The PHP MSSQL Test connect described in the PHP man pages appears to work
>
> Any ideas are appreciated.

In resources/conf/database_config.xml have you changed the
<server>127.0.0.1,1433</server> to <server>ip:port</server>? (Note the
colon instead of the comma)

Bye,

    -Chintana

--
http://engwar.com/

RE: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX)

Posted by "Drew Baird (Volt)" <a-...@microsoft.com>.
Thanks for responding Chintana

Yes I did the colon. 
It seems to not want to make the proxy.

I do e an empty scripts directory. at /var/www/scripts. I created it and expected it to contain code related to WFS.

Drew

________________________________________
From: Chintana Wilamuna [chintanaw@gmail.com]
Sent: Tuesday, May 26, 2009 7:19 PM
To: stonehenge-dev@incubator.apache.org
Subject: Re: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for  WSF-PHP) (for Stonehenge PHP) on LINUX)

On Tue, May 26, 2009 at 11:06 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> New title for clarity
> Current state: The welcome screen displays but I cannot login
> 1. I did do the phpinfo script and WSF and MSSQL are installed.
> 2. The PHP StockTrader is in the correct place
> 3. The PHP MSSQL Test connect described in the PHP man pages appears to work
>
> Any ideas are appreciated.

In resources/conf/database_config.xml have you changed the
<server>127.0.0.1,1433</server> to <server>ip:port</server>? (Note the
colon instead of the comma)

Bye,

    -Chintana

--
http://engwar.com/

Re: Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX)

Posted by Chintana Wilamuna <ch...@gmail.com>.
On Tue, May 26, 2009 at 11:06 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> New title for clarity
> Current state: The welcome screen displays but I cannot login
> 1. I did do the phpinfo script and WSF and MSSQL are installed.
> 2. The PHP StockTrader is in the correct place
> 3. The PHP MSSQL Test connect described in the PHP man pages appears to work
>
> Any ideas are appreciated.

In resources/conf/database_config.xml have you changed the
<server>127.0.0.1,1433</server> to <server>ip:port</server>? (Note the
colon instead of the comma)

Bye,

    -Chintana

-- 
http://engwar.com/

Stonehenge PHP on LINUX talking to MSSQL (was Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX)

Posted by "Drew Baird (Volt)" <a-...@microsoft.com>.
New title for clarity
Current state: The welcome screen displays but I cannot login
1. I did do the phpinfo script and WSF and MSSQL are installed.
2. The PHP StockTrader is in the correct place 
3. The PHP MSSQL Test connect described in the PHP man pages appears to work

Any ideas are appreciated. 
Thanks!
Drew


-----Original Message-----
From: Chintana Wilamuna [mailto:chintanaw@gmail.com] 
Sent: Friday, May 22, 2009 10:57 PM
To: stonehenge-dev@incubator.apache.org
Subject: Re: Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX

On Sat, May 23, 2009 at 2:00 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> I assumed I am missing something. Like an include in php to scripts but there is nothing in the scripts folder.
> I turned on warnings so this is what I see. (from logon screen)
>
> Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 529
> Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 533
> Notice: Undefined variable: endPoint in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 539
> Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 807
> Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 824
> Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826
> Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826
>
> What did I miss?

I'm not sure what the exact error is. Assuming you have WSF/PHP
installed correctly, you can verify this by creating a PHP file with
the following content,

<?php

phpinfo();

?>

and look for the WSF section in loaded extensions. Easiest way to get
Stonehenge PHP working is copy the php_stocktrader folder to your
document root and change the listen port for Apache to 8080.

HTH,

Bye,

    -Chintana

-- 
http://engwar.com/


Re: Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX

Posted by Chintana Wilamuna <ch...@gmail.com>.
On Sat, May 23, 2009 at 2:00 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> I assumed I am missing something. Like an include in php to scripts but there is nothing in the scripts folder.
> I turned on warnings so this is what I see. (from logon screen)
>
> Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 529
> Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 533
> Notice: Undefined variable: endPoint in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 539
> Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 807
> Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 824
> Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826
> Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826
>
> What did I miss?

I'm not sure what the exact error is. Assuming you have WSF/PHP
installed correctly, you can verify this by creating a PHP file with
the following content,

<?php

phpinfo();

?>

and look for the WSF section in loaded extensions. Easiest way to get
Stonehenge PHP working is copy the php_stocktrader folder to your
document root and change the listen port for Apache to 8080.

HTH,

Bye,

    -Chintana

-- 
http://engwar.com/

RE: Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX

Posted by "Drew Baird (Volt)" <a-...@microsoft.com>.
Thanks Chintana.
I assumed I am missing something. Like an include in php to scripts but there is nothing in the scripts folder.
I turned on warnings so this is what I see. (from logon screen)

Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 529
Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 533
Notice: Undefined variable: endPoint in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 539
Warning: WSClient::getProxy(wsf_wsdl.php) [wsclient.getproxy]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 807
Warning: WSClientProxy::__call(wsf_wsdl.php) [wsclientproxy.--call]: failed to open stream: No such file or directory in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 824
Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826
Notice: Trying to get property of non-object in /var/www/html/php_stocktrader/trader_client/request_processor.php on line 826

What did I miss?

Thanks!
Drew

-----Original Message-----
From: Chintana Wilamuna [mailto:chintanaw@gmail.com] 
Sent: Friday, May 22, 2009 12:26 PM
To: stonehenge-dev@incubator.apache.org
Subject: Re: Building WSF/C (for WSF-PHP) (for Stonehenge PHP) on LINUX

On Sat, May 23, 2009 at 12:26 AM, Drew Baird (Volt)
<a-...@microsoft.com> wrote:

> Step two in the README.INSTALL for the WS02/PHP download say to download and extract the WSF/C package. Then run build.sh
>
> However there is no build.sh  in the package. There is a build.bat, build-samples.sh and a build directory (which does not contain a build.sh either)
>
> How shall I proceed. I really need to get this system working ASAP

Step 2 is for installing the PHP PECL package. If you complete step
one, then you're done. Step 2 is not needed.

Bye,

    -Chintana

-- 
http://engwar.com/