Welcome   |   ASP.NET   |   Web Services   |   Class Browser   
  |   I want my samples in...      

ASP.NET 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)> _
<WebService(Namespace:="Microsoft.Samples.XmlMessaging.WebServices")> _
Public Class BPConformance_asmx
      
   <WebMethod> _
   Public Function HelloWorldBP() As String
      'implement method here
   End Function 'HelloWorld

End Class 'BPConformance_asmx
VB


VB Sample Caption
Run Sample View Source



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