Internet Information Server 7.5 Setup - Perfection Web Service

In Windows Server 2008 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

Right Click on Application Pools

       Double click on DefaultAppPool and change the .NET Framework version to: .NET Framework v4.0.30319

Open: Sites>Default Web Site

Setup the site PSWebService:

Click on the Default Web Site:

       IIS section > Default Document

               Add (on right side)

               Service.asmx

               Move up to the top of the list

Unzip PSWebService into c:\Inetpub\wwwroot\PSWebService

Create a new site:         

       Right click on Default Web Site > Add Application

       Alias = PSWebService

       Path = C:\Inetpub\wwwroot\PSWebService

       Click: OK

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

Edit the web.config with the appropriate settings:.

Test it in a browser http://localhost/pswebservice  (remember to include the port if IIS is setup to listen on a non-standard http port). Test it with the external IP address also. If the service list of methods appears, it is working properly.

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