Javascript Web服务404总是由于复杂的类型

Javascript Web服务404总是由于复杂的类型,javascript,json,linq,wcf,linq-to-sharepoint,Javascript,Json,Linq,Wcf,Linq To Sharepoint,我在调用中传递一些复杂数据时遇到问题,一种是HTML,另一种是StringifyJSON REQ_Description = HTML REQ_Services = JSON.stringify(SomeData) 这是我的密码 SERVER Interface [WebGet(UriTemplate = "InsertPedidos/{requestId}/{categorie}/{projectType}/{sla}/{possibleDate}/{desir

我在调用中传递一些复杂数据时遇到问题,一种是HTML,另一种是StringifyJSON

REQ_Description = HTML
REQ_Services = JSON.stringify(SomeData) 
这是我的密码

SERVER



 Interface

         [WebGet(UriTemplate = "InsertPedidos/{requestId}/{categorie}/{projectType}/{sla}/{possibleDate}/{desireDate}/" +
                                         "{desireJustification}/{services}/{description}/{workflowState}/{tempId}", 
                                         BodyStyle = WebMessageBodyStyle.Bare,
                    ResponseFormat = WebMessageFormat.Json)]
                int InsertPedidos(string requestId,
                    string categorie, string projectType, string sla, string possibleDate, string desireDate,
                    string desireJustification, string services, string description, string workflowState,
                    string tempId);
实施

 public int InsertPedidos(string pid, string requestId,
            string categorie, string projectType, string sla, string possibleDate, string desireDate,
            string desireJustification, string services, string description, string workflowState, 
            string tempId)
        {
            var data = new LinqToRequestsContext(Elevate.RequestsUrl);
            var ped = data.GetList<FDM_MAINREQUESTSMAINREQUESTS>("FDM_MAINREQUESTS");

            ped.ScopeToFolder(_folder, false);

            var insert = new FDM_MAINREQUESTSMAINREQUESTS()
            {
                REQ_RequestID = double.Parse(requestId),
                REQ_Categorie = double.Parse(categorie),
                REQ_ProjectType = double.Parse(projectType),
                REQ_SlaOnDate = int.Parse(sla),
                REQ_RequestDate = DateTime.Now,
                REQ_PossibleDate = DateTime.Parse(possibleDate),
                REQ_DesireDate = DateTime.Parse(desireDate),
                REQ_DesireJustification = desireJustification,
                REQ_Services = services,
                REQ_Description = description,
                REQ_Worflow_State = int.Parse(workflowState),
                REQ_Origin = 0,
                Title = tempId,
                REQ_CRU_DateCreated = DateTime.Now,
                REQ_CRU_UserCreated = SPContext.Current.Web.CurrentUser.Email
            };
            ped.InsertOnSubmit(insert);
            data.SubmitChanges();
            return 1;
        }
有人能给我一个线索吗?我尝试为复杂字段解码URI(),因为正在传递“%2%2…”,还尝试将数据加密,但没有成功。还有别的办法吗?我想我写的代码是复杂的,而不是“吻”

我卡住了

多谢各位 乔

function InsertOrUpdatePedido(id, how) {
    $("#img_Progress").show();

    var $treemain = $("#tt"); // the source tree
    var data = $treemain.tree("getData", $treemain.tree("getRoot").target);
    var jdata = JSON.stringify(data);

    if (how > 0) {
        this.litem = list.getItemById(how);
    } else {
        var formData = {
            requestId: id,
            categorie: $("#sel_categories option:selected").val(),
            projectType: $("#sel_projecttype option:selected").val(),
            sla: $("#tipoSla").val(),
            possibleDate: $("#dataPrevista").val(),
            desireDate: $("#dataDesejada").val(),
            desireJustification: $("#justificacaoPedido").val(),
            services: jdata,
            description: $("#weditor").Editor("getText"),
            workflowState: "1",
            tempId: tempid
        };


        JSON.stringify(formData);

        jQuery.ajax({
            cache: false,
            type: "GET",
            url: "/_vti_bin/APP/Requests.svc/InsertPedidos",
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            data: formData,
            success: function(ret) {
                if (ret === 1) {
                    MessPopups("s", "Pedido efetuado corretamente");
                }
            }
        });
    }
}