Home All Groups Group Topic Archive Search About
Author
6 Sep 2006 8:03 PM
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

Author
6 Sep 2006 8:28 PM
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/cochindot***@groups.msn.com/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/
===================================
Show quoteHide quote
"Arpan" <arpan***@hotmail.com> wrote in message
news:1157572995.770794.88450@i42g2000cwa.googlegroups.com...
>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
Are all your drivers up to date? click for free checkup

Author
6 Sep 2006 10:41 PM
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

Juan T. Llibre wrote:
Show quoteHide quote
> 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/cochindot***@groups.msn.com/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/
> ===================================
> "Arpan" <arpan***@hotmail.com> wrote in message
> news:1157572995.770794.88450@i42g2000cwa.googlegroups.com...
> >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
Author
7 Sep 2006 12:29 AM
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/
===================================
"Arpan" <arpan***@hotmail.com> wrote in message
news:1157582467.641307.75110@e3g2000cwe.googlegroups.com...
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

Juan T. Llibre wrote:
Show quoteHide quote
> 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/cochindot***@groups.msn.com/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/
> ===================================
> "Arpan" <arpan***@hotmail.com> wrote in message
> news:1157572995.770794.88450@i42g2000cwa.googlegroups.com...
> >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

Bookmark and Share