Hi

I'm developing some client-server application. The client is made in
flex and server is written in Java using xFire
(http://xfire.codehaus.org/) SOAP framework which helps me to create
and expose web services which are called by my client.

My problem is when the web service throws an exception on server side
(which is my custom exception type with some custom data inside), then
my flex client calls properly the fault-handling function, but it
cannot recognize what's inside the exception and instead it tells me
that Error #2032: Stream Error occured.

My question is: how can I make my flex client know what type of
exception I throw from web service. It's important for me, because I
want to pass some error message inside the exception.

One more thing: I want to avoid situation when I return data from
service wrapped in some object which contains both raw data and some
information about any exceptions or other problems. I want to separate
those things, let services return what they should like strings,
arrays etc. , and if something goes wrong they should throw an
exception with custom message describing the problem.

Dominik Kornas


Reply via email to