This solution works well since most complex ColdFusion data types aren't
handled well when passed via a webservice.  I convert almost everything in a
CFC to an XML string before returning it and also have the error code and
description in XML.  That way I know that no matter what, I'm looking for a
string return type from my services.


- Steve

________________________________

From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 2:54 PM
To: CF-Talk
Subject: Re: CFC - Web service error handling

I return XML with all my webservices so if an error occures I just
return that in xml...

<xmldoc>
<error>
   <errorcode></errorcode>
   <errormessage></errormessage>
</error>
<xmldoc>

Adam H
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to