WSO2 StockTrader, Perl Installation Guide
WSO2 StockTrader is an online stock trading sample application with functionality equivalent to the Microsoft .NET Stock Trader sample benchmark application and IBM WebSphere's Trade 6.1 sample application. WSO2 StockTrader is powered by WSO2 WSF/PHP , WSO2 WSF/Ruby, WSO2 WSF/Perl, WSO2 WSF/Python, WSO2 WSF/Spring and WSO2 WSAS and implements the application in PHP, Ruby, Perl, Python, Spring and Java. It serves to illustrate interoperability between .NET, PHP, Ruby, Perl, Python, Spring and Java in deploying high-performance, scalable service oriented applications.
Note: This version of Perl Stock Trader can only be installed in Linux.
Prerequisite
-
Perl
Download and install Perl. Apache HTTP Server
You can download apache web server from here.-
WSO2 WSF/Perl
Install WSO2 WSF/Perl. You can download it from here. Version should be 1.1 or more. Please follow the README file to install. -
.NET Stock Trader 2.0
You can download it from here. -
Enable TCP/IP Protocols of MSSQL server
Open “SQL Server Configuration Manager” from Start->Programs->Microsoft SQL Server 2005->Configuration Tools-> SQL Server Configuration Manager. Enable TCP/IP and disable Named Pipes from protocols of your MSSQL server. (Note that, in following picture, MSSQLSERVER is the name of the SQL server. In your case, the name might be different)
Open TCP/IP Properties by double clicking “TCP/IP”. Set “Listen All” to “Yes” in Protocol tab.

From IP Address tab, disable “TCP Dynamic Ports” by leaving it blank and give a valid “TCP Port” so that MSSQL server will listen in that port. (We have used port 1433 in order processor services, so it is better to use that port)

Similarly, enable TCP/IP from SQL Native Client Configuration and disable Named Pipes. Also, check whether the port is set correctly. (Port should be 1433)


After finishing above
settings, restart MSSQL Server.
Installing Perl Stock Trader
Download Perl Stock Trader from here and unzip it.-
Installing
Trader Client
Go inside trader_client directory. Copy the contents of trader folder to <Apache Installed Directory>\htdocs\trader. Copy the contents of cgi-bin to <Apache Installed Directory>\cgi-bin\. Enable execute permission for all the files inside <Apache Installed Directory>\cgi-bin directory.
Endpoint Addresses
These are the default endpoint addresses- Trader Client
http://localhost:8080/cgi-bin/trader