C# 热启动webservice怎么写

Posted EP小良_007

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C# 热启动webservice怎么写相关的知识,希望对你有一定的参考价值。

C# 热启动webservice

C# 热启动webservice怎

源码如下

        /// <summary>
        /// 获取条码信息
        /// </summary>
        /// <param name="barcode">条码号</param>
        /// <param name="database">数据连接</param>
        /// <returns></returns>
        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# 热启动webservice怎么写的主要内容,如果未能解决你的问题,请参考以下文章

请问我用Delphi写的ISAPI的WEBSERVICE,调试时怎么看SOAP报文?

springboot项目调用webservice客户端 问题

C# winForm添加webservice接口

最简单的webservice如何写

C# 怎么将webservice部署到IIS上

C#调用webService报错,该怎么处理