Testing the Web Service

This is the fun part. We get to see it all working in unison.

Open the Two CMS Solutions

  1. Open BOTS: Using IE, browse to the Job Offerings section of the BOTS Consulting Web site. From anywhere on the BOTS site, we can choose Careers from the top navigation and subsequently choose Job Offerings from the left navigation, or typing the following URL should get there: http://localhost/botsconsulting/careers/jobs. If no other postings have been added, this summary page will look like Figure 33-6, shown earlier in this chapter. If you created the solution in your own site, pull up the Job Offerings summary page.

  2. Open Woodgrove: In a second IE window, browse to the Careers section of the Woodgrove sample site. From anywhere on the Woodgrove site, we can choose Careers from the About Us menu option in the top navigation, or typing the following URL should get there: http://localhost/WoodgroveNet/About+Us/Careers/. There should be a summary of postings based upon the Job Posting ASPX template under the Careers heading.

Create a New Woodgrove Job Posting

  1. Click the Switch to Edit Site link in the Web Author console of the default page in the jobs channel, unless the posting is already in Unpublished mode.

  2. Click the Create New Page link.

  3. Locate and click the About Us Net link in the template gallery.

  4. Locate the Job Posting ASPX template and click its Select icon.

  5. Enter a job title like "Programmer Analyst" into the first placeholder.

  6. Enter a job description like "Proven development skills in .NET XML Web Services." into the second placeholder.

  7. Enter qualifications like "Must know C#" into the third placeholder.

  8. Enter "how to apply" information like "Call us at 555-1212" into the fourth placeholder.

  9. Click the Save New Page link.

  10. Since Woodgrove shows the name of the posting on their summary, we must give it a displayable name. Type "Programmer Analyst Posting" into the Name text box.

  11. Click OK to dismiss the dialog (the Name will automatically be used as the Display Name as well).

  12. That will fire the code we wrote in the CmsPosting_Approved, unless the channel requires that the posting be explicitly approved. If the new posting is still in a Saved state rather than a Published state, click the Approve link.

Our new Programmer Analyst Posting should be visible in the Woodgrove browser (Figure 33-17), and if we refresh the BOTS site in the other browser, we will see it was syndicated here as well (Figure 33-18).

Figure 33-17. New Woodgrove posting

graphics/33fig17.jpg

Figure 33-18. Syndicated to BOTS summary

graphics/33fig18.jpg

View the Syndicated Content Aggregated in BOTS

  1. Click the Programmer Analyst link in the BOTS Job Offerings summary, and we see that the detailed contents of the syndicated posting are even displayed (Figure 33-19).

    Figure 33-19. Syndicated to BOTS detail

    graphics/33fig19.jpg

  2. Click the Switch to Edit Site link in the Web Author.

  3. Scroll down and click the Page Properties link. The name of the posting will show that this posting was syndicated to BOTS from Woodgrove Bank. The Woodgrove GUID will be visible in the name too.

  4. Click the Cancel button to dismiss the Page Properties dialog.

Change the Woodgrove Posting and Syndicate the Change

  1. Toggle back to the Woodgrove browser.

  2. While still on the Programmer Analyst Posting, click the Edit link in the Web Author.

  3. Change the Job Title placeholder from "Programmer Analyst" to "Programmer II."

  4. Change the Qualifications placeholder from "Must know C#" to "Must know VB.NET."

  5. Click the Save and Exit link in the Web Author.

  6. Click the Approve link in the Web Author if the page didn't automatically go through approval.

  7. Once the posting is in the Published state, toggle back to the BOTS browser.

  8. Refresh the BOTS browser (Figure 33-20).

    Figure 33-20. Changes Syndicated to BOTS

    graphics/33fig20.jpg

Delete the Woodgrove Posting and Syndicate the Deletion

  1. Toggle back to the Woodgrove browser.

  2. While still on the Programmer Analyst Posting, click the Delete link in the Web Author.

  3. The system will prompt "Deleting this page will remove it permanently from the system. Continue?"

  4. Click OK to continue.

  5. The posting will be deleted, and the Woodgrove site will be returned to the Careers summary page.

  6. Toggle back to the BOTS browser.

  7. Click the Job Offerings link in the left navigation.

  8. The posting delete will have been syndicated to BOTS, and the summary will again look like Figure 33-6.



Microsoft Content Management Server 2002. A Complete Guide
Microsoft Content Management Server 2002: A Complete Guide
ISBN: 0321194446
EAN: 2147483647
Year: 2003
Pages: 298

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net