SoapBindingStyle Výčet

Definice

Určuje typ akce, ke které dochází ve webové službě XML na úrovni hierarchie třídy, na kterou je použit tento výčet.

public enum class SoapBindingStyle
public enum SoapBindingStyle
type SoapBindingStyle = 
Public Enum SoapBindingStyle
Dědičnost
SoapBindingStyle

Pole

Default 0

Výchozí typ akce pro aktuální hierarchickou úroveň souboru WSDL (Web Services Description Language).

Document 1

Přenášená zpráva je zaměřená na dokument.

Rpc 2

Přenášená zpráva obsahuje parametry pro volání procedury nebo návratové hodnoty z tohoto postupu. RPC je zkratka pro "vzdálené volání procedur".

Příklady

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)

Poznámky

Tento výčet umožňuje uživateli určit, zda je přenášená zpráva procedurově orientované nebo dokumentově orientované. Zprávy orientované na proceduru obsahují parametry a návratové hodnoty, zatímco dokumentově orientované zprávy obsahují dokumenty.

Platí pro