What is WSDL and disco file ?

Answer Posted / ankur pandit

DISCO (Discovery OF File)


DISCO is the discovery file which gives path to the
Webservices
It contains WSDL(Web Service Description Language)
When one searches for the Web Services, it will go to the
DISCO whcih gives actual info. about the particular
Webservices.

Discovery with DISCO

In the past, most consumers found out about new Web
Services (and their endpoint addresses)

by browsing the Web, receiving an e-mail, or by word-of-
mouth. Now, DISCO can define a

document format along with an interrogation algorithm,
making it possible to discover the

Web Services exposed on a given server. DISCO also makes it
possible to discover the

capabilities of each Web Service (via documentation) and
how to interact with it (via WSDL).

To publish a deployed Web Service using DISCO, you simply
need to create a .disco file and

place it in the vroot along with the other service-related
configuration files, like so:


\inetpub
\wwwroot
\math (vroot)
math.asmx
web.config
math.disco
\bin
simpleMath.dll
complexMath.dll

The .disco document is an XML document that simply contains
links to other resources that

describe the Web Service, much like an HTML file that
contains human-readable documentation

or a WSDL file containing the interface contract. The
following is a DISCO document skeleton

that will serve as a starting point.

<disco:discovery
xmlns:disco="http://schemas.xmlsoap.org/disco/">
<!-- references go here -->
</disco:discovery>

Notice that the root element has the name discovery from
the

http://schemas.xmlsoap.org/disco/ namespace. The references
to other resources are placed

within the discovery element:


<disco:discovery
xmlns:disco="http://schemas.xmlsoap.org/disco/"
xmlns:scl="http://schemas.xmlsoap.org/disco/scl/">
<!-- reference to other DISCO document -->
<disco:discoveryRef
ref="related-services/default.disco"/>
<!-- reference to WSDL and documentation -->
<scl:contractRef ref="math.asmx?wsdl"
docRef="math.asmx"/>
</disco:discovery>


The main element is contractRef, which belongs to a
different namespace than the rest of the

DISCO-related elements. contractRef has two attributes, ref
and docRef, which point to the

WSDL and documentation files for a given Web Service.
The discoveryRef element lets you link the given DISCO
document to other DISCO documents.

This linking allows you to create a Web of related DISCO
documents spanning multiple

machines and even multiple organizations. This is
especially useful if the DISCO client

utility provides a mechanism to traverse the links. These
are the only elements that you

have to be concerned about in the DISCO namespace.

DISCO Client Utilities

There are currently two tools available for discovering the
DISCO document once it's in

place. One is a command-line client called disco.exe; the
other is the Add Web Reference

feature in Visual Studio® .NET.

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about managed heap?

639


Explain why do we use the “using” statement?

584


what is dotnet architecture? can anyone explain that.

3614


As you know read-only variables and constants have many similarities, but what is at least one way that they differ?

530


Is .net core the future?

577






Please explain what is the difference between constants and read-only variables?

582


Compare & contrast rich client (smart clients or windows-based) & browser-based web application

542


What is managed code in .NET?

644


How can I find out what the garbage collector is doing?

540


Explain the garbage collection process?

639


What is the concept of inheritance in .net?

605


Explain the main components in .net?

567


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

523


Explain security measures exist for .net remoting in system.runtime.remoting?

567


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

1578