wood burning stoves 2.0*
The moose likes Web Services and the fly likes handle web service exception thrown at run time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "handle web service exception thrown at run time" Watch "handle web service exception thrown at run time" New topic
Author

handle web service exception thrown at run time

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
i have handled soap fault exception and web service exceptions as these are thrown while creating service object n port object

i m not able to find the way to handle underlying exception like wsdl validation by cxf in jboss or wsdl runtime exception

how culd we handle exception tbrown within container?


Regards
Azrael Noor
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

Could you explain what you mean when you say 'how can we handle'? What are the reasons for the exceptions you are trying to handle?
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
James Boswell wrote:Could you explain what you mean when you say 'how can we handle'? What are the reasons for the exceptions you are trying to handle?


1) When Soap Response Comes, CXF inside JBOSS validates response with WSDL. If response could not be validated, it throws an exception which is prrinted in servlet log. I could not handle that exception, i.e Validation, marshel unmarshel exception

Code goes as :

import java.net.URL;

import javax.jws.HandlerChain;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;







now when validation handles internally and exception is thrown then above could is not able to catch that

similarly RuntimeWSDl Exception and others

_____________

Like we use handler in between can we use any such thing so that we could manage validation exception at our own end

i hope give clue bout problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: handle web service exception thrown at run time