//请求的地址
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.cnblogs.com/sufei");
//创建证书文件
X509Certificate objx509 = new X509Certificate(Application.StartupPath + "\\tingting.cer");
//添加到请求里
request.ClientCertificates.Add(objx509);
//User-AgentHTTP标头的值
request.UserAgent = "Client Cert Sample";
request.Method = "POST";
//读返回的流
StreamReader reader = new StreamReader(request.GetResponse().GetResponseStream());
//把得到的WSDL文件放到一个richTextBox1
this.richTextBox1.Text = reader.ReadToEnd();
//Uncomment the following code if you need a proxy. The boolean true is used to bypass the local address.
//WebProxy proxyObject = new WebProxy("Your Proxy value",true);
//GlobalProxySelection.Select = proxyObject;
// Obtain the certificate.
try
{
//You must change the path to point to your .cer file location.
X509Certificate Cert = X509Certificate.CreateFromCertFile("C:\\mycert.cer");
// Handle any certificate errors on the certificate from the server.
ServicePointManager.CertificatePolicy = new CertPolicy();
// You must change the URL to point to your Web server.
HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("https://YourServer/sample.asp");
Request.ClientCertificates.Add(Cert);
Request.UserAgent = "Client Cert Sample";
Request.Method = "GET";
HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();
// Print the repsonse headers.
Console.WriteLine("{0}",Response.Headers);
Console.WriteLine();
// Get the certificate data.
StreamReader sr = new StreamReader(Response.GetResponseStream(), Encoding.Default);
int count;
char [] ReadBuf = new char[1024];
do
{
count = sr.Read(ReadBuf, 0, 1024);
if (0 != count)
{
Console.WriteLine(new string(ReadBuf));
}
}while(count > 0);
}
catch(Exception e)
{
Console.WriteLine(e.Message);
}
//Implement the ICertificatePolicy interface.
class CertPolicy: ICertificatePolicy
{
public bool CheckValidationResult(ServicePoint srvPoint,
X509Certificate certificate, WebRequest request, int certificateProblem)
{
// You can do your own certificate checking.
// You can obtain the error values from WinError.h.
// Return true so that any certificate will work with this sample.
return true;
}
}
[/code][code=csharp]using System;
using System.Net;
using System.IO;
using System.Text;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Runtime.InteropServices;
namespace SelectClientCert
{
/// Sample that describes how how to select client cetificate and send it to the server.
class MyCerts{
private static int CERT_STORE_PROV_SYSTEM = 10;
private static int CERT_SYSTEM_STORE_CURRENT_USER = (1 << 16);
///private static int CERT_SYSTEM_STORE_LOCAL_MACHINE = (2 << 16);
[DllImport("CRYPT32", EntryPoint="CertOpenStore", CharSet=CharSet.Unicode, SetLastError=true)]
public static extern IntPtr CertOpenStore(
int storeProvider, int encodingType,
int hcryptProv, int flags, string pvPara);
[DllImport("CRYPT32", EntryPoint="CertEnumCertificatesInStore", CharSet=CharSet.Unicode, SetLastError=true)]
public static extern IntPtr CertEnumCertificatesInStore(
IntPtr storeProvider,
IntPtr prevCertContext);
[DllImport("CRYPT32", EntryPoint="CertCloseStore", CharSet=CharSet.Unicode, SetLastError=true)]
public static extern bool CertCloseStore(
IntPtr storeProvider,
int flags);
X509CertificateCollection m_certs;
public MyCerts(){
m_certs = new X509CertificateCollection();
}
public int Init()
{
IntPtr storeHandle;
storeHandle = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, 0, CERT_SYSTEM_STORE_CURRENT_USER, "MY");
IntPtr currentCertContext;
currentCertContext = CertEnumCertificatesInStore(storeHandle, (IntPtr)0);
int i = 0;
while (currentCertContext != (IntPtr)0)
{
m_certs.Insert(i++, new X509Certificate(currentCertContext));
currentCertContext = CertEnumCertificatesInStore(storeHandle, currentCertContext);
}
CertCloseStore(storeHandle, 0);
return m_certs.Count;
}
public X509Certificate this [int index]
{
get
{
// Check the index limits.
if (index < 0 || index > m_certs.Count)
return null;
else
return m_certs[index];
}
}
};
class MyHttpResource
{
String m_url;
public MyHttpResource(string url){
m_url = url;
}
public void GetFile(){
HttpWebResponse result = null;
try{
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(m_url);
req.Credentials = CredentialCache.DefaultCredentials;
///Method1
//req.ClientCertificates.Add(X509Certificate.CreateFromCertFile("D:\\Temp\\cert\\c1.cer"));
///Method2
///Uses interop services
MyCerts mycert = new MyCerts();
if(mycert.Init() > 0)
req.ClientCertificates.Add(mycert[0]);
result = (HttpWebResponse)req.GetResponse();
Stream ReceiveStream = result.GetResponseStream();
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
StreamReader sr = new StreamReader( ReceiveStream, encode );
Console.WriteLine("\r\nResponse stream received");
Char[] read = new Char[256];
int count = sr.Read( read, 0, 256 );
Console.WriteLine("HTTP Response...\r\n");
while (count > 0)
{
String str = new String(read, 0, count);
Console.Write(str);
count = sr.Read(read, 0, 256);
}
}
catch(WebException e)
{
Console.WriteLine("\r\nError:");
#if (DEBUG)
Console.WriteLine(e.ToString());
#else
Console.WriteLine(e.Message);
#endif
}
finally
{
if ( result != null ) {
result.Close();
}
}
}
}
class CertSample
{
static void Main(string[] args)
{
try
{
if (args.Length < 1)
{
Console.WriteLine("No url is entered to download, returning.\n");
Console.WriteLine("Usage: CertSample <urltoget>\n");
Console.WriteLine(" e.g: CertSample https://servername \n");
return;
}
MyHttpResource hr = new MyHttpResource(args[0]);
hr.GetFile();
}
catch(Exception e)
{
Console.WriteLine(e.ToString());
}
return;
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="https://www.cnblogs.com/sufei" xmlns:tns="https://api.nciic.org.cn/nciicGetCondition" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://https://www.cnblogs.com/sufei2003/05/soap-envelope" xmlns:xsd="http://https://www.cnblogs.com/sufei2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://https://www.cnblogs.com/sufei2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://https://www.cnblogs.com/sufei2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="https://api.nciic.org.cn/nciicGetCondition">
<xsd:element name="nciicDiscern">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicDiscernResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCheckChina">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCheckChinaResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicGetCondition">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicGetConditionResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicExactSearch">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicExactSearchResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCourt">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCourtResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicBirthplaceCompare">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicBirthplaceCompareResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicAddrExactSearch">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicAddrExactSearchResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCheck">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCheckResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCompare">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCompareResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCombineSearch">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="inLicense" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="inConditions" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nciicCombineSearchResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="nciicCombineSearchResponse">
<wsdl:part name="parameters" element="tns:nciicCombineSearchResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCheckChinaRequest">
<wsdl:part name="parameters" element="tns:nciicCheckChina">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicBirthplaceCompareResponse">
<wsdl:part name="parameters" element="tns:nciicBirthplaceCompareResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicAddrExactSearchRequest">
<wsdl:part name="parameters" element="tns:nciicAddrExactSearch">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCheckRequest">
<wsdl:part name="parameters" element="tns:nciicCheck">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicExactSearchResponse">
<wsdl:part name="parameters" element="tns:nciicExactSearchResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCompareResponse">
<wsdl:part name="parameters" element="tns:nciicCompareResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCheckResponse">
<wsdl:part name="parameters" element="tns:nciicCheckResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCourtRequest">
<wsdl:part name="parameters" element="tns:nciicCourt">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicExactSearchRequest">
<wsdl:part name="parameters" element="tns:nciicExactSearch">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicBirthplaceCompareRequest">
<wsdl:part name="parameters" element="tns:nciicBirthplaceCompare">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicAddrExactSearchResponse">
<wsdl:part name="parameters" element="tns:nciicAddrExactSearchResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCombineSearchRequest">
<wsdl:part name="parameters" element="tns:nciicCombineSearch">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicDiscernRequest">
<wsdl:part name="parameters" element="tns:nciicDiscern">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCourtResponse">
<wsdl:part name="parameters" element="tns:nciicCourtResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCompareRequest">
<wsdl:part name="parameters" element="tns:nciicCompare">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicDiscernResponse">
<wsdl:part name="parameters" element="tns:nciicDiscernResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicGetConditionRequest">
<wsdl:part name="parameters" element="tns:nciicGetCondition">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicGetConditionResponse">
<wsdl:part name="parameters" element="tns:nciicGetConditionResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="nciicCheckChinaResponse">
<wsdl:part name="parameters" element="tns:nciicCheckChinaResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="nciicGetConditionPortType">
<wsdl:operation name="nciicDiscern">
<wsdl:input name="nciicDiscernRequest" message="tns:nciicDiscernRequest">
</wsdl:input>
<wsdl:output name="nciicDiscernResponse" message="tns:nciicDiscernResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCheckChina">
<wsdl:input name="nciicCheckChinaRequest" message="tns:nciicCheckChinaRequest">
</wsdl:input>
<wsdl:output name="nciicCheckChinaResponse" message="tns:nciicCheckChinaResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicGetCondition">
<wsdl:input name="nciicGetConditionRequest" message="tns:nciicGetConditionRequest">
</wsdl:input>
<wsdl:output name="nciicGetConditionResponse" message="tns:nciicGetConditionResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicExactSearch">
<wsdl:input name="nciicExactSearchRequest" message="tns:nciicExactSearchRequest">
</wsdl:input>
<wsdl:output name="nciicExactSearchResponse" message="tns:nciicExactSearchResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCourt">
<wsdl:input name="nciicCourtRequest" message="tns:nciicCourtRequest">
</wsdl:input>
<wsdl:output name="nciicCourtResponse" message="tns:nciicCourtResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicBirthplaceCompare">
<wsdl:input name="nciicBirthplaceCompareRequest" message="tns:nciicBirthplaceCompareRequest">
</wsdl:input>
<wsdl:output name="nciicBirthplaceCompareResponse" message="tns:nciicBirthplaceCompareResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicAddrExactSearch">
<wsdl:input name="nciicAddrExactSearchRequest" message="tns:nciicAddrExactSearchRequest">
</wsdl:input>
<wsdl:output name="nciicAddrExactSearchResponse" message="tns:nciicAddrExactSearchResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCheck">
<wsdl:input name="nciicCheckRequest" message="tns:nciicCheckRequest">
</wsdl:input>
<wsdl:output name="nciicCheckResponse" message="tns:nciicCheckResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCompare">
<wsdl:input name="nciicCompareRequest" message="tns:nciicCompareRequest">
</wsdl:input>
<wsdl:output name="nciicCompareResponse" message="tns:nciicCompareResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCombineSearch">
<wsdl:input name="nciicCombineSearchRequest" message="tns:nciicCombineSearchRequest">
</wsdl:input>
<wsdl:output name="nciicCombineSearchResponse" message="tns:nciicCombineSearchResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="nciicGetConditionHttpBinding" type="tns:nciicGetConditionPortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="nciicDiscern">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicDiscernRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicDiscernResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCheckChina">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicCheckChinaRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicCheckChinaResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicGetCondition">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicGetConditionRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicGetConditionResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicExactSearch">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicExactSearchRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicExactSearchResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCourt">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicCourtRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicCourtResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicBirthplaceCompare">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicBirthplaceCompareRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicBirthplaceCompareResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicAddrExactSearch">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicAddrExactSearchRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicAddrExactSearchResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCheck">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicCheckRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicCheckResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCompare">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicCompareRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicCompareResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="nciicCombineSearch">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="nciicCombineSearchRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="nciicCombineSearchResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="nciicGetCondition">
<wsdl:port name="nciicGetConditionHttpPort" binding="tns:nciicGetConditionHttpBinding">
<wsdlsoap:address location="http://api.nciic.org.cn/nciic_ws/services/nciicGetCondition"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
namespace WSDLServices
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="nciicGetConditionHttpBinding", Namespace="https://http://www.cnblogs.com/sufei/nciicGetCondition")]
public partial class nciicGetCondition : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback nciicDiscernOperationCompleted;
private System.Threading.SendOrPostCallback nciicCheckChinaOperationCompleted;
private System.Threading.SendOrPostCallback CallnciicGetConditionOperationCompleted;
private System.Threading.SendOrPostCallback nciicExactSearchOperationCompleted;
private System.Threading.SendOrPostCallback nciicCourtOperationCompleted;
private System.Threading.SendOrPostCallback nciicBirthplaceCompareOperationCompleted;
private System.Threading.SendOrPostCallback nciicAddrExactSearchOperationCompleted;
private System.Threading.SendOrPostCallback nciicCheckOperationCompleted;
private System.Threading.SendOrPostCallback nciicCompareOperationCompleted;
private System.Threading.SendOrPostCallback nciicCombineSearchOperationCompleted;
/// <remarks/>
public nciicGetCondition() {
this.Url = "http://http://www.cnblogs.com/sufei/nciic_ws/services/nciicGetCondition";
}
/// <remarks/>
public event nciicDiscernCompletedEventHandler nciicDiscernCompleted;
/// <remarks/>
public event nciicCheckChinaCompletedEventHandler nciicCheckChinaCompleted;
/// <remarks/>
public event CallnciicGetConditionCompletedEventHandler CallnciicGetConditionCompleted;
/// <remarks/>
public event nciicExactSearchCompletedEventHandler nciicExactSearchCompleted;
/// <remarks/>
public event nciicCourtCompletedEventHandler nciicCourtCompleted;
/// <remarks/>
public event nciicBirthplaceCompareCompletedEventHandler nciicBirthplaceCompareCompleted;
/// <remarks/>
public event nciicAddrExactSearchCompletedEventHandler nciicAddrExactSearchCompleted;
/// <remarks/>
public event nciicCheckCompletedEventHandler nciicCheckCompleted;
/// <remarks/>
public event nciicCompareCompletedEventHandler nciicCompareCompleted;
/// <remarks/>
public event nciicCombineSearchCompletedEventHandler nciicCombineSearchCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicDiscern([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicDiscern", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicDiscern(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicDiscern", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicDiscern(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicDiscernAsync(string inLicense, string inConditions) {
this.nciicDiscernAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicDiscernAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicDiscernOperationCompleted == null)) {
this.nciicDiscernOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicDiscernOperationCompleted);
}
this.InvokeAsync("nciicDiscern", new object[] {
inLicense,
inConditions}, this.nciicDiscernOperationCompleted, userState);
}
private void OnnciicDiscernOperationCompleted(object arg) {
if ((this.nciicDiscernCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicDiscernCompleted(this, new nciicDiscernCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicCheckChina([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicCheckChina", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicCheckChina(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicCheckChina", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicCheckChina(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicCheckChinaAsync(string inLicense, string inConditions) {
this.nciicCheckChinaAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicCheckChinaAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicCheckChinaOperationCompleted == null)) {
this.nciicCheckChinaOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicCheckChinaOperationCompleted);
}
this.InvokeAsync("nciicCheckChina", new object[] {
inLicense,
inConditions}, this.nciicCheckChinaOperationCompleted, userState);
}
private void OnnciicCheckChinaOperationCompleted(object arg) {
if ((this.nciicCheckChinaCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicCheckChinaCompleted(this, new nciicCheckChinaCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestElementName="nciicGetCondition", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseElementName="nciicGetConditionResponse", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string CallnciicGetCondition([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense) {
object[] results = this.Invoke("CallnciicGetCondition", new object[] {
inLicense});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginCallnciicGetCondition(string inLicense, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("CallnciicGetCondition", new object[] {
inLicense}, callback, asyncState);
}
/// <remarks/>
public string EndCallnciicGetCondition(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void CallnciicGetConditionAsync(string inLicense) {
this.CallnciicGetConditionAsync(inLicense, null);
}
/// <remarks/>
public void CallnciicGetConditionAsync(string inLicense, object userState) {
if ((this.CallnciicGetConditionOperationCompleted == null)) {
this.CallnciicGetConditionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCallnciicGetConditionOperationCompleted);
}
this.InvokeAsync("CallnciicGetCondition", new object[] {
inLicense}, this.CallnciicGetConditionOperationCompleted, userState);
}
private void OnCallnciicGetConditionOperationCompleted(object arg) {
if ((this.CallnciicGetConditionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CallnciicGetConditionCompleted(this, new CallnciicGetConditionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicExactSearch([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicExactSearch", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicExactSearch(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicExactSearch", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicExactSearch(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicExactSearchAsync(string inLicense, string inConditions) {
this.nciicExactSearchAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicExactSearchAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicExactSearchOperationCompleted == null)) {
this.nciicExactSearchOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicExactSearchOperationCompleted);
}
this.InvokeAsync("nciicExactSearch", new object[] {
inLicense,
inConditions}, this.nciicExactSearchOperationCompleted, userState);
}
private void OnnciicExactSearchOperationCompleted(object arg) {
if ((this.nciicExactSearchCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicExactSearchCompleted(this, new nciicExactSearchCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicCourt([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicCourt", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicCourt(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicCourt", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicCourt(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicCourtAsync(string inLicense, string inConditions) {
this.nciicCourtAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicCourtAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicCourtOperationCompleted == null)) {
this.nciicCourtOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicCourtOperationCompleted);
}
this.InvokeAsync("nciicCourt", new object[] {
inLicense,
inConditions}, this.nciicCourtOperationCompleted, userState);
}
private void OnnciicCourtOperationCompleted(object arg) {
if ((this.nciicCourtCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicCourtCompleted(this, new nciicCourtCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicBirthplaceCompare([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicBirthplaceCompare", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicBirthplaceCompare(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicBirthplaceCompare", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicBirthplaceCompare(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicBirthplaceCompareAsync(string inLicense, string inConditions) {
this.nciicBirthplaceCompareAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicBirthplaceCompareAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicBirthplaceCompareOperationCompleted == null)) {
this.nciicBirthplaceCompareOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicBirthplaceCompareOperationCompleted);
}
this.InvokeAsync("nciicBirthplaceCompare", new object[] {
inLicense,
inConditions}, this.nciicBirthplaceCompareOperationCompleted, userState);
}
private void OnnciicBirthplaceCompareOperationCompleted(object arg) {
if ((this.nciicBirthplaceCompareCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicBirthplaceCompareCompleted(this, new nciicBirthplaceCompareCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicAddrExactSearch([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicAddrExactSearch", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicAddrExactSearch(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicAddrExactSearch", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicAddrExactSearch(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicAddrExactSearchAsync(string inLicense, string inConditions) {
this.nciicAddrExactSearchAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicAddrExactSearchAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicAddrExactSearchOperationCompleted == null)) {
this.nciicAddrExactSearchOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicAddrExactSearchOperationCompleted);
}
this.InvokeAsync("nciicAddrExactSearch", new object[] {
inLicense,
inConditions}, this.nciicAddrExactSearchOperationCompleted, userState);
}
private void OnnciicAddrExactSearchOperationCompleted(object arg) {
if ((this.nciicAddrExactSearchCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicAddrExactSearchCompleted(this, new nciicAddrExactSearchCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped
)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicCheck([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicCheck", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicCheck(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicCheck", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicCheck(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicCheckAsync(string inLicense, string inConditions) {
this.nciicCheckAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicCheckAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicCheckOperationCompleted == null)) {
this.nciicCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicCheckOperationCompleted);
}
this.InvokeAsync("nciicCheck", new object[] {
inLicense,
inConditions}, this.nciicCheckOperationCompleted, userState);
}
private void OnnciicCheckOperationCompleted(object arg) {
if ((this.nciicCheckCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicCheckCompleted(this, new nciicCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicCompare([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicCompare", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicCompare(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicCompare", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicCompare(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicCompareAsync(string inLicense, string inConditions) {
this.nciicCompareAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicCompareAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicCompareOperationCompleted == null)) {
this.nciicCompareOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicCompareOperationCompleted);
}
this.InvokeAsync("nciicCompare", new object[] {
inLicense,
inConditions}, this.nciicCompareOperationCompleted, userState);
}
private void OnnciicCompareOperationCompleted(object arg) {
if ((this.nciicCompareCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicCompareCompleted(this, new nciicCompareCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", ResponseNamespace="https://http://www.cnblogs.com/sufei/nciicGetCondition", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable=true)]
public string nciicCombineSearch([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inLicense, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string inConditions) {
object[] results = this.Invoke("nciicCombineSearch", new object[] {
inLicense,
inConditions});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginnciicCombineSearch(string inLicense, string inConditions, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("nciicCombineSearch", new object[] {
inLicense,
inConditions}, callback, asyncState);
}
/// <remarks/>
public string EndnciicCombineSearch(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void nciicCombineSearchAsync(string inLicense, string inConditions) {
this.nciicCombineSearchAsync(inLicense, inConditions, null);
}
/// <remarks/>
public void nciicCombineSearchAsync(string inLicense, string inConditions, object userState) {
if ((this.nciicCombineSearchOperationCompleted == null)) {
this.nciicCombineSearchOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnciicCombineSearchOperationCompleted);
}
this.InvokeAsync("nciicCombineSearch", new object[] {
inLicense,
inConditions}, this.nciicCombineSearchOperationCompleted, userState);
}
private void OnnciicCombineSearchOperationCompleted(object arg) {
if ((this.nciicCombineSearchCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.nciicCombineSearchCompleted(this, new nciicCombineSearchCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicDiscernCompletedEventHandler(object sender, nciicDiscernCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicDiscernCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicDiscernCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicCheckChinaCompletedEventHandler(object sender, nciicCheckChinaCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicCheckChinaCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicCheckChinaCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void CallnciicGetConditionCompletedEventHandler(object sender, CallnciicGetConditionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CallnciicGetConditionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CallnciicGetConditionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicExactSearchCompletedEventHandler(object sender, nciicExactSearchCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicExactSearchCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicExactSearchCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicCourtCompletedEventHandler(object sender, nciicCourtCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicCourtCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicCourtCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicBirthplaceCompareCompletedEventHandler(object sender, nciicBirthplaceCompareCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicBirthplaceCompareCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicBirthplaceCompareCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicAddrExactSearchCompletedEventHandler(object sender, nciicAddrExactSearchCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicAddrExactSearchCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicAddrExactSearchCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicCheckCompletedEventHandler(object sender, nciicCheckCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicCheckCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicCheckCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicCompareCompletedEventHandler(object sender, nciicCompareCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicCompareCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicCompareCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
public delegate void nciicCombineSearchCompletedEventHandler(object sender, nciicCombineSearchCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class nciicCombineSearchCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal nciicCombineSearchCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
}
coody 发表于 2013-5-31 09:04
受教了,学习中……
可以让证书作为资源保存吗?
changlei 发表于 2013-5-31 12:59
那有多个证书的证书链该怎么添加呢?
太阳雨 发表于 2013-8-31 11:41
都已经无视证书了,还弄个cer文件的作用是什么?
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |