SoapDocumentServiceAttribute.RoutingStyle 속성

정의

SOAP 메시지가 XML Web services로 라우팅되는 방법을 가져오거나 설정합니다.

public:
 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

속성 값

SoapServiceRoutingStyle

SOAP 메시지가 XML Web services로 라우팅되는 방법을 나타내는 SoapServiceRoutingStyle입니다. 기본값은 SoapAction입니다.

예제

<%@ 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;
        }
    }
<%@ 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

적용 대상