Creating Web Services in CMS5 R2

Vote:
 

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
Vote:
 

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
Vote:
 

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
Vote:
 

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
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.