コード例 #1
0
 /// <summary>
 /// Creates a new <see cref="DynamicWebServiceProxy"/> instance.
 /// </summary>
 /// <param name="wsdlLocation">Location of WSDL file</param>
 /// <param name="enableMessageAccess">Enables access to SOAP messages</param>
 /// <param name="wsdlCache">Type of caching to be used</param>
 /// <param name="certificate">Certificate to use.</param>
 internal DynamicWebServiceProxy(string wsdlLocation, bool enableMessageAccess = false, WsdlCache wsdlCache = WsdlCache.Both, X509Certificate2 certificate = null)
 {
     this.wsdl = wsdlLocation;
     this.enableMessageAccess = enableMessageAccess;
     this.serviceCache = new ServiceCache(wsdlLocation, wsdlCache, new ServiceCache.CacheMissEvent(BuildAssemblyFromWsdl));
     this.certificate = certificate;
     BuildProxy();
 }
コード例 #2
0
 /// <summary>
 /// Creates a new <see cref="DynamicWebServiceProxy"/> instance.
 /// </summary>
 /// <param name="wsdlLocation">Location of WSDL file</param>
 /// <param name="enableMessageAccess">Enables access to SOAP messages</param>
 /// <param name="wsdlCache">Type of caching to be used</param>
 /// <param name="certificate">Certificate to use.</param>
 internal DynamicWebServiceProxy(string wsdlLocation, bool enableMessageAccess = false, WsdlCache wsdlCache = WsdlCache.Both, X509Certificate2 certificate = null)
 {
     this.wsdl = wsdlLocation;
     this.enableMessageAccess = enableMessageAccess;
     this.serviceCache        = new ServiceCache(wsdlLocation, wsdlCache, new ServiceCache.CacheMissEvent(BuildAssemblyFromWsdl));
     this.certificate         = certificate;
     BuildProxy();
 }
コード例 #3
0
 /// <summary>
 /// Creates a new <see cref="DynamicWebServiceProxy"/> instance.
 /// </summary>
 /// <param name="wsdlLocation">Location of WSDL file</param>
 /// <param name="enableMessageAccess">Enables access to SOAP messages</param>
 /// <param name="wsdlCache">Type of caching to be used</param>
 /// <param name="certificate">Certificate to use.</param>
 /// <param name="version"></param>
 internal DynamicWebServiceProxy(string wsdlLocation, bool enableMessageAccess = false, WsdlCache wsdlCache = WsdlCache.Both, X509Certificate2 certificate = null, SoapVersion? version = null)
 {
     this.wsdl = wsdlLocation;
     this.enableMessageAccess = enableMessageAccess;
     this.serviceCache = new ServiceCache(wsdlLocation, wsdlCache, new ServiceCache.CacheMissEvent(BuildAssemblyFromWsdl));
     this.certificate = certificate;
     this.version = version;
     if (this.version == SoapVersion.SOAP_1_2)
         protocolName = "Soap12";
     else if (this.version == SoapVersion.SOAP_1_1)
         protocolName = "Soap";
     BuildProxy();
 }