MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_01C9C96E.4F656380" This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows® Internet Explorer®. ------=_NextPart_01C9C96E.4F656380 Content-Location: file:///C:/EA821A05/ReadMe.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii"

Stonehenge/Apache .NET ReadMe

Apache License

Licensed to the Apache Software Fo= undation (ASF) under one or more contributor license agreements.  See the NOTICE file distributed th= is work for additional information regarding copyright ownership.  The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with t= he License.  You may obtain a cop= y of the License at: 

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writ= ing, software distributed under the License is distributed on an "AS IS&quo= t; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or impl= ied. See the License for the specific language governing permissions and limitat= ions under the License.

Getting Started

Stonehenge .NET StockTrader for Apache is a subset and fork of Microsoft's .NET= StockTrader Sample Application on MSDN. The or= iginal StockTrader can be used as a reference. It is l= ocated at h= ttp://msdn.microsoft.com/en-us/netframework/bb499684.aspx.  A main difference is that this version does NOT include the configuration management features of the MSDN = .Net StockTrader. Configuration is done manually. The expected audience is an experienced developer with knowledge of C# and SOA = with WCF.

Installing the Stonehenge/Apache .Net StockTrader Application

1.=       Get software from https://svn.apache.org/repos/asf/incubator/stonehenge/trunk/s= tocktrader/dotnet/

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; It is recommended that you use Tortoise (http://tortoisesvn.net/) to download = the entire source tree to C:\StockTraderDemo.

2.=       Install Prerequisites, if you don’t have these requirements you can follow th= e Express Requirements Install Guide

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; Internet Information Server (IIS) - Web Service Role with Static Content feature ena= bled

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  b.   &nb= sp; Install Visual Studio 2008 or Visual Web Developer Express 2008

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  c.   &nb= sp; Install .NET 3.5 SP1

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  d.   &nb= sp; Install ASP.NET 3.5 

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  e.   &nb= sp; Install SQL Server 2008 with mixed mode authentication

i.=       = Enable the sa account with a password.  You will need the p= assword for sa later.

ii= .      If SQL Server 2008 is already installed without mixed mode authentication and/= or sa is disabled:

a.=       Open the SQL Server 2008 Management Studio

b.=       Connect to SQL Server using windows authentication

c.=       Right click the server name and choose properties

d.=       Go to security tab. Change server authentication to “SQL Server and Wind= ows Authentication mode”

e.=       Click OK and restart SQL Server

f.=       = Go to SQL Server 2008 Management Studio

g.=       Expand the server and choose security and expand logins

h.=       Right click on sa, from properties modify the passwor= d and confirm password

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   f.   &nb= sp; If you setup IIS before this you may need to run setup_ut= ilities\util\servicemodelreg64.cmd (or servicemodel.cmd if yo= u run 32 bit)

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  g.   &nb= sp; Optional: You may want to enable network discovery so you can browse to shares with c= ode.  This may not be needed for a = single server install but if you are going to use more than one machine then this = is a good option.

3.=       Seed the database and create accounts

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; Open the solution setup_utilities\SetupActions\SetupActions.sln

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  b.   &nb= sp; Open the App.config in your solution. When you build= the project this will be renamed to [program name].exe.con= fig.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  c.   &nb= sp; If you checked-out the solution to a different directory then C:\StockTraderDe= mo, then update the installP= ath setting with the proper path.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  d.   &nb= sp; Set the dbserver= key to point to your MSSQL instance. You might be able to set it to "<= strong>." for the simplest case. If you use SQLExpress or a named instance= it will be different (eg. “.\SQLExpress<= /span>”).

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  e.   &nb= sp; Set the right dbPasswo= rd for the sa account.<= span style=3D'mso-spacerun:yes'>  Run the project

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   f.   &nb= sp; Press any key when the SetupActions has completed.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  g.   &nb= sp; Open ports 8000 and 9000 on your firewall.

i.=       = Control Panel->Windows Firewall->"Allow a program through the fire wall"

ii= .      You will get to a dialog, choose exceptions Tab

ii= i.     Click Add Port

iv= .     Name it "8000" and put 8000 in the port Number field

v.=       Repeat for 9000

4.=       Setup the website under IIS

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; In IIS manager

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  b.   &nb= sp; Right-click Default Website and choose Add a Virtual Directory

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  c.   &nb= sp; Enter trade as the alias.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  d.   &nb= sp; Select trader_client\trade as the physical path

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  e.   &nb= sp; If your running vista, right-click the virtual directory and choose Convert to Application.

5.=       Install the Test Certificates

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; Install three certificates: setup_utilities\Util\ stocktraderpfxfile.pfx, BSLClient.pfx, OPSHost.= pfx

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  b.   &nb= sp; Run mmc

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  c.   &nb= sp; In mmc go to File -> Add/Remove Snap-in…<= /p>

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  d.   &nb= sp; Add Certificates and select Computer Account and choose Next then  choose Finish.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  e.   &nb= sp;  Push Ok to return to mmc

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   f.   &nb= sp; Now, open the Certificates Folder, and then open the Trusted People folder.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  g.   &nb= sp; Right click on the Trusted People folder, and choose All Tasks, Import.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  h.   &nb= sp; This will bring up the Import wizard.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   i.   &nb= sp; Choose Next, then click Browse.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   j.   &nb= sp; Make sure to change the displayed file types to “Personal Information Exch= ange (*.pfx; *p12) file types.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  k.   &nb= sp; Browse to and select the setup_utilities\util\stocktraderpfxfile.pfx file.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   l.   &nb= sp; Click Next.

&nbs= p;            &= nbsp;           &nbs= p;             m.   &nb= sp; You will be prompted for a password.  The password is ‘yyy’.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  n.   &nb= sp; Click Next, Next, and Finish to import the certificate= to the \Local Computer\Trusted People certificate store.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp; o.   &nb= sp; Repeat for the BSLClient.pfx and OPSHost.pfx certificates.

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  p.   &nb= sp; If you are running Windows Server 2003 or Windows XP you will need to repeat t= hese steps with the Local Computer\Trusted Root Certificate Authorities folder.<= /p>

6.=       Build the solutions

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; Double-click the BuidDotNet.cmd script to build the solution

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  b.   &nb= sp; Binaries are copied by build to order_processor\bin\Debu= g, business_service\bin\Debug, trad= e_client\bin\Debug respectively

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  c.   &nb= sp; If you specified a database instance name in the section 3, you will need to update the config files to point to the proper database instance.  The config files are located in the same directory as the= .exe files, and they contain the extension .exe.config.  If you are using the InProcess Access method of the .NET Website you will also need to update the database instance name in the web.config file in the Tra= de directory.

7.=       Run the StockTrader demo

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  a.   &nb= sp; Start the Order Processor and Business Service.&= nbsp;

i.=       = Right click the RunServices.bat file and choose Run as Administrator. 

ii= .      Choose either a run mode of either Debug or Release.

ii= i.     This will start both the OrderProcessorService and t= he BusinessService console applications.

Console App should remain open and active (do n= ot exit application!)

&nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  b.   &nb= sp; In a browser, run the Web app http://local= host/trade/

 

The default configuration for the .NET StockTrader Website is to use the DotNet_Http_WcfService for communicating with the Business Service, and ASync_Htt= p_MSecurity when processing orders.  For m= ore information on configuration options see the Stonehenge Interoperability Walk-through.

 

------=_NextPart_01C9C96E.4F656380 Content-Location: file:///C:/EA821A05/ReadMe_files/item0001.xml Content-Transfer-Encoding: quoted-printable Content-Type: text/xml ------=_NextPart_01C9C96E.4F656380 Content-Location: file:///C:/EA821A05/ReadMe_files/props0002.xml Content-Transfer-Encoding: quoted-printable Content-Type: text/xml ------=_NextPart_01C9C96E.4F656380 Content-Location: file:///C:/EA821A05/ReadMe_files/themedata.thmx Content-Transfer-Encoding: base64 Content-Type: application/vnd.ms-officetheme UEsDBBQABgAIAAAAIQCCirwT+gAAABwCAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKyRy2rDMBBF 94X+g9C22HK6KKXYzqJJd30s0g8Y5LEtao+ENAnJ33fsuFC6CC10IxBizpl7Va6P46AOGJPzVOlV XmiFZH3jqKv0++4pu9cqMVADgyes9AmTXtfXV+XuFDApmaZU6Z45PBiTbI8jpNwHJHlpfRyB5Ro7 E8B+QIfmtijujPXESJzxxNB1+SoLRNegeoPILzCKx7Cg8Pv5DCSAmAtYq8czYVqi0hDC4CywRDAH an7oM9+2zmLj7X4UaT6DF9jNBDO/XGD1P+ov5wZb2A+stkfp4lx/xCH9LdtSay6Tc/7Uu5AuGC6X t7Rh5r+tPwEAAP//AwBQSwME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LAQItABQABgAIAAAAIQCCirwT+gAAABwC AAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgAAAAhAKXW p+fAAAAANgEAAAsAAAAAAAAAAAAAAAAAKwEAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgAAAAhAGt5 lhaDAAAAigAAABwAAAAAAAAAAAAAAAAAFAIAAHRoZW1lL3RoZW1lL3RoZW1lTWFuYWdlci54bWxQ SwECLQAUAAYACAAAACEAlrWt4pYGAABQGwAAFgAAAAAAAAAAAAAAAADRAgAAdGhlbWUvdGhlbWUv dGhlbWUxLnhtbFBLAQItABQABgAIAAAAIQAN0ZCftgAAABsBAAAnAAAAAAAAAAAAAAAAAJsJAAB0 aGVtZS90aGVtZS9fcmVscy90aGVtZU1hbmFnZXIueG1sLnJlbHNQSwUGAAAAAAUABQBdAQAAlgoA AAAA ------=_NextPart_01C9C96E.4F656380 Content-Location: file:///C:/EA821A05/ReadMe_files/colorschememapping.xml Content-Transfer-Encoding: quoted-printable Content-Type: text/xml ------=_NextPart_01C9C96E.4F656380 Content-Location: file:///C:/EA821A05/ReadMe_files/filelist.xml Content-Transfer-Encoding: quoted-printable Content-Type: text/xml; charset="utf-8" ------=_NextPart_01C9C96E.4F656380--