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
    1. ref : It refers to WSDL file.
    2. 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.
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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: