Hi Magnus, Magnus Olsson wrote:
>Hi Erin, > > You must have meant Eran ;-) > >how would I create a custom SOAP Fault if the fault is generated by Axis (i.e. >not in the service itself)? Lets say that the service is missing, could the >SOAP Fault be customized somehow? By using a handler in the out fault flow? > > Sorry for the late reply. I'm writing a test case for you all to see how faults can be custommized. I'm not done with this test, but you can have a look at that. What I have done there was, I deployed a handler in the server side, which simply throw an AxisFault. Before that it puts some information to the message context, so that Axis2 fault handling is picking that up. I invoked a service from ServiceClient and trying to validate the recd SOAPfault. I found some bugs in om and Axis2 engine. Give me some time to finish this, but if you want you can take a loot at the test org.apache.axis2.engine.FaultHandlingTest in integration module [1]. (this is not a test still, I'm testing with a System.out. Will put a XMLUnit in to this soon) -- Chinthaka [1] : http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java?view=markup > > > >
signature.asc
Description: OpenPGP digital signature
