This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WSDL - Webservice" Watch "WSDL - Webservice" New topic
Author

WSDL - Webservice

Mabobotsane Mogo
Greenhorn

Joined: Oct 12, 2005
Posts: 4
Hi

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!!

regards
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17271
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: WSDL - Webservice
 
It's not a secret anymore!