Creating Web Services in CMS5 R2

 

I'm having a littel trouble trying to create a web service in EPiServer.  My end goal is to be able t expose bits of functionlaity to a Silverlight Application from within the CMS so that my HTML site and my Silverlight app use the same logic.  I found an article about creating a web service here, but I can't seem to get the thing working.

When I try to invoke the web service (http://localhost:17001/SilverlightServices/EPiServerHierarchy.asmx/GetMainNavigation) I get a 404 error.  I'm guessing that teh VPP is taking over end getting flustered, but I can't for the life of me figure out how to make this work.  Anyone know of a good areticle about having a web serivce in an EPiServer application?

Thanks

#25850 Nov 07, 2008 16:11
  • Per Bjurström
    Member since: 1999
     

    It worked out-of-the box for me when I created a silverlight service on IIS 7 / Vista. What are you running on ?

     

     

    #25861 Nov 10, 2008 10:21
  • Alexander Haneng
    Member since: 2008
     

    I had this problem too on IIS6 running on Windows Server 2003. Turns out you need to remove the comment around this line in your web.config to make web service posts work (even on IIS6):


    <!--<add name="IIS5WebServicePostModule" type="EPiServer.Web.IIS5WebServicePostModule, EPiServer" />-->

    Hope this helps!

     

     

    #28291 Edited, Mar 02, 2009 11:14
  • joel williams
    Member since: 2009
     

    I found this solution very useful also Alexander. Thanks.

    The problem I was experiencing was that running a debug build in Cassini (http://localhost:17001/webservice.asmx) would work fine, but as soon as the site was installed in IIS (5.1) (http://localhost/webservice.asmx) it would error.

    #36922 Feb 14, 2010 18:44