Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL - Webservice

 
Mabobotsane Mogo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic