You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2007/07/07 08:50:28 UTC
svn commit: r554147 -
/webservices/axis2/trunk/java/modules/samples/faulthandling/client/src/example/BankClient.java
Author: deepal
Date: Fri Jul 6 23:50:25 2007
New Revision: 554147
URL: http://svn.apache.org/viewvc?view=rev&rev=554147
Log:
fixing sample error
Modified:
webservices/axis2/trunk/java/modules/samples/faulthandling/client/src/example/BankClient.java
Modified: webservices/axis2/trunk/java/modules/samples/faulthandling/client/src/example/BankClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/faulthandling/client/src/example/BankClient.java?view=diff&rev=554147&r1=554146&r2=554147
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/faulthandling/client/src/example/BankClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/faulthandling/client/src/example/BankClient.java Fri Jul 6 23:50:25 2007
@@ -51,10 +51,10 @@
final WithdrawResponse withdrawResponse = bankService.withdraw(withdrawRequest);
System.out.println("Balance = " + withdrawResponse.getBalance());
- } catch (AccountNotExistFaultMessageException e) {
+ } catch (AccountNotExistFaultMessage e) {
final AccountNotExistFault fault = e.getFaultMessage();
System.out.println("Account#" + fault.getAccount() + " does not exist");
- } catch (InsufficientFundFaultMessageException e) {
+ } catch (InsufficientFundFaultMessage e) {
final InsufficientFundFault fault = e.getFaultMessage();
System.out.println("Account#" + fault.getAccount() + " has balance of " + fault.getBalance() + ". It cannot support withdrawal of " + fault.getRequestedFund());
} catch (RemoteException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org