jQuery in Action, 2nd edition
The moose likes Web Services and the fly likes Problem in Throwing Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply 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: 3670

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
Bartender

Joined: Oct 04, 2006
Posts: 2193
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem in Throwing Exception
 
Similar Threads
Context injection failed on service access
Why Getting Fault Code in SOAP Response Message
SOAP 1.2 Fault children qualified
Error in Soap Response while implementing ws-security using Metro
Help regarding Security Header