Exemple #1
0
        public string testHelloW()
        {
            HISServiceSoapClient client = new HISServiceSoapClient();

            str = client.HelloWorld();
            return(str);
        }
Exemple #2
0
        /// <summary>
        /// 服务的配置文件App.config需要,如果别人引用此工程或Dll,需要复制App.config的内容到其配置文件中
        /// 使用别人已发布的服务,会生成两个endpoint.分别是TranslatorWebServiceSoap12和TranslatorWebServiceSoap
        /// 原因是.Net支持两种绑定(soap和soap1.2),soap较为通用,可以删除soap1.2;使用
        /// </summary>
        /// <returns></returns>
        static void testHelloW()
        {
            HISServiceSoapClient client = new HISServiceSoapClient();
            string s = client.HelloWorld();

            Console.WriteLine(s);
        }