This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
 
subject: handle web service exception thrown at run time
 
Similar Threads
Writing a web service to read XML message
exception mapping problems
Not able to Catch java.net.SocketTimoutException
java.text.ParseException in Web service
Problem with Custom Exceptions in my Axis webservice