Project Description
Application allows a developer to configure a web survey using XML, post the survey with ASP.NET and persist/retrieve questions/answers on/from the destination wiki. Allows rapid content development for wikis in a semi-structured form. Supports MediaWiki via WikiAccess.NET API.
Requirements
Instructions
When you download the source code, there should be two folders: webSurvey2Wiki and WikiAccess-0.3-src.
I had to include the source for the WikiAccess Library since I had to make some changes that supported a wiki that required credentials. The original source for WikiAccess is maintained here, http://www.example.com . I have emailed my changes to the developers for this API, so hopefully it will get rolled into their next release.
Steps to get it to run:
Application allows a developer to configure a web survey using XML, post the survey with ASP.NET and persist/retrieve questions/answers on/from the destination wiki. Allows rapid content development for wikis in a semi-structured form. Supports MediaWiki via WikiAccess.NET API.
Requirements
- MediaWiki Installed and working.
- VS 2005/2008 Installed and working
Instructions
When you download the source code, there should be two folders: webSurvey2Wiki and WikiAccess-0.3-src.
I had to include the source for the WikiAccess Library since I had to make some changes that supported a wiki that required credentials. The original source for WikiAccess is maintained here, http://www.example.com . I have emailed my changes to the developers for this API, so hopefully it will get rolled into their next release.
Steps to get it to run:
- Open up the main solution under: webSurvey2Wiki \webSurvey2Wiki.sln
- Configure your MediaWiki settings in the web.config file.
- If you don't use credentials, just leave the mWikiUsername/mWikiPasswordsettings blank.
- Specify the MediaWiki Root folder in the mWikiRootPath setting
- You can leave everything else alone for now until you want to configure other settings later.
- Specify your users in the Users.xml file.
- This is an XML file and I have provided some sample users so you understand the structure.
- For each user you can specify which survey's he/she has access to. These don't have to be users, it can be anything you want, i.e. Department Names, Groups of people, etc.
- The attribute "admin=true" will give the user access to all surveys
- Specify the survey names in Surveys.xml
- The sample data I provided sets up 4 surveys for named User 1, User 2, etc., but you don't have to tie the name to a specific user since this mapping is done on the Users.xml file.
- Specify the questions in the Restricted\Questions.xml file.
- Each question must have a unique ID, since this is how the asp.net application reads the answers back and matches them with a question.