RE: [flexcoders] Axis server exceptions and Flex.

2005-07-18 Thread Shlomi Cohen
Title: Mercury Email Signature





well ?  was 
it too long or you didn't see it ? :-)
 
please take a 
moment guys 
 
thanks
 
Shlomi
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Shlomi 
CohenSent: Sunday, July 17, 2005 17:52To: 
'flexcoders@yahoogroups.com'Subject: [flexcoders] Axis server 
exceptions and Flex.

Hi
 
i know this is a question more suitable for Axis forum 
but we are all working with the same tools so maybe someone 
knows.
 
The problem: 
when there is a server method exception Axis sends a 
faultcode of "Server.userException" in the 
SOAP
response to the flex client and the actual class and 
stack trace in the faultstring.
 
According to Axis docs if you throw an Exception which 
inherit from RemoteException than Axis will put the class name in the fault code 
field , see http://ws.apache.org/axis/java/user-guide.html#Exceptions.
 
but unfortunately this did not work for me , i 
tried throwing RemoteException and throwing a child of RemoteException but 
no luck.
 
The need to distinguish between exceptions 
is obvious , we need to format a nice message according to the 

real exception happened on the 
server.
 
we are about to build our own result object that will 
have an error code in it , but wanted to check if there is a 
nicer
formal way of changing the faultcode in the SOAP 
response.
 
do you have any idea 
?
 
thanks
Shlomi
 
__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  










[flexcoders] Axis server exceptions and Flex.

2005-07-17 Thread Shlomi Cohen
Title: Mercury Email Signature





Hi
 
i 
know this is a question more suitable for Axis forum but we are all working with 
the same tools so maybe someone knows.
 
The 
problem: 
when 
there is a server method exception Axis sends a faultcode of 
"Server.userException" in the SOAP
response to the flex client and the actual class and 
stack trace in the faultstring.
 
According to Axis docs if you throw an Exception which 
inherit from RemoteException than Axis will put the class name in the fault code 
field , see http://ws.apache.org/axis/java/user-guide.html#Exceptions.
 
but 
unfortunately this did not work for me , i tried throwing RemoteException 
and throwing a child of RemoteException but no 
luck.
 
The 
need to distinguish between exceptions is obvious , we need to format a 
nice message according to the 
real 
exception happened on the server.
 
we 
are about to build our own result object that will have an error code in it , 
but wanted to check if there is a nicer
formal way of changing the faultcode in the SOAP 
response.
 
do you have any idea 
?
 
thanks
Shlomi
 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.