Export (0) Print
Expand All

SoapRpcServiceAttribute.RoutingStyle Property

Gets or sets how SOAP messages are routed to the XML Web service.

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

public SoapServiceRoutingStyle RoutingStyle { get; set; }
/** @property */
public SoapServiceRoutingStyle get_RoutingStyle ()

/** @property */
public void set_RoutingStyle (SoapServiceRoutingStyle value)

public function get RoutingStyle () : SoapServiceRoutingStyle

public function set RoutingStyle (value : SoapServiceRoutingStyle)

Not applicable.

Property Value

A SoapServiceRoutingStyle that represents how SOAP messages are routed to the XML Web service. 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;

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft