Hello everbody,
i am unable to configure my WCF WebService and RadTreeView Control to work together 'On Demand', and because i am absolutly new with WebServices, i have no clue what is the problem. Anybody can give me a hint? By the way, i strongly use the following Demo of Telerik: http://www.telerik.com/help/aspnet-ajax/treeview-load-on-demand-wcf.html and http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/performance/defaultcs.aspx
myTopBarNavigation.svc
myTopBarNavigation.svc.cs
Error Message @Fiddler:
P.s.: The Request looks like this:
and tries to send the following Data:
i am unable to configure my WCF WebService and RadTreeView Control to work together 'On Demand', and because i am absolutly new with WebServices, i have no clue what is the problem. Anybody can give me a hint? By the way, i strongly use the following Demo of Telerik: http://www.telerik.com/help/aspnet-ajax/treeview-load-on-demand-wcf.html and http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/performance/defaultcs.aspx
myTopBarNavigation.svc
<%@ ServiceHost Language="C#" Debug="true" Service="xxxx.xxxx.layout.ISAPI.xxxx.xxxx.xxxx.myTopBarNavigation,SharePoint.Project.AssemblyFullName$" CodeBehind="myTopBarNavigation.svc.cs" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>myTopBarNavigation.svc.cs
namespace kibp.nordlb.layout.ISAPI.kibp.nordlb.layout{ class NodeData { private string text; public string Text
{ get { return text; } set { text = value; } } } //[BasicHttpBindingServiceMetadataExchangeEndpoint] [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] class kibpTopBarNavigation { [OperationContract] public IEnumerable GetNodes(RadTreeNodeData node, IDictionary context) { int numberOfNodes = 100; List<NodeData> nodes = new List<NodeData>(); for (int i = 0; i < numberOfNodes; i++) { NodeData nodeData = new NodeData(); nodeData.Text = "Node " + i; nodes.Add(nodeData); } return nodes; } }}Error Message @Fiddler:
HTTP/1.1 500 System.ServiceModel.ServiceActivationExceptionP.s.: The Request looks like this:
and tries to send the following Data:
{"node":{"Text":"Root Node","Value":null,"Key":null,"ExpandMode":3,"NavigateUrl":null,"PostBack":true,"DisabledCssClass":null,"SelectedCssClass":null,"HoveredCssClass":null,"ImageUrl":null,"HoveredImageUrl":null,"DisabledImageUrl":null,"ExpandedImageUrl":null,"ContextMenuID":"","Checked":false},"context":[]}