Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handle web service exception thrown at run time

 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic