Freigeben über


SoapDocumentServiceAttribute.RoutingStyle-Eigenschaft

Ruft ab oder legt fest, wie SOAP-Nachrichten an den XML-Webdienst weitergeleitet werden.

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Property RoutingStyle As SoapServiceRoutingStyle
'Usage
Dim instance As SoapDocumentServiceAttribute
Dim value As SoapServiceRoutingStyle

value = instance.RoutingStyle

instance.RoutingStyle = value
public SoapServiceRoutingStyle RoutingStyle { get; set; }
public:
property SoapServiceRoutingStyle RoutingStyle {
    SoapServiceRoutingStyle get ();
    void set (SoapServiceRoutingStyle value);
}
/** @property */
public SoapServiceRoutingStyle get_RoutingStyle ()

/** @property */
public void set_RoutingStyle (SoapServiceRoutingStyle value)
public function get RoutingStyle () : SoapServiceRoutingStyle

public function set RoutingStyle (value : SoapServiceRoutingStyle)

Eigenschaftenwert

Ein SoapServiceRoutingStyle, der darstellt, wie SOAP-Nachrichten an den XML-Webdienst weitergeleitet werden. Der Standardwert ist SoapAction.

Beispiel

<%@ WebService Language="VB" Class="SumService" %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Web.Services.Description

    <SoapDocumentService(SoapBindingUse.Literal, _
                             SoapParameterStyle.Wrapped, _
                             RoutingStyle := SoapServiceRoutingStyle.SoapAction)> _
    Public Class SumService 
          Inherits System.Web.Services.WebService
    
        <WebMethod> _
        Public Function Add(a As Integer, b as Integer)
           return a + b
        End Function
    End Class
<%@ WebService Language="c#" Class="SumService" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Services.Description;

    [SoapDocumentService(SoapBindingUse.Literal,
                         SoapParameterStyle.Wrapped,
                         RoutingStyle=SoapServiceRoutingStyle.SoapAction)]
    public class SumService : System.Web.Services.WebService
    {
        [WebMethod]
        public int Add(int a, int b)
        {
            return a + b;
        }
    }

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

SoapDocumentServiceAttribute-Klasse
SoapDocumentServiceAttribute-Member
System.Web.Services.Protocols-Namespace