C# 热启动webservice怎么写

C# 热启动webservice

  • C# 热启动webservice怎
  • 源码如下

C# 热启动webservice怎

C# 热启动webservice怎么写_第1张图片

C# 热启动webservice怎么写_第2张图片

源码如下

        /// 
        /// 获取条码信息
        /// 
        /// 条码号
        /// 数据连接
        /// 
        public static PersonalInformation1 GetTjBarcode(string barcode, RelationalDatabase database)
        {
            //java生成的公钥
            string publickey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCYOqye/4ZauO9UDYgNefSLrb9Pv7dHpYThRAeIs/kiMoBwKSubGMABLm19kmN7ZCdlMp4j1cGNE7QgtJ1MLf/hDFRnYkTjrYvBtL5GA81UKnJzRkn2b2V0V+BZ844w6pQS9hmBOMwdbWabezOPEDHZY/qErhnHV1CBkqUitmtACQIDAQAB";

            //java生成的私钥
            string privateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAIVsEXld9fixZ3yhWERShxgYmn1zmsoZ25x/x5AQps/HUAn7oz0ANDvTWSti/flvmPg9fC/oFxIMwy2rTzSWtybJlqn4HOTJBefQHwCR7tMaW9c5P5tilZZxqDaHLwupeVcscW+upcQXygkRBwD8AXa+qBYYidbSwn1E9JrwPBvJAgMBAAECgYEAgX0p1GWp1KywqFea5+xEqtEuFvU81EqWRmQJVbujeeKRvq6XdhudljZ/w0j2/sAdcUeTIJea1GzIfKlXXM2tgDBtb//vRoWoH1hJlf1CHPEmeobUXqn1AxFgdZsEKlrAcgbrcNDQhuxIwLJx8icpjIUGUc0+dzRcrjyXzYdbQ1ECQQDT3KXXiECX+kRB2sm1fO4zb3wcM9lGI358Xat6wxW+mjzO2LqYpVe0DW94N5OuQItHei7bzu0qk7JwLfbXwQiNAkEAoTfymPuOAcZvjqIMXxpXSn36387y72Wd0ZvdebBjtBDoQkctXw4e+PiYJrUcMt91IP78hLBuI6pVF2UbRkjHLQJAXm47sTy25caUA/Jb87vShDSN0hg+IOgTKaWqmBY6K/GdZujtCrqvw741UBUdiw6TxfEsz6aEyXR5lUy3eGU+xQJBAITwVnpxzCqIj8rksyDk3qANfAZ7ZvWjLF0AksNagQyleG/Ws4ITadTRYN1iMIt+md4IhP+BYIDGXv44oCH3t00CQEIK7ZPiCYYdHku9Sa4dHVPTxqmYDqUnMEa9+jCyROHTlw3uRnp60/Ls4vLaaHxcHeeR6qNmmmb+AtIcIb4Wp9g=";

            //试管号
            string batchRecordId = barcode;

            WebServiceHelper webService = new WebServiceHelper();
            object obj = webService.InvokeWebService("http://10.2.1.13:9090/LisabsryData.asmx", "GetInterfaceDate",
                new object[] { "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCYOqye/4ZauO9UDYgNefSLrb9Pv7dHpYThRAeIs/kiMoBwKSubGMABLm19kmN7ZCdlMp4j1cGNE7QgtJ1MLf/hDFRnYkTjrYvBtL5GA81UKnJzRkn2b2V0V+BZ844w6pQS9hmBOMwdbWabezOPEDHZY/qErhnHV1CBkqUitmtACQIDAQAB",
                               "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAIVsEXld9fixZ3yhWERShxgYmn1zmsoZ25x/x5AQps/HUAn7oz0ANDvTWSti/flvmPg9fC/oFxIMwy2rTzSWtybJlqn4HOTJBefQHwCR7tMaW9c5P5tilZZxqDaHLwupeVcscW+upcQXygkRBwD8AXa+qBYYidbSwn1E9JrwPBvJAgMBAAECgYEAgX0p1GWp1KywqFea5+xEqtEuFvU81EqWRmQJVbujeeKRvq6XdhudljZ/w0j2/sAdcUeTIJea1GzIfKlXXM2tgDBtb//vRoWoH1hJlf1CHPEmeobUXqn1AxFgdZsEKlrAcgbrcNDQhuxIwLJx8icpjIUGUc0+dzRcrjyXzYdbQ1ECQQDT3KXXiECX+kRB2sm1fO4zb3wcM9lGI358Xat6wxW+mjzO2LqYpVe0DW94N5OuQItHei7bzu0qk7JwLfbXwQiNAkEAoTfymPuOAcZvjqIMXxpXSn36387y72Wd0ZvdebBjtBDoQkctXw4e+PiYJrUcMt91IP78hLBuI6pVF2UbRkjHLQJAXm47sTy25caUA/Jb87vShDSN0hg+IOgTKaWqmBY6K/GdZujtCrqvw741UBUdiw6TxfEsz6aEyXR5lUy3eGU+xQJBAITwVnpxzCqIj8rksyDk3qANfAZ7ZvWjLF0AksNagQyleG/Ws4ITadTRYN1iMIt+md4IhP+BYIDGXv44oCH3t00CQEIK7ZPiCYYdHku9Sa4dHVPTxqmYDqUnMEa9+jCyROHTlw3uRnp60/Ls4vLaaHxcHeeR6qNmmmb+AtIcIb4Wp9g=",
                                batchRecordId});
            if (true)
            {

            }
            PersonalInformation1 interfaceInformation = JsonConvert.DeserializeObject<PersonalInformation1>(obj.ToString());
            return interfaceInformation;
        }

你可能感兴趣的:(笔记,c#,开发语言)