File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes WSDL - Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WSDL - Webservice" Watch "WSDL - Webservice" New topic

WSDL - Webservice

Mabobotsane Mogo

Joined: Oct 12, 2005
Posts: 4

I've EJB with methods throwing MyException to expose via WebService and I'm using oracle JDeveloper to generate WebService. The problem is the WSDL does not have any of my exception I'm throwing. Why can't I have exceptions in the WSDL.
Please help!!

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

WSDL is not a "Java technology" it is used by all languages, so other languages don't have the Java Exception class. Exceptions have to be handled through "error" messages defined by an XML schema. So you can pass back one of those messages.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
subject: WSDL - Webservice
It's not a secret anymore!