my dog learned polymorphism*
The moose likes Web Services and the fly likes Problem in Throwing Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem in Throwing Exception" Watch "Problem in Throwing Exception" New topic
Author

Problem in Throwing Exception

sreenivas vemula
Ranch Hand

Joined: Jan 21, 2012
Posts: 44
Hi,
when I am try throw a custom exception say ServiceException I am getting only faultcode and faultstring , but I am not getting detail element.

actual response coming in SOAPUI :


Intended Respone ::



Please help.

Thanks in Advance.
a

Regards,
sreeni.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

You might need to tell us how the response is generated with some code?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you tried throwing a SOAPFaultException which you created with a SOAPFault as parameter?
In the SOAFault object, you can set detail information.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
sreenivas vemula
Ranch Hand

Joined: Jan 21, 2012
Posts: 44
Hi Ivan,
Thanks for the information.

Regards,
sreeni.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Throwing Exception
 
Similar Threads
SOAP 1.2 Fault children qualified
Help regarding Security Header
Why Getting Fault Code in SOAP Response Message
Error in Soap Response while implementing ws-security using Metro
Context injection failed on service access