Hello all, 

I am new to XFire. I have exposed a simple class using XFire default
servlet. In services.xml I have specifed only the service class and
imlementation class. Using the dyanamically generated WSDL URL, I have
generated client side stubs using WSGen.  I have got HelloClient,
HelloPortType and HelloImpl clases (Hello is my srevice name). Using the
HelloPortType reference retreived from HelloClient I have invoked the web
service method, it works fine. But I have problem error handling at client
side. 

Following the XFire documentation Fault and Exception Handling.html,  I have
added simple fault handler class extended from
org.codehaus.xfire.handler.AbstractHandler to the service object of
HelloClient class. 

 service0.addFaultHandler(new MyFaultHandler()); 

But the fault handling method invoke(MessageContext context) is not called.
But I can get the java exception thrown by the web service at the client
side. But my Fault handler is not getting notified. I am stuck at this
problem since many day. When I debuged I can see my handler object in the
handler list of service object. But my fault handler is not notified.

It will be great if someone help me in this....I have searched in forum for
quite long time but couldn't figure out a solution to this problem. 

When I added the same type of handler class in services.xml using
<faultHandlers> tag. It is getting notified at server side. How can handle
XFire fault at client side?

I am using Webspere Application server and XFire 1.2.6

Please help me...... 
      
Thanks in adavance, 
Jomon 

-- 
View this message in context: 
http://www.nabble.com/Exception-Handling-tf4532521.html#a12934744
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to