Home   |   QuickStart Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   
  |   I want my samples in...      

ASP.NET 2.0 Web Services QuickStart Tutorial

WS-I Basic Profile 1.1 Conformance

ASP.NET Web Services now supports the WS-I Basic Profile.

To build a WS-I Basic Profile conformant Web service, use the WebServiceBinding attribute on your Web service class. Setting WebServiceBinding.ConformanceClaims to WsiProfiles.BasicProfile1_1 makes the SOAP 1.1 port exposed by this service conform to the WS-I Basic Profile 1.1. (Note that SOAP 1.2 bindings are not Basic Profile 1.1 conformant by definition.) Setting WebServiceBinding.EmitConformanceClaims = true emits documentation elements in the service's WSDL that indicate it is conformant to the WS-I Basic Profile 1.1. These claims are not required; you can turn off conformance claims (while retaining port conformance) by setting EmitConformanceClaims = false.

NOTE: By default, new Web services created by Visual Studio are BP-conformant with WebServiceBinding.EmitConformanceClaims set to true.

[WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1, EmitConformanceClaims=true)]
public class BPConformance_asmx 
   public string HelloWorldBP() 
      //implement method here

VB Sample Caption
Run Sample View Source

Microsoft .NET Framework SDK QuickStart Tutorials Version 2.0
Copyright � 2004 Microsoft Corporation. All rights reserved.