Installation of Web Services

#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
 
  1. Right-click the D:\inetpub\wwwroot\WS\RandomData3 folder and click Properties.  Then go to the Security tab
  2. Click the <Edit…> button, then the <Add…> button
  3. Click the <Locations…> button, then select ‘office.adroot.randomgc.net’ in the listbox and click <OK>
  4. Type ‘RANDOMWEB.PROD’ in the ‘Enter object names to select’ box and click the <Check Names> button.  The full ‘RANDOMWEB.PROD (RANDOMWEB.PROD@office.adroot.randomgc.net)’ should appear in that box
  5. Click <OK>
  6. Make sure the default permissions are ‘Allow’ed:  Read & execute þ, List folder contents þ, and Read þ
  7. Click <OK>
  8. Repeat steps b. through g. above using ‘ROL-RANDOM_WEB_PROD’ in place of ‘RANDOMWEB.PROD’
  9. Click <OK>
 
 
 
#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> …
 
clip_image001[4]
 
  
 
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 …
 
 
clip_image003[4]
 
#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:
 
clip_image004[4]
 
Right-click ‘Default Web Site’ and click ‘Deploy   >’, then ‘Import Application…
 
clip_image005[4]
 
 
Click the <Browse…> button and navigate to where you placed the RandomData_Release_YYYMMDD.zip web deployment package in step #4.  Then click <Next> …
 
clip_image006[4]
 
 
 
Leave everything checked and click <Next> again …
 
clip_image007[4]
 
 
 
 
Enter ‘RandomData3’ in the textbox and click <Next> …
 
clip_image008[4]
 
 
 
Website deployment is complete … click <Finish> …
 
clip_image009[4]
 
 
#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 …
 
clip_image011[4]
 
 
 
Enable ‘Anonymous Authentication’ and Disable ‘Windows Authentication’ …
 
clip_image012[4]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#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
 
clip_image014[4]
 
#9  Restart the Default Web Service
Click the clip_image015[4], then click the ‘Restart’ link on the right side of the screen … clip_image016[4]
#10  Test the web service
 
 
You should see the following screen …
 
clip_image018[4]
 
 
#11  Test a web method
 
Click the ‘getPMsByID’ link, then enter ‘dhelmin’ in the userID textbox and click the <Invoke> button …
 
clip_image019[4]
 
 
 
 
 
… another IE window will open that looks like this …
 
clip_image021[4]
 
Installation of RANDOM Web Services SUCCESSFUL!!!

Post a Comment

Previous Post Next Post