Export (0) Print
Expand All
Expand Minimize

SoapBindingStyle Enumeration

Specifies the type of action that occurs in the XML Web service at the level of the class hierarchy to which this enumeration is applied.

[Visual Basic]
<Serializable>
Public Enum SoapBindingStyle
[C#]
[Serializable]
public enum SoapBindingStyle
[C++]
[Serializable]
__value public enum SoapBindingStyle
[JScript]
public
   Serializable
enum SoapBindingStyle

Remarks

This enumeration allows the user to specify whether the message being transmitted is procedure-oriented or document-oriented. Procedure-oriented messages contain parameters and return values, while document-oriented messages contain documents.

Members

Member name Description
Default The default type of action for the current hierarchical level of the Web Services Description Language (WSDL) file.
Document The message being transmitted is document-oriented.
Rpc The message being transmitted contains the parameters to call a procedure or the return values from that procedure. RPC is an acronym for "remote procedure call."

Example

[Visual Basic] 
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)

[C#] 
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);

[C++] 
SoapBinding* mySoapBinding = new SoapBinding();
mySoapBinding->Transport = S"http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding->Extensions->Add(mySoapBinding);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Web.Services.Description

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web.Services (in System.Web.Services.dll)

See Also

System.Web.Services.Description Namespace

Show:
© 2014 Microsoft