Re: Constraint Exception from Web Service
From: Mike (annon_at_hotmail.com)
Date: 02/17/05
- Next message: Benjamin: "WS-Security"
- Previous message: Sam Santiago: "Re: WSE 2.0 - ResponseSoapContext.Current is NULL"
- In reply to: SA: "Re: Constraint Exception from Web Service"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Feb 2005 07:55:59 -0500
Thanks much - I'll try the other group. For now I did get it to work by
capturing the constraint error in the web service and then threw it back to
the page as a soap exception. This worked for me, but I am not sure this is
the right approach. I am definetly a little foggy about how to handle errors
thru the services....
"SA" <informatica@freemail.nl> wrote in message
news:eGpSL9EFFHA.2608@TK2MSFTNGP10.phx.gbl...
> Mike,
>
> I am not entirely sure if this is the answer you are looking for, but here
> goes. When using WSE 2.0, exceptions will be wrapped in a SoapException.
> The
> InnerException property of the SOAP exception object will be the original
> exception.
>
> Have you created that constraint exception class yourself? If so, is it
> serializable? To make an exception that inherits from ApplicationException
> serializable, you will need to do more than just add the
> SerializableAttribute. You also ened a public constructor that takes two
> specific arguments and an overridden GetObjectData method.
>
> If you are not using WSE 2.0, then you're probably posting in the wrong
> group. In that case, try
> microsoft.public.dotnet.framework.aspnet.webservices
>
> HTH,
>
> --
>
>
> Sven.
>
> "Mike" <annon@hotmail.com> wrote in message
> news:OIseKT2EFHA.3512@TK2MSFTNGP10.phx.gbl...
>> All,
>>
>> I am capturing a SQL constraint exception in my web service and am
>> attempting to "throw" it back at my asp.net page so I can put up an alert
>> box. For some reason I lose the contraint error and the web page sees it
> as
>> an exception.
>>
>> How do I pass back the original type of the exception threw my web
> service?
>>
>> Thanks
>> mike
>>
>>
>
>
- Next message: Benjamin: "WS-Security"
- Previous message: Sam Santiago: "Re: WSE 2.0 - ResponseSoapContext.Current is NULL"
- In reply to: SA: "Re: Constraint Exception from Web Service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|