No corresponding interface found for creating endpoint

4 posts, 0 answers
  1. Ramakrishna
    Ramakrishna avatar
    4 posts
    Member since:
    Sep 2012

    Posted 18 Oct 2012 Link to this post

    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
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 22 Oct 2012 Link to this post

    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.
  3. DevCraft banner
  4. Ramakrishna
    Ramakrishna avatar
    4 posts
    Member since:
    Sep 2012

    Posted 25 Oct 2012 Link to this post

    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



  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 29 Oct 2012 Link to this post

    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.
Back to Top