#1 Create a new RandomData3 directory
In Windows Explorer, create the D:\inetpub\wwwroot\WS\RandomData3 directory
|
#2 Grant permissions to the new folder for Active Directory service account and domain group
|
#3 Open IIS and create new ‘RandomData’ Application Pool
The reason a custom application pool is being created is because we want to use an Active Directory service account, instead of a SQL userID/password in our web services’ Web.config file’s connection string.
Once IIS is opened, navigate to Application Pools. Right-click Application Pools and click ‘Add Application…’. Give the new application the name of ‘RandomData’ and select the ‘.NET Framework v4.0.xxxxx’ version as seen below. Click <OK> …
Once created, go to ‘Advanced Settings…’ on the new RandomData app pool, click the <Set…> button and enter the Active Directory service account and password as shown below. Then click <OK> until you’re back to the main IIS screen …
|
#4 Copy web deployment package
Copy the RandomData_Release_YYYMMDD.zip file from the deployment folder (ftp://10.193.63.129/CHIPS2/RANDOM_Web_Services/) to a deployment folder on the web server.
|
#5 Create the new ‘RandomData3’ application
In IIS, navigate to the Default Web Site and expand the WS folder. You should see the same directory structure as you see in Windows Explorer in #1 above, except that ‘RandomData3’ won’t be there yet:
Right-click ‘Default Web Site’ and click ‘Deploy >’, then ‘Import Application…’
Click the <Browse…> button and navigate to where you placed the RandomData_Release_YYYMMDD.zip web deployment package in step #4. Then click <Next> …
Leave everything checked and click <Next> again …
Enter ‘RandomData3’ in the textbox and click <Next> …
Website deployment is complete … click <Finish> …
#6 Make sure the database connection string is correct
Navigate to the appropriate web.config file and set the ‘Server=’ value and ‘database=’ value …
DEV (D:\inetpub\wwwroot\WSRANDOM4\RandomData\web.config)
<appSettings>
<add key="ConnectionString" value="Server=PCGBCCWQADB02.sysdev.adroot.randomgc.net;Trusted_Connection=Yes;database=RANDOM2_UAT"/>
</appSettings>
QA (D:\inetpub\wwwroot\WS\RandomData3\web.config)
<appSettings>
<add key="ConnectionString" value="Server=PCG-B-W-Q-DB1.officeqa.adrootqa.randomgc.net;Trusted_Connection=Yes;database=RANDOM2"/>
</appSettings>
PROD (D:\inetpub\wwwroot\WS\RandomData3\web.config)
<appSettings>
<add key="ConnectionString" value="Server=TOM1BCCWPRSQL01.office.adroot.randomgc.net;Trusted_Connection=Yes;database=RANDOM2"/>
</appSettings>
|
#7 Set the Authentication for the new RandomData3 web services
Click the ‘RandomData3’ application under the ‘WS’ application and then click the ‘Authentication’ icon on the right side of the screen …
Enable ‘Anonymous Authentication’ and Disable ‘Windows Authentication’ …
|
#8 Point the new ‘RandomData3’ web service to the new ‘RandomData’ application pool
Click the ‘RandomData3’ application and click ‘Basic Settings…’. Then click the <Select…> button and choose ‘RandomData’ from the ‘Application pool’ dropdown listbox. Click <OK> and then <OK> again …
NOTE: screenshot reflects directory structure and names from DEV server
|
#9 Restart the Default Web Service
|
#10 Test the web service
You should see the following screen …
|
#11 Test a web method
Click the ‘getPMsByID’ link, then enter ‘dhelmin’ in the userID textbox and click the <Invoke> button …
… another IE window will open that looks like this …
Installation of RANDOM Web Services SUCCESSFUL!!!
|