axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From satyapriya sahoo <sahoo.satyapr...@gmail.com>
Subject Re: Accessing faultstring in Axis2 client
Date Thu, 05 Jun 2014 06:37:03 GMT
Jack,

Hope bellow points will help you to solve your Problem.

You can process in 3 ways.

1) IN your client code you need an catch block for AxisFault and U need to
retrieve the message from that exception
try{
  //Client code
}catch(AxisFault af){
   if(af!=null){
         String faultMsg =  af.getMessage();
         System.out.println("FaultString :: "+faultMsg  );
  }
}

2) If it is coming as a string, then you can do some String operation.

3) You can also take the help of dom parser or sax parse to retrieve the
specific value, because it is coming as a xml format.

Thanks,
Satya

Mime
View raw message