SoapDocumentServiceAttribute.RoutingStyle 속성


SOAP 메시지가 XML Web services로 라우팅되는 방법을 가져오거나 설정합니다.Gets or sets how SOAP messages are routed to the XML Web service.

 property System::Web::Services::Protocols::SoapServiceRoutingStyle RoutingStyle { System::Web::Services::Protocols::SoapServiceRoutingStyle get(); void set(System::Web::Services::Protocols::SoapServiceRoutingStyle value); };
public System.Web.Services.Protocols.SoapServiceRoutingStyle RoutingStyle { get; set; }
member this.RoutingStyle : System.Web.Services.Protocols.SoapServiceRoutingStyle with get, set
Public Property RoutingStyle As SoapServiceRoutingStyle

속성 값

SOAP 메시지가 XML Web services로 라우팅되는 방법을 나타내는 SoapServiceRoutingStyle입니다.A SoapServiceRoutingStyle that represents how SOAP messages are routed to the XML Web service. 기본값은 SoapAction입니다.The default value is SoapAction.


<%@ WebService Language="c#" Class="SumService" %>

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

    public class SumService : System.Web.Services.WebService
        public int Add(int a, int b)
            return a + b;
<%@ 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

적용 대상