This is a migrated thread and some comments may be shown as answers.

How to pass telerik object to web service?

0 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 26 Aug 2013, 12:14 AM
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'.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Will
Top achievements
Rank 1
Share this question
or