Web Services question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frazer

    #1

    Web Services question

    hi,
    if my webmethod fails (eg database server is down) how do i send this
    message back to the caller of the web method.
    thanx


  • Rick Sawtell

    #2
    Re: Web Services question

    There are many different ways that you could approach this problem.

    Just like any other function out there, you could create a return value that
    specified whether or not a procedure or function successfully completed.

    You could simply send back an empty resultset instead of actual data.

    And so forth.


    HTH

    Rick Sawtell
    MCT, MCSD, MCDBA




    "Frazer" <Frazer@hotmail .com> wrote in message
    news:%23wpX7K%2 3aEHA.3764@TK2M SFTNGP10.phx.gb l...[color=blue]
    > hi,
    > if my webmethod fails (eg database server is down) how do i send this
    > message back to the caller of the web method.
    > thanx
    >
    >[/color]


    Comment

    • Nick Malik

      #3
      Re: Web Services question

      Sure, Raise a SOAP exception.

      See this article


      --- Nick

      "Frazer" <Frazer@hotmail .com> wrote in message
      news:%23wpX7K%2 3aEHA.3764@TK2M SFTNGP10.phx.gb l...[color=blue]
      > hi,
      > if my webmethod fails (eg database server is down) how do i send this
      > message back to the caller of the web method.
      > thanx
      >
      >[/color]


      Comment

      Working...