SoapServiceAttribute Class

Indicates that a service is callable across the Internet. This class cannot be inherited.

Namespace: Microsoft.Web.Services2.Messaging
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim targetNamespace As String
Dim soapServiceAttribute1 As New SoapServiceAttribute(targetNamespace)

Syntax

'Declaration
NotInheritable Public Class SoapServiceAttribute
    Inherits Attribute
public sealed class SoapServiceAttribute : Attribute
public sealed ref class SoapServiceAttribute : public Attribute
public final class SoapServiceAttribute extends Attribute
public class SoapServiceAttribute extends Attribute

Remarks

Use this attribute for declaring the targetNamespace attribute for generated WSDL. This value is also used as the default namespace for any XML serialization of types that do not have System.Xml.Serialization.XmlRootAttribute or System.Xml.Serialization.XmlTypeAttribute attributes applied.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Web.Services2.Messaging.SoapServiceAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

Microsoft.Web.Services2.Messaging Namespace

Other Resources

SoapServiceAttribute Members