SoapServerMessage 類別

定義

表示 XML Web Service 方法在特定 SoapMessageStage 所接收的 SOAP 要求中或所傳送的 SOAP 回應中的資料。 此類別無法獲得繼承。

public ref class SoapServerMessage sealed : System::Web::Services::Protocols::SoapMessage
public sealed class SoapServerMessage : System.Web.Services.Protocols.SoapMessage
type SoapServerMessage = class
    inherit SoapMessage
Public NotInheritable Class SoapServerMessage
Inherits SoapMessage
繼承
SoapServerMessage

範例

下列程式碼片段是 SOAP 擴充功能的一部分,可記錄 XML Web 服務方法所傳送和接收的 SOAP 訊息。 此特定片段會將的 SoapServerMessage SoapExtension.ProcessMessage 屬性寫入至記錄檔,以處理傳遞至 SOAP 擴充方法的方法 SoapServerMessage

屬性

Action

取得 SOAP 要求或 SOAP 回應的 SOAPAction HTTP 要求標頭欄位。

ContentEncoding

取得或設定 Content-Encoding HTTP 標頭的內容。

(繼承來源 SoapMessage)
ContentType

取得或設定 SOAP 要求或 SOAP 回應的 HTTP Content-Type

(繼承來源 SoapMessage)
Exception

取得 SoapException,其因呼叫 XML Web Service 方法而造成的。

(繼承來源 SoapMessage)
Headers

套用至目前 SOAP 要求或 SOAP 回應的 SOAP 標頭集合。

(繼承來源 SoapMessage)
MethodInfo

取得 SOAP 要求所適用 XML Web Service 方法的方法原型 (Prototype) 表示。

OneWay

取得值,指出用戶端是否等候伺服器完成 XML Web Service 方法的處理。

Server

取得處理 Web 伺服器上方法引動過程的類別的執行個體。

SoapVersion

取得用來與 XML Web Service 通訊的 SOAP 通訊協定版本。

SoapVersion

取得用來與 XML Web Service 通訊的 SOAP 通訊協定版本。

(繼承來源 SoapMessage)
Stage

取得 SoapMessageStageSoapMessage

(繼承來源 SoapMessage)
Stream

取得以 Stream 形式表示的 SOAP 要求或 SOAP 回應的資料。

(繼承來源 SoapMessage)
Url

取得 XML Web Service 的基礎 URL。

方法

EnsureInStage()

當在衍生類別中覆寫時,判斷提示 (Assert) 目前的 SoapMessageStage 是可以取得 in 參數的階段。

(繼承來源 SoapMessage)
EnsureOutStage()

當在衍生類別中覆寫時,判斷提示目前的 SoapMessageStage 階段是可以取得 out 參數的階段。

(繼承來源 SoapMessage)
EnsureStage(SoapMessageStage)

確認呼叫 XML Web Service 方法的 SoapMessageStage 是傳入的階段。 如果目前的處理階段不是傳入的其中一個階段,則擲回例外狀況。

(繼承來源 SoapMessage)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetInParameterValue(Int32)

在指定的索引處取得傳入 XML Web Service 方法的參數。

(繼承來源 SoapMessage)
GetOutParameterValue(Int32)

在指定索引處取得傳入 XML Web Service 方法的 out 參數。

(繼承來源 SoapMessage)
GetReturnValue()

取得 XML Web Service 方法的傳回值。

(繼承來源 SoapMessage)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於