Custom Web Services and Sharepoint

I’ve faced the following problem this morning :
 
I’ve tried to create a simple web service that returned  the site collection  of a WSS virtual server;
when I tested this web service, I’ve got the following error message "No http handler was found for request type ‘GET’"….
 
The solution was to add the basic <httphandler> for *.asmx  of my web service web.config file (as defined in machine.config).
 
Something like this :
 
<httpHandlers>
    <add verb="*" path="*.asmx" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
 </httpHandlers>
 
(notice the <clear/> element in the web.config file located in the Sharepoint LAYOUT directory just above my web.config 😉
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s