
*****************************************************************************************
			  Readme File

Title: Running the Webservice and Client for the Stock forecaster Project

Last update: 10th May 2008


Description: The readme file gives information about the program (written in C#) 
             that will create the websrevice and client for the stock forecaster project. The 	     	     readme also contains instructions to run the solutions created in .Net 

	     The readme for the php scripts is in the Run Folder

******************************************************************************************


(I) REQUIREMENTS
    ------------

To run this code, Visual Studio 2005 would be required which can be downloaded from
http://msdn03.e-academy.com/elms/Storefront/Home.aspx?campus=rutgers_scils
The correct database tables as mentioned in the readme for the script in the RUN folder in CODE


(II) CODE
     ----

The folder contains:

(i)  StockForecasterService
(ii) StockForecasterClient


(III) RUNNING THE CODE
      ------------------

1.Open the WebserviceForecaster Solution file StockForecasterService.sln in VisualStudio

2.Build the solution

3.To check the web service interface 
	Right click on the StockInfo.asmx and select View in browser.
	This will open an Internet Explorer page and show the methods of the webservice interface.(Note the url, you might need this to run the client)
	There will also be a link to see the corresponding wsdl file
Ater that run the solution by pressing F5 key

4. Then open the client solution StockForecasterClient.sln and build and run it.(As the webservice reference is already added the client should give a UI from which the various functionalities can be accessed which call the Webservice methods which in turn call the Data Access Layer class written in StockInfoDAL.cs in the SFSDataAccessLayer project.). In general to add the web service reference to the client . Right click on the client solution select Add Web Reference and then give the url of the browsed web service.

5.In the client the web reference of the webservice created is added so if you expand Web References in the StockForecasterClient project you will find the wsdl file in it.

6. If the client is not able to browse the webservice then in the client solution open the Web.Config file and change the url to the one noted above while browsing the web service.

<applicationSettings>
        <StockForecasterClient.Properties.Settings>
            <setting name="StockForecasterClient_SFSService_StockInfo" serializeAs="String">
                <value>http://localhost:54614/StockInfo.asmx</value> (change this url)
            </setting>
        </StockForecasterClient.Properties.Settings>
    </applicationSettings>

