A read only display for the STI tickets program using WCF
This is a multi-part application. Part 1 is a WCF service to be run on IIS which exposes a JSON representation of open tickets in the STI tickets database. Part 2 is a web client used to visualize the JSON.
- Make sure Tickets database is available on the network
- Install IIS on an application server
- Install the dotnet framework, WCF Services, and HTTP Activation on the application server
- Right click a website in IIS and choose to Add Application
- Give the application the allias of TicketsWcf and select a physical path on the server
- Open the solution with visual studio and build it
- Copy the Web.config file and the TicketsService.svc file to the root of the application
- Copy TicketsWcfJson.dll file to a subfolder called bin
- Edit the Web.config file and correct the connection string to the database
- Example: add name="TicketsConnection" connectionString="connection string here" providerName="System.Data.SqlClient"
- Visit the page and make sure JSON is displayed.
- Example http:/192.168.1.1/ticketswcf/TicketsService.svc/GetOpenTickets