Debugging a web service

Discussion in 'ASP .Net' started by Nick, Sep 14, 2005.

  1. Nick

    Nick Guest

    Hi there,

    When accessing a web service via a web browser and invoking it via HTTP
    is there any way to display debug messages on screen? I've tried throwing
    an exception but that merely results in a HTTP 500 error. I've tried
    logging to file but I don't seem to be allowed to and without being able to
    debug I cant debug my debug code, thus im stuck in a bit of a messy loop.
    Thanks in advance!

    --
    Nick Pateman

    ---------------------------------------------------------------
    Please do not reply directly to me, but the entire newsgroup.
    Any views expressed above are my own
    Without predjudice
    Nick, Sep 14, 2005
    #1
    1. Advertising

  2. Nick

    Nick Guest

    i.e. I'm just opening the Web Services web page directly in accessing the
    method via the automatically generated pages.


    "Nick" <> wrote in message
    news:...
    > Hi there,
    >
    > When accessing a web service via a web browser and invoking it via HTTP
    > is there any way to display debug messages on screen? I've tried throwing
    > an exception but that merely results in a HTTP 500 error. I've tried
    > logging to file but I don't seem to be allowed to and without being able
    > to debug I cant debug my debug code, thus im stuck in a bit of a messy
    > loop. Thanks in advance!
    >
    > --
    > Nick Pateman
    >
    > ---------------------------------------------------------------
    > Please do not reply directly to me, but the entire newsgroup.
    > Any views expressed above are my own
    > Without predjudice
    >
    Nick, Sep 14, 2005
    #2
    1. Advertising

  3. Nick

    Nick Guest

    Okay, ive got a method of debugging. And it was a very simple solution
    (suprised noone suggested it).

    (for the benefit of others)...
    Don't use booleans as a return value but strings, if it's not an "OK" string
    it's presumed to be an error string and this can be seen in the XML response
    once the service has been invoked.

    Nick.

    "Nick" <> wrote in message
    news:...
    > i.e. I'm just opening the Web Services web page directly in accessing the
    > method via the automatically generated pages.
    >
    >
    > "Nick" <> wrote in message
    > news:...
    >> Hi there,
    >>
    >> When accessing a web service via a web browser and invoking it via
    >> HTTP is there any way to display debug messages on screen? I've tried
    >> throwing an exception but that merely results in a HTTP 500 error. I've
    >> tried logging to file but I don't seem to be allowed to and without being
    >> able to debug I cant debug my debug code, thus im stuck in a bit of a
    >> messy loop. Thanks in advance!
    >>
    >> --
    >> Nick Pateman
    >>
    >> ---------------------------------------------------------------
    >> Please do not reply directly to me, but the entire newsgroup.
    >> Any views expressed above are my own
    >> Without predjudice
    >>

    >
    >
    Nick, Sep 14, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hocho888
    Replies:
    1
    Views:
    604
  2. Michael Averstegge
    Replies:
    0
    Views:
    4,196
    Michael Averstegge
    Jan 10, 2006
  3. Not Me
    Replies:
    1
    Views:
    3,167
    Not Me
    Jun 5, 2007
  4. Isaias Formacio Serna

    Web Service that calls an external Web Service

    Isaias Formacio Serna, Jan 28, 2004, in forum: ASP .Net Security
    Replies:
    5
    Views:
    235
  5. Leo Violette
    Replies:
    0
    Views:
    998
    Leo Violette
    Apr 17, 2009
Loading...

Share This Page