• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to FaultCode

 
Salman Riaz
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic