• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

handle web service exception thrown at run time

 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic