This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes exception mapping problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "exception mapping problems" Watch "exception mapping problems" New topic
Author

exception mapping problems

Jonathan Guéhenneux
Greenhorn

Joined: Feb 24, 2009
Posts: 1
Hi,

I am working with Rational Application Developer 7.0 / Websphere 6.1.

I deployed a web service from a wsdl file. An exception is defined in this wsdl file so that the generated service and stub handle this exception. It all works fine (exception handling on the client side works too), but I needed to define a customized mapping, so I generated a new client with a new mapping (same wsdl, same service). Now it seems to continue working but the user-exceptions thrown by the web service are no longer caught, because they're nested in a SoapFaultException. I think its a problem due to the customized mapping, but why does it only affect the exceptions ? (the other objects returned by the web service are correctly mapped)

And, what part of the generated proxy can I modify in order to catch my user-exception with my customized mapping?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception mapping problems