SoapBindingStyle 列舉

定義

指定發生於 XML Web Service 的動作類型,此服務位在套用這個列舉型別的類別階層架構層級上。

public enum class SoapBindingStyle
public enum SoapBindingStyle
type SoapBindingStyle = 
Public Enum SoapBindingStyle
繼承
SoapBindingStyle

欄位

Default 0

Web 服務描述語言 (WSDL) 檔案的目前階層架構層級的動作預設類型。

Document 1

正在傳輸的訊息是文件導向。

Rpc 2

正在傳輸的訊息含有要從該程式呼叫程序或傳回值的參數。 RPC 是遠端程序呼叫 (Remote Procedure Call) 的縮寫。

範例

SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;

// Add the 'SoapBinding' object to the 'Binding' object.
myBinding->Extensions->Add( mySoapBinding );
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding);
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding)

備註

這個列舉可讓使用者指定傳輸的訊息是程式導向還是檔導向。 程式導向訊息包含參數和傳回值,而檔導向訊息則包含檔。

適用於