Opened 16 years ago
Closed 16 years ago
#862 closed defect (fixed)
Web services server doesn't return exceptions from methods marked as 'void'
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | critical | Milestone: | BASE 2.5 |
Component: | webservices | Version: | |
Keywords: | Cc: |
Description
For example, trying to use the SessionService?.login() method with an invalid username or password results in an exception on the server side. The exception seems to not be passed on to the client. If the method is changed to return a string (or possible some other object), the exception is returned to the client as well.
Change History (2)
comment:1 Changed 16 years ago by
Owner: | changed from Martin Svensson to Nicklas Nordborg |
---|---|
Status: | new → assigned |
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
It also seems to work if, for example, a
throws BaseException
is added to the method declaration. However, the WSDL generation complains:The resulting WSDL file is very different from the original one and includes definitions for BaseException?, RuntimeException?, and it's superclasses... I wonder if this is a good idea....