Loading
GetErrorMessagesFromAxisFault

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Get ErrorMessages From AxisFault


Ans)

Read Error Messages From AxisFault :

This Method shows how to read the Error Messages from
a Axix fault Exception.

  public static String readErrorMessagesFromAxisFault(AxisFault e) {
      
        StringBuffer details = new StringBuffer();
        org.w3c.dom.Element[] faultDetails = e.getFaultDetails();        
        if(e instanceof ExceptionType){
            ExceptionType exceptionType = (ExceptionType)e;
            MessageType[] messageTypes = exceptionType.getMessages();
            if(messageTypes != null){
                for(int i=0;i<messageTypes.length;i++){
                    if(!StringUtils.isEmpty(messageTypes[i].getText())){
                        details.append(messageTypes[i].getText());
                    }
                }
            }
         }
        return details.toString();       
   }



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

GetErrorMessagesFromAxisFault


GetErrorMessagesFromAxisFault

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free