wood burning stoves 2.0*
The moose likes Web Services and the fly likes using SOAPFaultException 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 "using SOAPFaultException" Watch "using SOAPFaultException" New topic
Author

using SOAPFaultException

vijay kumar
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
How to throw SOAPFaultException explicitly at the server side.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Did you read the article http://www-128.ibm.com/developerworks/library/ws-tip-jaxrpc.html mentioned by Ulf for your previous posts ?

that article will get you started.


Spritle Software Blogs
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
More detail can be found here.
[ January 17, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
vijay kumar
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
but it's giving error
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
but it's giving error


Which is precisely what you want it do if you're throwing an exception, isn't it?
 
 
subject: using SOAPFaultException
 
Similar Threads
solution for extracting faultstring from SOAP FAULT EXCEPTION
Problem in Throwing Exception
Using SOAP fault messages
Proper Exception handling in WebServices
How do I catch a user define exception on the client (SOAP/JAX-RPC/WSDL)