Internet Information Server 6 Setup - Perfection Web Service
In Windows Server 2003 R2 Services IIS has to be turned on and enabled. (World Wide Web Publishing Service)
If the service is not installed then it needs to be installed:
Control Panel
Add Remove Programs
Add/Remove Windows Components
Internet Information Services (IIS)
Check Application Server - IIS
If FTP is installed to to Services - set the FTP Publishing service to manual and stop it
Open IIS Manager: Control Panel>Administrative Tools>Internal Information Services (IIS) Manager
Open: Local Computer>Web Sites>Default Web Site
Setup the site PSWebService:
Right click on Default Web Site > Properties
Web Site tab
Uncheck: HTTP Keep-Alives Enabled (in other words disable it)
Home Directory tab
Check Read and Write
Execute permissions: Scripts and Executables
Click Apply and Select All to set Access Flags
Documents tab
Add
Service.asmx
Move up to the top of the list
ASP.NET tab
ASP.NET version: 4.0.30319
Click: Apply and click ok on Inheritance
Edit Global configuration
Application tab
Enable debugging
Click Ok (to exit properties)
Unzip PSWebService into c:\Inetpub\wwwroot\PSWebService
Create a new site: Right click on Default Web Site > New > Virtual Directory
Alias = PSWebService or PSWeb
Path = C:\Inetpub\wwwroot\PSWebService or PSWeb
Virtual Directory Access Permissions = check all
Click: Finish
One time: (maybe not if this is necessary)
Command prompt
aspnet_regiis -i
If the command does not work then add the following string to the path
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
Right Click My Computer>Properties>Advanced>Environment Variables>Path>Edit
(Add the above path separated by a semi-colon ;)
Services to start and set to automatic:
World Wide Web Publishing
ASP.NET State Service
To reset IIS:
run or in cmd
iisreset
Go bakc into IIS Manager\Web Service Extensions:
Allow ASP.NET v4.0.30319 (Also called Active Server Pages)
Edit the web.config with the appropriate settings:
PSWebService:
C:\Inetpub\wwwroot\PSWebService\web.config
<appSettings>
<add key="LogPath" value="c:\temp\PSWebServiceLog"/>
<add key="PWS_Account" value="PM,PS"/>
<add key="PWS_Server" value="10.1.1.11,10.1.1.11"/>
<add key="PWS_Port" value="9090,9091"/>
<add key="RequestTimeout" value="120000"/>
<add key="TraceData" value="True"/>
</appSettings>
<connectionStrings>
<add name="PM" connectionString="Dsn=PM"/>
<add name="PS" connectionString="Dsn=PS"/>
</connectionStrings>
To Test, go to into an internet browser:
http://localhost/pswebservice
*menu listing should come up, if working correctly
http://localhost:81/pswebservice/service.asmx/WebServiceVersion
*should come up with above responce:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://PSWebService/">v1.23</string>
*If you get an error like this:
[InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\pswebservice' could not be found
error CS2008: No inputs specified
-Go to \\windows\temp folder and right click then properties and give USERS full control under Security tab.
Add to the Coldstart:
!c:\TECH\CURL\curl http://localhost:9090/testwho
Create in TCL in PM account:
U MD TEST.PM.TEST
001 N
002 !c:\TECH\CURL\curl http://localhost:9090/test
003 !c:\TECH\CURL\curl http://localhost:9090/testwho