Copied to clipboard

Flag this post as spam?

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


  • sukumarraju 22 posts 42 karma points
    Apr 02, 2010 @ 23:30
    sukumarraju
    0

    WCF web services support

    Environment

    • Umbraco 4.0.3
    • WCF - .NET 3.5
    • SQL Server 2008

    Requirements

    Can I use WCF services methods in Umbraco? I have few methods that retrieve data from SQL Server db, those methods are exposed through WCF(Windows Communication services).

    I think an ASP.NET user control (where WCF service methods are used) can be used in Umbraco.

    Please refer any useful resources on this. Just getting started with Umbraco, been ASP.NET developer for 6yrs.

    Your help is appreciated.

    Thanks,

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Apr 03, 2010 @ 00:35
    Aaron Powell
    0

    I don't know anyone who has successfully got WCF working in Umbraco. There's been quite a few posts on here about it but no one seems to have made it work.

  • sukumarraju 22 posts 42 karma points
    Apr 03, 2010 @ 15:17
    sukumarraju
    0

    Thanks slace.

    I think as long as user controls can be used in Umbraco, WCF services should work fine.

    To make it clear:-

    1. User controls retrieve data using the methods that are exposed through WCF services (User control developed using Visual studio)
    2. User control will be used in Umbraco

     

    Let me know

    I think .asmx (traditional web services) works fine within Umbraco?  I noticed the .asmx file in installed folders.

    Your help and insight is appreciated.

  • sukumarraju 22 posts 42 karma points
    Apr 08, 2010 @ 11:04
    sukumarraju
    0

    Hi Slace

    Good news. WCF services works with Umbraco. This is how we implemented this.

    1. Create a ASP.NET WCF Service and publish it.
    2. Take the service dll(Assembly) and copy into Umbraco bin directory.
    3. Developed a user control where the control reads the data from the above WCF Service.
    4. Migrate custom control to Umbraco custom controls folder
    5. Copy WCF service web.config settings and required client settings into Umbraco web.config.
    6. Thats it.
    7. Create a macro for the user control and use it on a page to test it. Works great.

    Here one point interesting to note is that Umbraco is acting as WCF service as well as Client i.e., self hosting service.

    Objective:-

    Object is to migrate the service as a stand alone one to a server and consume it in User control, which is used in Umbraco macro. Above works with no exception. so this must work as expected.

     

Please Sign in or register to post replies

Write your reply to:

Draft