XmlItemTemplate, UriTemplate, Preview 2, I'm confused

Last post 09-02-2009 1:54 PM by tvish. 1 replies.

Sort Posts:

  • XmlItemTemplate, UriTemplate, Preview 2, I'm confused

    08-28-2009, 12:22 PM
    • Member
      16 point Member
    • JammyPac
    • Member since 08-28-2009, 4:11 PM
    • Posts 4

    I'm a bit confused how we are suppose to use Preview 2 of the starter kit.  The early tutorials allow us to manipulate either the UriTemplate or XmlItemTemplate in the collection or singleton project templates.

    So now with preview 2 the base classes are part of the Microsoft.ServiceModel.Web assembly.  So if we want to manipulate the UriTemplate or XmlItemTemplate, as has been suggested on the forums, we need to copy the service base class files from the starter kit source.

    Okay.  This seems a bit hokey.  It works for tutorials, but I don't really think this is a solution for a non-tutorial project.

    What are the intentions of the Rest Starter Kit development team?  Are we to abondon the project templates and just create our own services from scratch?  Are these project templates are still useful?

    Maybe these project templates would still be useful if we could set XmlItemTemplate from the inherited class.  Why is XmlItemTemplate a const?

    Later,

    Jammy

  • Re: XmlItemTemplate, UriTemplate, Preview 2, I'm confused

    09-02-2009, 1:54 PM
    • Member
      60 point Member
    • tvish
    • Member since 11-26-2008, 4:39 PM
    • Posts 30

     Yes this is a request we'll look at fixing for the next rev of the starter kit (due out soon). We removed the base.svc.cs files from the templates since users felt it led to code bloat in the template. However that resulted in loss of customizability like uri templates. We'll be looking at enabling such customizability again in the next rev of the starter kit.

     

Page 1 of 1 (2 items)