SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Not so long ago, I've tried creating a webservice for sharepoint. I followed this tutorial. In this tutorial you can see that you also need to create a wsdl and disco file. I didn't do this, and everything still worked. So my question is:

Why would you need that files? (some more infromation or links)


share|improve this question
Hm.. if this is a general question about WSDL and disco, this may be off topic for SharePoint.SE and should probably be posted on StackOverflow. – Kit Menke Jul 18 '11 at 14:58
up vote 2 down vote accepted

You don't need the .disco file from the tutorial. That is only if you want auto-discovery. You do however need the WSDL file, if you intend to be able to involve the web service reference using a dynamic url address.

Unlike most web services that are deployed from a static and well-known endpoint location, SharePoint web services can be invoked from multiple access mappings from multiple virtual paths (/marketing/_vti_bin/search.asmx, /hr/_vti_bin/search.asmx). The custom .WSDL file is meant to provide a dynamic endpoint based on the virtual path you access the web service from.

On SharePoint 2010 you can also easily create a SOAP-based WCF service without having to gernate the disco or wsdl files. Here is my blog post on the subject:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.