Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sean 3 posts 23 karma points
    Oct 13, 2010 @ 18:23
    sean
    0

    Umbraco and WCF

    Hi Folks,

    I'm looking for a few pointers as I'm pretty new to Umbraco.

    We are using umbraco as a multisite CMS for various iPhone & Android applications. The CMS bit, i.e. umbraco, will only be used by the relevant Admins for the particular iPhone application/site.

    We have created custom controls so the admin can add/edit/delete to custom db tables.

    For each new iPhone application, we create a new site and create a new .svc file along with a new WCF assembly that returns the relevant JSON data. We ftp these 2 files into the umbraco site into a 'services' folder and the bin folder respectively and it all works really well.

    Now, as we are pumping these apps out at a rate of knots, it would be ideal if we could create the svc and the code behind using an umbraco template, for example, and simply change the target database tables depending on our needs.

    So the question is, what is required to create a non-aspx 'page' within the app space? I'm thinking probably extending the HttpHandler? Or is there an alternative path to achieving this?

    All the best & thanks for reading this far!

    Sean

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 14, 2010 @ 00:31
    Aaron Powell
    0

    You can create custom pages that umbraco will ignore, you need to specify the file(s) or the folder(s) that they are in to be ignored by Umbraco.

    This is done in the web.config, umbracoReservedUrls and umbracoReservedPaths appSettings are what you'd need to change.

    But if you're hosting a WCF service Umbraco will ignore it anyway since it's not a .ASPX.

  • sean 3 posts 23 karma points
    Oct 14, 2010 @ 18:23
    sean
    0

    Hi Slace,

     

    Thanks for the reply.  We have already successfully setup the WCF side of things.  What we were wondering was could we create the .svc file using the umbraco CMS? Currently if you create a template/document type, this will result in an aspx 'page' so is there a way of creating an svc page using the same mechanisms? We are not overly familiar with the underpinning of umbraco but think that we could create a class to extend the HttpHandler to capture svc requests.....

     

    Sorry if this makes no sense...2 days on JQuery can do that to a person.

     

    Sean

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 15, 2010 @ 00:09
    Aaron Powell
    0

    Umbraco will only publish ASPX files (or extensionless ones). I don't know why you'd want content editors to be creating data services either.

    The only way to achieve it is to write something custom into the back office.

  • sean 3 posts 23 karma points
    Oct 15, 2010 @ 10:07
    sean
    0

    What is a data service only a content delivery mechanism? The only difference is that the end consumer is machine rather than a human. The pattern we are after, for our setup, makes complete sense as we can hand the delivery of these services over to a junior admin who would have a number of templates to use rather than having to utilise a .Net developer to create the svc and the WCF assembly and having then to get the server admin to schedule in the upload of these files into the CMS.

     

    Anyway, thanks for the input. I appreciate it.

     

    Sean

Please Sign in or register to post replies

Write your reply to:

Draft