Get original Excaption in Web Service

Nov 26 2009 4:29 AM

Hi to all,
Q about throwing Excaption from WebService to client:
I build WS which connect to DAL class --> DB,
if connections not succeed than DAL throw Excaption.
Excapion catch at WS [WebMethod] - the one who called the DAL
and than return to client ( [WebMethod] is string type) :
 
return
ex.Message;

 
the problam: when ex catch on client side it give a loonggg.... Message desc. incude info that need to be hide from client (path fo WS and more...)
I dont want all the info at client... only the original Message from DAL Excaption.
how can I get it ???

Answers (1)