|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Disco Not Compiling?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 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 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 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 Thanks, Juan, for the suggestion. It worked now.news:1157582467.641307.75110@e3g2000cwe.googlegroups.com... & 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
Other interesting topics
GridView - RadioButton for survey, idea needed
SQL Server does not exist... Ignore SqlBulkCopy errors VS 2003 & VS 2005 on one machine Calling aspx page from htm file OutOfMemory Exception cannot get value of dropdownlist from postback Authantication to COM Can not add SQLDataAdapter control to toolbox in Visual Web Developer Don't know how to Update .. |
|||||||||||||||||||||||