What is DISCO File?

The DISCO file typically points to a WSDL source that in turn points to the actual Web Service.When one searches for the Web Services, it will go to the DISCO which gives actual information for the particular Web services. It has .disco file extension. It is an XML document which contains link to another resources.

Format of Disco File

 <?xml version="1.0" encoding="utf-8"?> 

<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/"> 

  <contractRef ref="http://localhost:4261/WebSite1/ManagerConsole.asmx?wsdl" docRef="http://localhost:4261/WebSite1/ManagerConsole.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" /> 

  <soap address="http://localhost:4261/WebSite1/ManagerConsole.asmx" xmlns:q1="http://tempuri.org/" binding="q1:ManagerConsoleSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" /> 

</discovery>

 Tags:

1.    <discovery> : It is root tag of .disco file and we can add as many references as we would like to publicly expose.

2.     <contractRef>:It Contains two main attributes which are ref and docRef

i.     ref : It refers to WSDL file.

ii.     docRef : It refers human-readable document or actual web service where we define all methods.

 3. <soap> : It Contains an attribute called address that is the location or URI of a Web Service that has been defined in a WSDL document.