Webserice Client exception message

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

    #1

    Webserice Client exception message

    I have a client app consuming a web service.
    Web service has reference to a com dll.

    Right now client app is diaplying error in the following format.
    "Server was unable to process request. --Error - order number does not
    exist"

    I dont want to display "Server was unable to process request. -->" part of
    error message. COM dll raises the error messge "Error - order number does not
    exist"

    I am not sure why the web service is appending com error message.

    To summarize, I want to display ONLY "Error - order number does not exist"
    NOT "Server was unable to process request. --Error - order number does not
    exist"

    Any help is appreciated.

  • Arindrajit Biswas

    #2
    RE: Webserice Client exception message

    How you are passing the error message back to the client? I guess it's
    Exception. in that case use SOAPFault. You can specify exactly what you want.
    In client application you can retrieve your message from the fault.

    "VBTECH" wrote:
    I have a client app consuming a web service.
    Web service has reference to a com dll.
    >
    Right now client app is diaplying error in the following format.
    "Server was unable to process request. --Error - order number does not
    exist"
    >
    I dont want to display "Server was unable to process request. -->" part of
    error message. COM dll raises the error messge "Error - order number does not
    exist"
    >
    I am not sure why the web service is appending com error message.
    >
    To summarize, I want to display ONLY "Error - order number does not exist"
    NOT "Server was unable to process request. --Error - order number does not
    exist"
    >
    Any help is appreciated.
    >

    Comment

    Working...