J
Jaime Stuardo
Hi all....
When I explicitly throw an exception from my Web Service, this XML is sent:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException:
Server was unable to process request. --->
System.Data.SqlClient.SqlException: El beneficiario requerido no existe en el
sistema de VidaSecurity
at beneficiario.Ejecuta(String store_proc, Boolean aprobacion)
at beneficiaribtienePago()
at convenio.Consulta(QueryType datos)
--- End of inner exception stack trace ---</faultstring><detail
/></soap:Fault></soap:Body></soap:Envelope>
As you see, faultstring tag contains very technical information that is not
useful for the user. Is it possible to change the level of error message so
that only my customized message is shown in faultstring tag?
Thanks
Jaime
When I explicitly throw an exception from my Web Service, this XML is sent:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException:
Server was unable to process request. --->
System.Data.SqlClient.SqlException: El beneficiario requerido no existe en el
sistema de VidaSecurity
at beneficiario.Ejecuta(String store_proc, Boolean aprobacion)
at beneficiaribtienePago()
at convenio.Consulta(QueryType datos)
--- End of inner exception stack trace ---</faultstring><detail
/></soap:Fault></soap:Body></soap:Envelope>
As you see, faultstring tag contains very technical information that is not
useful for the user. Is it possible to change the level of error message so
that only my customized message is shown in faultstring tag?
Thanks
Jaime