SoapBindingStyle Enumeração
Definição
Especifica o tipo de ação que ocorre no serviço Web XML no nível da hierarquia de classe à qual esta enumeração é aplicada.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.
public enum class SoapBindingStyle
public enum SoapBindingStyle
type SoapBindingStyle =
Public Enum SoapBindingStyle
- Herança
Campos
| Default | 0 | O tipo de padrão de ação para o nível hierárquico atual do arquivo de linguagem WSDL.The default type of action for the current hierarchical level of the Web Services Description Language (WSDL) file. |
| Document | 1 | A mensagem sendo transmitida é orientada por documentos.The message being transmitted is document-oriented. |
| Rpc | 2 | A mensagem sendo transmitida contém os parâmetros para chamar um procedimento ou os valores retornados desse procedimento.The message being transmitted contains the parameters to call a procedure or the return values from that procedure. RPC é um acrônimo para "chamada de procedimento remoto".RPC is an acronym for "remote procedure call." |
Exemplos
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)
Comentários
Essa enumeração permite que o usuário especifique se a mensagem que está sendo transmitida é orientada por procedimento ou orientada a documentos.This enumeration allows the user to specify whether the message being transmitted is procedure-oriented or document-oriented. As mensagens orientadas por procedimento contêm parâmetros e valores de retorno, enquanto as mensagens orientadas a documentos contêm documentos.Procedure-oriented messages contain parameters and return values, while document-oriented messages contain documents.