I've followed the following steps to build a WebService in SharePoint:
- Created a new project using WSPBuilder.
- Added a 'WebService' (Add a new web service to the layouts folder)
- Do a WSBBuilder "Deploy"
- The WebService is accessible via http://server/_layouts/MyWebService.asmx
Is this correct ? Or should I follow the steps described at MSDN to create my own .wsdl / .disco files and deploy them to /_vti_bin to make my WebService accessible via http://server/_vti_bin/MyWebService.asmx ?
(Note : the manual steps from MSDN can be automated using SPDev.
I also found this blog : http://jamestsai.net/Blog/post/Where-do-you-deploy-custom-SharePoint-web-service-files-to-%28asmx-discoaspx-and-wsdlaspx%29.aspx which describes the difference between _layouts and _vti_bin.
What's the best way to follow ?
And how can this be automated via the build in VS2008 or during deployment from the WSP ?