SOAP Connector update

"Bordet, Simone" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Hi,

I have improved the SOAP connector so that it is now able to re-throw, on client side, exceptions that were thrown on server side.
As you may know, Axis wraps all exceptions thrown on server-side into AxisFaults (a subclass of IOException), so the following code wasn't working:

MBeanServerConnection mbsc = ...;
try 
{
   mbsc.getAttribute("dummy");
} 
catch (AttributeNotFoundException x) 
{
   // Do something here...
}

because getAttribute() was throwing an AxisFault (with an AttributeNotFoundException.toString() as faultString).

This last change should make the code above working fine.

Following once more Alireza's suggestion (and after digging deep in the Axis code with no luck), we brutally parse the faultString and try to understand if it is something re-throwable.

With other few fixes (caught by the nightly build), the SOAPConnector should be 100% operative.

Simon


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.