|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
SoapHttpClientProtocol, classe
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.Services.Protocols.WebClientProtocol
System.Web.Services.Protocols.HttpWebClientProtocol
System.Web.Services.Protocols.SoapHttpClientProtocol
Espace de noms : System.Web.Services.Protocols
Assembly : System.Web.Services (dans System.Web.Services.dll)
Le type SoapHttpClientProtocol expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | SoapHttpClientProtocol |
| Nom | Description | |
|---|---|---|
![]() | AllowAutoRedirect | |
![]() | CanRaiseEvents | |
![]() | ClientCertificates | |
![]() | ConnectionGroupName | |
![]() | Container | |
![]() | CookieContainer | |
![]() | Credentials | |
![]() | DesignMode | |
![]() | EnableDecompression | |
![]() | Events | |
![]() | PreAuthenticate | |
![]() | Proxy | |
![]() | RequestEncoding | |
![]() | Site | |
![]() | SoapVersion | |
![]() | Timeout | |
![]() | UnsafeAuthenticatedConnectionSharing | |
![]() | Url | |
![]() | UseDefaultCredentials | |
![]() | UserAgent |
| Nom | Description | |
|---|---|---|
![]() | Abort | |
![]() | BeginInvoke | |
![]() | CancelAsync | |
![]() | CreateObjRef | |
![]() | Discover | |
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | EndInvoke | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetHashCode | |
![]() | GetLifetimeService | |
![]() | GetReaderForMessage | |
![]() | GetService | |
![]() | GetType | |
![]() | GetWebRequest | |
![]() | GetWebResponse(WebRequest) | |
![]() | GetWebResponse(WebRequest, IAsyncResult) | |
![]() | GetWriterForMessage | |
![]() | InitializeLifetimeService | |
![]() | Invoke | |
![]() | InvokeAsync(String, Object[], SendOrPostCallback) | |
![]() | InvokeAsync(String, Object[], SendOrPostCallback, Object) | |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | |
![]() | ToString |
namespace MyMath { using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.Web.Services; [System.Web.Services.WebServiceBindingAttribute(Name="MyMathSoap", Namespace="http://www.contoso.com/")] public class MyMath : System.Web.Services.Protocols.SoapHttpClientProtocol { [System.Diagnostics.DebuggerStepThroughAttribute()] public MyMath() { this.Url = "http://www.contoso.com/math.asmx"; } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.contoso.com/Add", RequestNamespace="http://www.contoso.com/", ResponseNamespace="http://www.contoso.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public int Add(int num1, int num2) { object[] results = this.Invoke("Add", new object[] {num1, num2}); return ((int)(results[0])); } [System.Diagnostics.DebuggerStepThroughAttribute()] public System.IAsyncResult BeginAdd(int num1, int num2, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Add", new object[] {num1, num2}, callback, asyncState); } [System.Diagnostics.DebuggerStepThroughAttribute()] public int EndAdd(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } } }
Note de sécurité |
|---|
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
