Disco Not Compiling?

A

Arpan

A Discovery file (residing in C:\Inetpub\wwwroot\ASPX\WEBSERVICES)
named "Calculator.disco" has the following code:

<?xml version="1.0" ?>
<disco:discovery xmlns:disco="http://schemas.xmlsoap.org/disco"
xmlns:scl="http://schemas.xmlsoap.org/disco/scl">
<scl:contractRef ref="Calculator.asmx?WSDL"/>
</disco:discovery>

Note that the ASMX file "Calculator.asmx" also resides in the same
folder. Now when I type the following command in the command prompt (at
the C:\Inetpub\wwwroot\ASPX\WEBSERVICES prompt):

disco http://localhost/ASPX/WEBSERVICES/Calculator.disco

the following error gets generated:

ERROR: http://localhost/ASPX/WEBSERVICES/Calculator.disco
- The document at the url
http://localhost/ASPX/WEBSERVICES/Calculator.disco was not recognized
as a known document type.
The error message from each known type may help you fix the problem:
- Repot from 'DISCO Document' is 'Discovery document at the URL
http://localhost/ASPX/WEBSERVICES/Calculator.disco could not be
found.'.
- The document format is not recognized.
-Report from 'WSDL Document' is 'There is an error in XML document (2,
2).'.
- <discovery xmlns='http://schemas.xmlsoap.org/disco'> was not
expected.

What am I doing wrong?

Thanks,

Arpan
 
J

Juan T. Llibre

To access the discovery document of an XML Web service named
Calculator.asmx that is part of an application named WEBSERVICES
on your local machine, use the following URL:

http://localhost/WEBSERVICES/Calculator.asmx?DISCO

If your application root is in /ASPX, then use :

http://localhost/ASPX/WEBSERVICES/Calculator.asmx?DISCO

See a reference thread at :
http://www.mail-archive.com/[email protected]/msg00901.html




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
A

Arpan

Thanks, Juan, for the suggestion. It worked now.

& thanks for the suggestion to re-install .NET2.0 SDK in my other post
as well. After uninstalling & re-installing the SDK, disco.exe showed
up in C:\Program Files\Microsoft.NET\SDK\v2.0\Bin directory. But the
strange thing is before uninstalling the SDK, the Bin directory had
only 23 files & no folders but after re-installing the SDK, now the Bin
directory houses 66 objects (2 of which are hidden) - 2 directories &
64 files!

Thanks once again,

Regards,

Arpan
 
J

Juan T. Llibre

Glad to see it worked for you, Arpan!



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
Thanks, Juan, for the suggestion. It worked now.

& thanks for the suggestion to re-install .NET2.0 SDK in my other post
as well. After uninstalling & re-installing the SDK, disco.exe showed
up in C:\Program Files\Microsoft.NET\SDK\v2.0\Bin directory. But the
strange thing is before uninstalling the SDK, the Bin directory had
only 23 files & no folders but after re-installing the SDK, now the Bin
directory houses 66 objects (2 of which are hidden) - 2 directories &
64 files!

Thanks once again,

Regards,

Arpan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top