Web services


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Web services

  1. #1
    madhavi pathi Guest

    Web services


    Hi,

    I have made a web service however i am unable to use the Add Web Referance
    tab in my Client application.
    I will get the following error message

    On my left side i see the pages and functions i.e on IE
    But to my right i.e Available Web reference i get the following error message.


    Web Services

    (none)
    No Web References were found on this page.
    Click for help on finding a Web Reference.


    Errors

    The document at the url http://localhost/fresno/service1.asmx was not recognized
    as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'WSDL Document' is 'A Service Description was not found at
    the URL http://localhost/fresno/service1.asmx.'.
    - The content type 'text/html; charset=utf-8' is not valid for an XML document.
    - Report from 'DISCO Document' is 'There was an error downloading 'http://localhost/fresno/service1.asmx?disco'.'.
    - The request failed with the error message:
    --
    <html>
    <head>
    <title>Server Unavailable
    </title>
    </head>
    <body>
    <h1><font face=Verdana color=#ff3300>Server Application Unavailable
    </font></h1>
    <p>
    <font face=Verdana>
    The web application you are attempting to access on this web server
    is currently unavailable.&nbsp; Please hit the "Refresh" button in your web
    browser to retry your request.
    </p>
    <p>
    <b>Administrator Note:
    </b> An error message detailing the cause of this specific request failure
    can be found in the system event log of the web server. Please review this
    log entry to discover what caused this error to occur.
    </p>
    </body>
    </html>

    --.
    - Report from 'XML Schema' is 'A schema could not be found at the URL http://localhost/fresno/service1.asmx.'.
    - The content type 'text/html; charset=utf-8' is not valid for an XML document.




    CAN ANY ONE Please Give me the Solution to the above Error

    I did reinstall SDK and VS.net but i still get the error.


    Thank you




  2. #2
    VBDotNet Team [MS] Guest

    Re: Web services

    What files are you trying to browse to? Do you get this message when
    browsing to a valid wsdl. If you browse to a file(such as a html page or
    something) that does not have valid wsdl, it is expected that you will get
    this.

    If you are getting this when browsing to valid wsdls, try useing disco.exe
    and wsdl.exe. Do you get valid results from this. Also, maybe your proxy
    is not set up to allow this, although we generally tell you if your proxy
    does not allow this.

    Post this info and We'll try to figure out what your seeing

    -Ed Smith
    Visual Basic Test Team

    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "madhavi pathi" <madhavipathi@yahoo.com> wrote in message
    news:3d6a3c87$1@10.1.10.29...
    >
    > Hi,
    >
    > I have made a web service however i am unable to use the Add Web Referance
    > tab in my Client application.
    > I will get the following error message
    >
    > On my left side i see the pages and functions i.e on IE
    > But to my right i.e Available Web reference i get the following error

    message.
    >
    >
    > Web Services
    >
    > (none)
    > No Web References were found on this page.
    > Click for help on finding a Web Reference.
    >
    >
    > Errors
    >
    > The document at the url http://localhost/fresno/service1.asmx was not

    recognized
    > as a known document type.
    > The error message from each known type may help you fix the problem:
    > - Report from 'WSDL Document' is 'A Service Description was not found at
    > the URL http://localhost/fresno/service1.asmx.'.
    > - The content type 'text/html; charset=utf-8' is not valid for an XML

    document.
    > - Report from 'DISCO Document' is 'There was an error downloading

    'http://localhost/fresno/service1.asmx?disco'.'.
    > - The request failed with the error message:
    > --
    > <html>
    > <head>
    > <title>Server Unavailable
    > </title>
    > </head>
    > <body>
    > <h1><font face=Verdana color=#ff3300>Server Application Unavailable
    > </font></h1>
    > <p>
    > <font face=Verdana>
    > The web application you are attempting to access on this web

    server
    > is currently unavailable.&nbsp; Please hit the "Refresh" button in your

    web
    > browser to retry your request.
    > </p>
    > <p>
    > <b>Administrator Note:
    > </b> An error message detailing the cause of this specific request failure
    > can be found in the system event log of the web server. Please review

    this
    > log entry to discover what caused this error to occur.
    > </p>
    > </body>
    > </html>
    >
    > --.
    > - Report from 'XML Schema' is 'A schema could not be found at the URL

    http://localhost/fresno/service1.asmx.'.
    > - The content type 'text/html; charset=utf-8' is not valid for an XML

    document.
    >
    >
    >
    >
    > CAN ANY ONE Please Give me the Solution to the above Error
    >
    > I did reinstall SDK and VS.net but i still get the error.
    >
    >
    > Thank you
    >
    >
    >




  3. #3
    madhavipathi Guest

    Re: Web services


    Hi Ed,

    http://localhost/fresno/service1.asmx is the file that i add as web reference.
    In this case i get the following error message
    I guess I cannot read disco file in the client application.


    Web Services

    (none)
    No Web References were found on this page.
    Click for help on finding a Web Reference.


    Errors

    The document at the url http://localhost/fresno/service1.asmx was not recognized
    as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'WSDL Document' is 'A Service Description was not found at
    the URL http://localhost/fresno/service1.asmx.'.
    - The content type 'text/html; charset=utf-8' is not valid for an XML document.
    - Report from 'DISCO Document' is 'There was an error downloading 'http://localhost/fresno/service1.asmx?disco'.'.
    - The underlying connection was closed: Unable to connect to the remote
    server.
    - Report from 'XML Schema' is 'A schema could not be found at the URL http://localhost/fresno/service1.asmx.'.
    - The content type 'text/html; charset=utf-8' is not valid for an XML document.

    Second senario

    http://localhost/fresno/service1.asmx?wsdl. I can add web reference to my
    project but i can cannot see my disco file.I do have my disco file in my
    web services project.

    I guess I cannot read disco file in the client application.

    Can you be more specific when you ask me to run wsdl.exe as web reference.

    Thank you

    "VBDotNet Team [MS]" <vbdotnet@microsoft.com> wrote:
    >What files are you trying to browse to? Do you get this message when
    >browsing to a valid wsdl. If you browse to a file(such as a html page or
    >something) that does not have valid wsdl, it is expected that you will get
    >this.
    >
    >If you are getting this when browsing to valid wsdls, try useing disco.exe
    >and wsdl.exe. Do you get valid results from this. Also, maybe your proxy
    >is not set up to allow this, although we generally tell you if your proxy
    >does not allow this.
    >
    >Post this info and We'll try to figure out what your seeing
    >
    >-Ed Smith
    >Visual Basic Test Team
    >
    >--
    >This posting is provided "AS IS" with no warranties, and confers no rights.
    >
    >"madhavi pathi" <madhavipathi@yahoo.com> wrote in message
    >news:3d6a3c87$1@10.1.10.29...
    >>
    >> Hi,
    >>
    >> I have made a web service however i am unable to use the Add Web Referance
    >> tab in my Client application.
    >> I will get the following error message
    >>
    >> On my left side i see the pages and functions i.e on IE
    >> But to my right i.e Available Web reference i get the following error

    >message.
    >>
    >>
    >> Web Services
    >>
    >> (none)
    >> No Web References were found on this page.
    >> Click for help on finding a Web Reference.
    >>
    >>
    >> Errors
    >>
    >> The document at the url http://localhost/fresno/service1.asmx was not

    >recognized
    >> as a known document type.
    >> The error message from each known type may help you fix the problem:
    >> - Report from 'WSDL Document' is 'A Service Description was not found

    at
    >> the URL http://localhost/fresno/service1.asmx.'.
    >> - The content type 'text/html; charset=utf-8' is not valid for an XML

    >document.
    >> - Report from 'DISCO Document' is 'There was an error downloading

    >'http://localhost/fresno/service1.asmx?disco'.'.
    >> - The request failed with the error message:
    >> --
    >> <html>
    >> <head>
    >> <title>Server Unavailable
    >> </title>
    >> </head>
    >> <body>
    >> <h1><font face=Verdana color=#ff3300>Server Application Unavailable
    >> </font></h1>
    >> <p>
    >> <font face=Verdana>
    >> The web application you are attempting to access on this web

    >server
    >> is currently unavailable.* Please hit the "Refresh" button in your

    >web
    >> browser to retry your request.
    >> </p>
    >> <p>
    >> <b>Administrator Note:
    >> </b> An error message detailing the cause of this specific request failure
    >> can be found in the system event log of the web server. Please review

    >this
    >> log entry to discover what caused this error to occur.
    >> </p>
    >> </body>
    >> </html>
    >>
    >> --.
    >> - Report from 'XML Schema' is 'A schema could not be found at the URL

    >http://localhost/fresno/service1.asmx.'.
    >> - The content type 'text/html; charset=utf-8' is not valid for an XML

    >document.
    >>
    >>
    >>
    >>
    >> CAN ANY ONE Please Give me the Solution to the above Error
    >>
    >> I did reinstall SDK and VS.net but i still get the error.
    >>
    >>
    >> Thank you
    >>
    >>
    >>

    >
    >



  4. #4
    VBDotNet Team [MS] Guest

    Re: Web services

    Have you tried browsing the the .disco file directly? When you browse to
    the asmx file, you are bypassing the disco file. By browsing to the disco
    directly you will add the web reference to the asmx(s) it has links to.

    I do not know why browsing to the asmx?wsdl would work but the asmx would
    fail. Do you do anything special in your asmx. Do your functions pass a
    data set or a class or anything?

    Disco.exe is located in the C:\Program Files\Microsoft Visual Studio
    ..NET\FrameworkSDK\Bin by default. It is the command line way of doing what
    the web reference dialog does for you. Try to run
    disco.exe http://localhost/fresno/service1.asmx
    this will generate a wsdl file, disco, and discomap file on you disk
    now run
    wsdl.exe service1.wsdl
    This will generate the c# file(or pass the flag to generate a vb file.


    -Ed


    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "madhavipathi" <madhavipathi@yahoo.com> wrote in message
    news:3d6bb7e1$1@10.1.10.29...
    >
    > Hi Ed,
    >
    > http://localhost/fresno/service1.asmx is the file that i add as web

    reference.
    > In this case i get the following error message
    > I guess I cannot read disco file in the client application.
    >
    >
    > Web Services
    >
    > (none)
    > No Web References were found on this page.
    > Click for help on finding a Web Reference.
    >
    >
    > Errors
    >
    > The document at the url http://localhost/fresno/service1.asmx was not

    recognized
    > as a known document type.
    > The error message from each known type may help you fix the problem:
    > - Report from 'WSDL Document' is 'A Service Description was not found at
    > the URL http://localhost/fresno/service1.asmx.'.
    > - The content type 'text/html; charset=utf-8' is not valid for an XML

    document.
    > - Report from 'DISCO Document' is 'There was an error downloading

    'http://localhost/fresno/service1.asmx?disco'.'.
    > - The underlying connection was closed: Unable to connect to the remote
    > server.
    > - Report from 'XML Schema' is 'A schema could not be found at the URL

    http://localhost/fresno/service1.asmx.'.
    > - The content type 'text/html; charset=utf-8' is not valid for an XML

    document.
    >
    > Second senario
    >
    > http://localhost/fresno/service1.asmx?wsdl. I can add web reference to my
    > project but i can cannot see my disco file.I do have my disco file in my
    > web services project.
    >
    > I guess I cannot read disco file in the client application.
    >
    > Can you be more specific when you ask me to run wsdl.exe as web reference.
    >
    > Thank you
    >
    > "VBDotNet Team [MS]" <vbdotnet@microsoft.com> wrote:
    > >What files are you trying to browse to? Do you get this message when
    > >browsing to a valid wsdl. If you browse to a file(such as a html page or
    > >something) that does not have valid wsdl, it is expected that you will

    get
    > >this.
    > >
    > >If you are getting this when browsing to valid wsdls, try useing

    disco.exe
    > >and wsdl.exe. Do you get valid results from this. Also, maybe your

    proxy
    > >is not set up to allow this, although we generally tell you if your proxy
    > >does not allow this.
    > >
    > >Post this info and We'll try to figure out what your seeing
    > >
    > >-Ed Smith
    > >Visual Basic Test Team
    > >
    > >--
    > >This posting is provided "AS IS" with no warranties, and confers no

    rights.
    > >
    > >"madhavi pathi" <madhavipathi@yahoo.com> wrote in message
    > >news:3d6a3c87$1@10.1.10.29...
    > >>
    > >> Hi,
    > >>
    > >> I have made a web service however i am unable to use the Add Web

    Referance
    > >> tab in my Client application.
    > >> I will get the following error message
    > >>
    > >> On my left side i see the pages and functions i.e on IE
    > >> But to my right i.e Available Web reference i get the following error

    > >message.
    > >>
    > >>
    > >> Web Services
    > >>
    > >> (none)
    > >> No Web References were found on this page.
    > >> Click for help on finding a Web Reference.
    > >>
    > >>
    > >> Errors
    > >>
    > >> The document at the url http://localhost/fresno/service1.asmx was not

    > >recognized
    > >> as a known document type.
    > >> The error message from each known type may help you fix the problem:
    > >> - Report from 'WSDL Document' is 'A Service Description was not found

    > at
    > >> the URL http://localhost/fresno/service1.asmx.'.
    > >> - The content type 'text/html; charset=utf-8' is not valid for an XML

    > >document.
    > >> - Report from 'DISCO Document' is 'There was an error downloading

    > >'http://localhost/fresno/service1.asmx?disco'.'.
    > >> - The request failed with the error message:
    > >> --
    > >> <html>
    > >> <head>
    > >> <title>Server Unavailable
    > >> </title>
    > >> </head>
    > >> <body>
    > >> <h1><font face=Verdana color=#ff3300>Server Application

    Unavailable
    > >> </font></h1>
    > >> <p>
    > >> <font face=Verdana>
    > >> The web application you are attempting to access on this web

    > >server
    > >> is currently unavailable. Please hit the "Refresh" button in your

    > >web
    > >> browser to retry your request.
    > >> </p>
    > >> <p>
    > >> <b>Administrator Note:
    > >> </b> An error message detailing the cause of this specific request

    failure
    > >> can be found in the system event log of the web server. Please review

    > >this
    > >> log entry to discover what caused this error to occur.
    > >> </p>
    > >> </body>
    > >> </html>
    > >>
    > >> --.
    > >> - Report from 'XML Schema' is 'A schema could not be found at the URL

    > >http://localhost/fresno/service1.asmx.'.
    > >> - The content type 'text/html; charset=utf-8' is not valid for an XML

    > >document.
    > >>
    > >>
    > >>
    > >>
    > >> CAN ANY ONE Please Give me the Solution to the above Error
    > >>
    > >> I did reinstall SDK and VS.net but i still get the error.
    > >>
    > >>
    > >> Thank you
    > >>
    > >>
    > >>

    > >
    > >

    >




  5. #5
    Madhavi pathi Guest

    Re: Web services


    Hi Ed,

    Now i can see the web reference but when i click add reference i get error
    message in event viewer System log as follows.

    The IIS Admin Service service terminated unexpectedly. It has done this
    1 time(s). The following corrective action will be taken in 0 milliseconds:
    No action.

    EventID is 7031
    The FTP Publishing Service service terminated unexpectedly. It has done
    this 1 time(s). The following corrective action will be taken in 0 milliseconds:
    No action.

    The Simple Mail Transport Protocol (SMTP) service terminated unexpectedly.
    It has done this 1 time(s). The following corrective action will be taken
    in 0 milliseconds: No action.

    The World Wide Web Publishing Service service terminated unexpectedly. It
    has done this 1 time(s). The following corrective action will be taken in
    0 milliseconds: No action.


    I applied Code red 2 patch from microsoft. After that i get different error
    in application log in event viewer as

    aspnet_wp.exe (PID: 1152) stopped unexpectedly. event id as 1000

    Do you have any solution? Please help me.






    "VBDotNet Team [MS]" <vbdotnet@microsoft.com> wrote:
    >Have you tried browsing the the .disco file directly? When you browse to
    >the asmx file, you are bypassing the disco file. By browsing to the disco
    >directly you will add the web reference to the asmx(s) it has links to.
    >
    >I do not know why browsing to the asmx?wsdl would work but the asmx would
    >fail. Do you do anything special in your asmx. Do your functions pass

    a
    >data set or a class or anything?
    >
    >Disco.exe is located in the C:\Program Files\Microsoft Visual Studio
    >..NET\FrameworkSDK\Bin by default. It is the command line way of doing

    what
    >the web reference dialog does for you. Try to run
    >disco.exe http://localhost/fresno/service1.asmx
    >this will generate a wsdl file, disco, and discomap file on you disk
    >now run
    >wsdl.exe service1.wsdl
    >This will generate the c# file(or pass the flag to generate a vb file.
    >
    >
    >-Ed
    >
    >
    >--
    >This posting is provided "AS IS" with no warranties, and confers no rights.
    >
    >"madhavipathi" <madhavipathi@yahoo.com> wrote in message
    >news:3d6bb7e1$1@10.1.10.29...
    >>
    >> Hi Ed,
    >>
    >> http://localhost/fresno/service1.asmx is the file that i add as web

    >reference.
    >> In this case i get the following error message
    >> I guess I cannot read disco file in the client application.
    >>
    >>
    >> Web Services
    >>
    >> (none)
    >> No Web References were found on this page.
    >> Click for help on finding a Web Reference.
    >>
    >>
    >> Errors
    >>
    >> The document at the url http://localhost/fresno/service1.asmx was not

    >recognized
    >> as a known document type.
    >> The error message from each known type may help you fix the problem:
    >> - Report from 'WSDL Document' is 'A Service Description was not found

    at
    >> the URL http://localhost/fresno/service1.asmx.'.
    >> - The content type 'text/html; charset=utf-8' is not valid for an XML

    >document.
    >> - Report from 'DISCO Document' is 'There was an error downloading

    >'http://localhost/fresno/service1.asmx?disco'.'.
    >> - The underlying connection was closed: Unable to connect to the remote
    >> server.
    >> - Report from 'XML Schema' is 'A schema could not be found at the URL

    >http://localhost/fresno/service1.asmx.'.
    >> - The content type 'text/html; charset=utf-8' is not valid for an XML

    >document.
    >>
    >> Second senario
    >>
    >> http://localhost/fresno/service1.asmx?wsdl. I can add web reference to

    my
    >> project but i can cannot see my disco file.I do have my disco file in

    my
    >> web services project.
    >>
    >> I guess I cannot read disco file in the client application.
    >>
    >> Can you be more specific when you ask me to run wsdl.exe as web reference.
    >>
    >> Thank you
    >>
    >> "VBDotNet Team [MS]" <vbdotnet@microsoft.com> wrote:
    >> >What files are you trying to browse to? Do you get this message when
    >> >browsing to a valid wsdl. If you browse to a file(such as a html page

    or
    >> >something) that does not have valid wsdl, it is expected that you will

    >get
    >> >this.
    >> >
    >> >If you are getting this when browsing to valid wsdls, try useing

    >disco.exe
    >> >and wsdl.exe. Do you get valid results from this. Also, maybe your

    >proxy
    >> >is not set up to allow this, although we generally tell you if your proxy
    >> >does not allow this.
    >> >
    >> >Post this info and We'll try to figure out what your seeing
    >> >
    >> >-Ed Smith
    >> >Visual Basic Test Team
    >> >
    >> >--
    >> >This posting is provided "AS IS" with no warranties, and confers no

    >rights.
    >> >
    >> >"madhavi pathi" <madhavipathi@yahoo.com> wrote in message
    >> >news:3d6a3c87$1@10.1.10.29...
    >> >>
    >> >> Hi,
    >> >>
    >> >> I have made a web service however i am unable to use the Add Web

    >Referance
    >> >> tab in my Client application.
    >> >> I will get the following error message
    >> >>
    >> >> On my left side i see the pages and functions i.e on IE
    >> >> But to my right i.e Available Web reference i get the following error
    >> >message.
    >> >>
    >> >>
    >> >> Web Services
    >> >>
    >> >> (none)
    >> >> No Web References were found on this page.
    >> >> Click for help on finding a Web Reference.
    >> >>
    >> >>
    >> >> Errors
    >> >>
    >> >> The document at the url http://localhost/fresno/service1.asmx was not
    >> >recognized
    >> >> as a known document type.
    >> >> The error message from each known type may help you fix the problem:
    >> >> - Report from 'WSDL Document' is 'A Service Description was not found

    >> at
    >> >> the URL http://localhost/fresno/service1.asmx.'.
    >> >> - The content type 'text/html; charset=utf-8' is not valid for an

    XML
    >> >document.
    >> >> - Report from 'DISCO Document' is 'There was an error downloading
    >> >'http://localhost/fresno/service1.asmx?disco'.'.
    >> >> - The request failed with the error message:
    >> >> --
    >> >> <html>
    >> >> <head>
    >> >> <title>Server Unavailable
    >> >> </title>
    >> >> </head>
    >> >> <body>
    >> >> <h1><font face=Verdana color=#ff3300>Server Application

    >Unavailable
    >> >> </font></h1>
    >> >> <p>
    >> >> <font face=Verdana>
    >> >> The web application you are attempting to access on this web
    >> >server
    >> >> is currently unavailable. Please hit the "Refresh" button in your
    >> >web
    >> >> browser to retry your request.
    >> >> </p>
    >> >> <p>
    >> >> <b>Administrator Note:
    >> >> </b> An error message detailing the cause of this specific request

    >failure
    >> >> can be found in the system event log of the web server. Please review
    >> >this
    >> >> log entry to discover what caused this error to occur.
    >> >> </p>
    >> >> </body>
    >> >> </html>
    >> >>
    >> >> --.
    >> >> - Report from 'XML Schema' is 'A schema could not be found at the URL
    >> >http://localhost/fresno/service1.asmx.'.
    >> >> - The content type 'text/html; charset=utf-8' is not valid for an

    XML
    >> >document.
    >> >>
    >> >>
    >> >>
    >> >>
    >> >> CAN ANY ONE Please Give me the Solution to the above Error
    >> >>
    >> >> I did reinstall SDK and VS.net but i still get the error.
    >> >>
    >> >>
    >> >> Thank you
    >> >>
    >> >>
    >> >>
    >> >
    >> >

    >>

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center