Beispiel #1
0
        /// <summary>
        /// 解析请求参数
        /// </summary>
        /// <returns></returns>
        private string ParseRequestMessage(RequestMessage request)
        {
            string paramters = null;

            switch (DataType)
            {
            case ServiceDataType.JSON:
                break;

            default:
                XmlSerializeHelper <RequestMessage> serialize = new XmlSerializeHelper <RequestMessage>();
                paramters = serialize.ParseString(request);
                break;
            }
            //判断是否需要 加解密
            if (!string.IsNullOrWhiteSpace(paramters) && IsEncrypt)
            {
                return(WSH.Common.Helper.CryptHelper.EncryptDES(paramters, SecretKey));
            }
            return(paramters);
        }