How to pass telerik object to web service?

1 posts, 0 answers
  1. Will
    Will avatar
    6 posts
    Member since:
    Aug 2013

    Posted 25 Aug 2013 Link to this post

    Hi, I'm trying to pass a radTreeView as a parameter in an asmx web service. The web service is in another project. When I try to put the parameter into the function signature it, the web service it builds correctly but is not longer able to add or update to my main web app project. I was wondering if there was a certain way I needed to pass the object (like serializing) or a reference I'm missing? Both my project have the telerik.web.UI and skins dll. A tutorial or sample project would be great also.

    Here's a simple version of a web service class I'm testing with:
    namespace MCMwebservice
    {` 
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
     
     
     [ScriptService]
    public class Service1 : System.Web.Services.WebService
    {
      [WebMethod]
        public bool getBool(RadTreeView TreeSites, string Demogs) {  //dummy method for now
            return true;
        }
       }
    }

    And this is the error I get, when trying to add or update the web service in my main project:

    Metadata contains a reference that cannot be resolved: 'http://localhost:49304/Service1.asmx'. 
    There was an error downloading 'http://localhost:49304/Service1.asmx/_vti_bin/ListData.svc/$metadata'.

    The request failed with the error message:

    Request format is unrecognized for URL unexpectedly ending in '/_vti_bin/ListData.svc/$metadata'.

Back to Top