Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 3 - Final Steps for Security Optimization with...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Final Steps for Security Optimization with Web Services
By: MSDN Virtual Labs
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2006-08-03

    Table of Contents:
  • Final Steps for Security Optimization with Web Services
  • Configuring the Client for Secure Conversation
  • Exercise 5 Routing Secure Messages
  • Configuring the Client for Routing
  • Configuring the Service for Routing

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Final Steps for Security Optimization with Web Services - Exercise 5 Routing Secure Messages


    (Page 3 of 5 )

    Scenario

    One of the major benefits of WS-Security is the fact that it's not dependent on the communication channel. The security features are designed in a transport neutral way. This makes it possible to route messages through multiple intermediaries, and perhaps over multiple protocols, in a secure way. In this exercise, you're going to use WSE 2.0's routing features to route SOAP messages through an intermediary while using various security features covered in this lab.

    You'll be working in the Exercises\E\before directory.

            Tasks              Detailed steps

    Configuring the Router
      1. Open Windows Explorer and navigate to C:\Microsoft Hands-on-Lab\DEV-HOL34\VB\Exercises\E\before\Router.
      2. Open referralCache.config in the Router directory and take a look at the file. This file contains referral instructions that will be used by the WSE 2.0 built-in HTTP router. For example, it specifies that when a request comes in for http://localhost/router/ view.ashx, it should be routed to http://localhost/Router Service/ViewInvoices.asmx.

        Note: the Router directory was configured as a virtual directory during the setup for this lab.

      3. Right click on referralCache.config in Windows Explorer and select Properties. 
      4. Browse to the Security tab and click Add…
      5. Type the name ASPNET and click Check Names.
      6. Click OK
      7. Allow the ASPNET account Full Control
      8. Click OK
      9. The application needs to be configured to use this referral document. Open web.config in the Router directory and verify that it contains the following httpHandler mapping for the SoapHttpRouter class:

        <configuration>
          <system.web> 
            <httpHandlers>
              <add type="Microsoft.Web.Services2.
        Messaging.SoapHttpRouter, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e
        35"
        path="*.ashx" verb="*" /> 
            </httpHandlers> 
          </system.web>
          ...


        Note: this entry maps all requests for *.ashx endpoints to the built-in SoapHttpRouter class that knows how to process referral instructions. 

      10. Next, verify that there is a referral element in the microsoft.web.services2 section, specifying the name of the referral
        file:

        <configuration> 
          <configSections>
            <section name="microsoft.web.services2" type="Microsoft.Web.Services2. Configuration.WebServices Configuration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e 35" />
          </configSections>  
          <microsoft.web.services2>
            <referral>
             <cache name="referralCache.config" />
            </referral>
            ...  
          </microsoft.web.services2>
          ...
        </configuration>

     

     

    More Visual Basic.NET Articles
    More By MSDN Virtual Labs


       · We hope you found this lab from MSDN Virtual Labs to be entertaining and...
     

    VISUAL BASIC.NET ARTICLES

    - Clocks and Countdowns
    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek