在asp.net中加密输出中应该没有特殊字符

时间:2013-11-24 18:56:21

标签: c# asp.net routing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace RestService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IRestServiceImpl" in both code and config file together.
    [ServiceContract]
    public interface IRestServiceImpl
    {
        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml,
            BodyStyle=WebMessageBodyStyle.Wrapped,
         UriTemplate = "xml/{id}")]
        string XMLData(string id);
        //

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped,
            UriTemplate = "json/{id},{id2}")]
        int JSonSum(string id, string id2);
     //
        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped,

            UriTemplate = "json/{userID},{firstname},{lastname},{phoneno},{email},{password}")]
        int JSonRegisterUser(string userID, string firstname,string lastname,string phoneno,string email,string password);
        //Get All Users
        //[OperationContract]
        //[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json,
        //    BodyStyle = WebMessageBodyStyle.WrappedRequest,
        //    UriTemplate = "GetAllUsers/")]
        //IEnumerable<Users> GetAllUsers();
    }
}

//我创建了Restfull webservice。当我调用该服务时,使用@符号的电子邮件地址会产生问题。然后我发送加密的电子邮件地址,但加密结果已削减,空间字符或@然后再次面临相同的错误404 我使用base64进行加密

0 个答案:

没有答案