Hi,
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 retrieved from HelloClient I invoked the web service
method, it works fine. But I have problem error handling at client side.
Following the XFire document Fault and Exception Handling.html, I have
added simple fault handler class extended from
org.codehaus.xfire.handler.AbstractHandler to the service object in
HelloClient class.
service0.addFaultHandler(new MyFaultHandler());
But the invoke(MessageContext context) method is 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.
It will be great if someone help me in this....I have searched in forum for
quite long time but couldn't figure out solution to my problem.
When I added the same handler class in services.xml using <faultHandlers>
tag. It is getting notified at server side. How can handle XFire fault at
client side. When I debuged I can see my handler object in the handler list
of service object.
I am using Webspere Application server
Please help me......
Thanks in adavance,
Jomon
--
View this message in context:
http://www.nabble.com/Exception-Handling-tf4529307.html#a12924342
Sent from the XFire - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email