File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes How to FaultCode Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "How to FaultCode" Watch "How to FaultCode" New topic
Author

How to FaultCode

Salman Riaz
Ranch Hand

Joined: Jul 24, 2003
Posts: 53
Hello,

I have created a webservice with EJB session bean as End point.
I have a hanlder class implementing javax.xml.rpc.handler.Handler where i am varifying user login/password information in the Header.
Now i want to set up faultcode, JUST CANNOT understand how and where to set the FaultCode. Please help as i just cannot understand this concept.
How to set up faultcode? or how through exception etc..

Please provide some details if possible!!!

Any tips will be very helpful.


Thanks
Salman Riaz
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
SS Riaz,

Have you had a look at the SAAJ API and more specifically the javax.xml.soap.SOAPFault class? This might be the class you are willing to use

Moreover, please change your displayed name to conform to JavaRanch's Naming Policy.

In your case please use a first name followed by a family name which are not obviously fictional. "Salman Riaz" would be OK!!

You may change your displayed name here.

Thank you


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
IntelliJ Java IDE
 
subject: How to FaultCode
 
Threads others viewed
Late Editions
Question on Soap Faults and Application Exceptions
How to use Faultcode
ActionPerformed
how to return user defined faultcode
IntelliJ Java IDE