摘要: WCF(Windows Communication Foundation) - 绑定Binding:Http以basicHttpBinding为例,Tcp以netTcpBinding为例。2、宿主Hello.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace WCF.ServiceHost2.Binding{ class Hello { static void Main(string... 阅读全文
posted @ 2012-08-05 21:47 小薇林 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 常见充值方式介绍及对比1:银联充值1:环境部署安装NetPay4NTSetup.exe,将MerPrk.key和PgPubk.key两个文件放到C:\WINDOWS目录下,环境部署完成了。2:程序中要注意的问题最容易导致问题的就是生成加密串,这个加密功能是由银联提共的,调用Interop.CHINAPAYLib.dll中类CHINAPAYLib.NetPayClientClass的sign方法,由于这是对字符串进行加密,不同的字符串加密后的串是不一样的,所以要注意被加密字符前后是否有多余的空格,支付金额的位数,如果加密串生成有误,到银联那边肯定报参数有误的。充值成功后就是回调解密,解密调用的是 阅读全文
posted @ 2012-08-05 03:36 小薇林 阅读(405) 评论(0) 推荐(0) 编辑