TechBubbles

WSE Settings 3.0 Tool

The WSE features can be enabled by using WSE 3.0 tool which is a graphical user interface in visual studio 2005. You have to download the WSE 3.0 for .NET to configure the WSE 3.0 tool.

To open the WSE Settings 3.0 tool from Visual Studio 2005.

  1. Open the Solution or project that you want to use the WSE with.
  2. Right click the project point to WSE Settings 3.0 and click

  WSEsettings

To use the WSE settings 3.0 Tool from the start menu

1. Click Start, point to Microsoft WSE 3.0, and then click Configuration Tool.

WSEStart

Read more

Related Posts:

2 comments

WSE Policy element in the policy file

Web services enhancements 3.0

<policy> Element

specifies one or more SOAP Message requirements. A policy element can have one or more child elements.

<policy name="unique policy name">
    <anonymousForCertificateSecurity />
    <mutualCertificate10Security />
    <kerberosSecurity />
    <mutualCertificate11Security />
    <requireActionHeader />
    <requireSoapHeader name="" namespace="" actor="" />
    <usernameForCertificateSecurity />
    <usernameOverTransportSecurity />
  </policy>

name Required attribute which uniquely identifies the policy in policy file.

requireSoapHeader

Represents a security assertion that requires the presence of the specified SOAP header in the SOAP message.

Related Posts:

No comments

Overview of WSE 3.0

Introduction

Web Services Enhancements is a .NET class library to develop web services using latest protocols.

Features

  • Securing the Web Services: It is difficult to secure a web service that cross the security domains. We can secure a web service by sending over secure transport, such as Secure Socket Layer(SSL) but that holds good when the communication is point-to-point. Some times SOAP message has to be routed to so many intermediaries before reaching the receiver. We can address this problem by Adding Security Credentials to SOAP Message.Alternatively we can digitalsign a SOAP Message using WSE.
  • Sending Large Amounts of Data Using WSE:  WSE 3.0 supports the MTOM Message Transmission Optimization Mechanism for sending large amount of data in a soap message. Enabling a Web service to Send and Receive Large amounts of data.    
  • SOAP Messages Routing: SOAP messages can be routed through intermediaries before it reaching to the destination. Routing SOAP Messages using WSE.
  • Hosting the Web services outside IIS: WSE enables ASP.NET web services to be hosted in console applications, windows services and COM+ components. Hosting Web service outside IIS.

Related Posts:

2 comments

SOAP Message Routing with WSE

A application using WSE can be designed by setting up a intermediary computer that is configured to run on WSE router. Clients send messages to WSE router instead of to the web service.

WSE Router

Benefits of using WSE router is computer that hosting a web service can be taken offline for maintenance with out modifying the client code or its configuration.

SOAP-Routing

Administrator prepares a web.config file that containing the referral cache containing the URL for Backup computer. Back computer is  prepared by administrator to redirect the Requests when Primary computer containing the web service is offline.

In the above diagram client sends the SOAP messages to a WSE Router, Which delegates the message to another web server based on the content in referral cache. In this scenario Referral cache is configured to send the SOAP Message to Web server B, but it can be modified to send it to the Web server C.

Related Posts:

1 comment

Configure WSE to Validate SOAP Message

One type verifying the SOAP message is validating the digital signature for the incoming message.Signature validation is done by WSE prior to the execution of the recipient code.

The following procedure can be used to configure the WSE to validate the digital signature for SOAP message.

1. Start Visual studio 2005

2. File Menu, New then click Project.

3. Select ASP.NET Web Service in  the templates pane.

4. Add a reference to the Microsoft.Web.Services3 assembly.

5. In the Web.config file include the <SoapServerProtocolFactory> element in <webServices> section.

<configuration>
   <system.web>
        <webServices>
            <soapServerProtocolFactory 
type="Microsoft.Web.Services3.WseProtocolFactory,
 Microsoft.Web.Services3,
 Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </webServices>
    </system.web>
   </system.web>
</configuration>

  Write the following code to validate the SOAP Message

Read more

Related Posts:

2 comments