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

No corresponding interface found for creating endpoint

3 Answers 54 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ramakrishna
Top achievements
Rank 1
Ramakrishna asked on 18 Oct 2012, 05:43 AM
I trying to get WCF oData services v2 with proper endpoint configuration

Created Domain model and Domain model service using Telerik OA on a project of template 'WCF Service library'

Now the issue come to create the endpoint for the service where I did not get any corresponding Interface to start with. where I can see only IRequestHandler.. how do I explore the CRUD methods implemented on the service ?


//Ramakrishna

3 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 22 Oct 2012, 01:41 PM
Hello Ramakrishna,

To create an endpoint in a WCF Data Service all you need is to add access rules for the corresponding entityset in the InitializeService static method, as described in this article.

You could also use the Add OpenAccess Service wizard to create the service automatically. The wizard will generate the whole code that you need in order to expose your persistent model via data service.

If this is not what you are looking for, please let us know and give some more details about the functionality that you are trying to achieve.

Greetings,
Alexander
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
0
Ramakrishna
Top achievements
Rank 1
answered on 25 Oct 2012, 07:11 AM
Successfully working when I calling the CRUD methods such as Accounts.
but I unable to call the methods which I created with the same class name (with the use of partial)
followed the below link: http://www.telerik.com/help/openaccess-orm/developer-guide-wcfservices-data-service-extend.html

working only when I refer the service in locally not remote.

when I access remotely only the existing methods/properties I can call. not the methods that I implemented in partial class.

//Ramakrishna



0
Alexander
Telerik team
answered on 29 Oct 2012, 02:09 PM
Hi Ramakrishna,

Please make sure that you have done all steps required to add a service method, as described in this article. If everything is configured and you are able to invoke the method by requesting the corresponding Uri from a web browser, you should be able to call the method from your client application as well, using code like this:
MyModel service = new MyModel(new Uri(@"http://localhost:30245/WcfDataService1.svc"));
var query = service.CreateQuery<MyClass>("MyMethod");
Hope that helps.

Greetings,
Alexander
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Tags
Web Services
Asked by
Ramakrishna
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Ramakrishna
Top achievements
Rank 1
Share this question
or