You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Xu, Larry" <la...@qualcomm.com> on 2007/01/16 00:07:52 UTC

question regarding Axis Exception handling with Websphere Portal

When using axis2 1.1 with Websphere Portal 5.1, in the case where
exceptions are expected from the webservice, they cannot be caught.

 

Example below:(pseudo code)

 

try {

webservice = Factory.getWebservice();

String username = "111";

String password = "112"; //invalid password, should expect an exception

 

webservice.login(username, password);

System.out.println("succeeded");

}

catch(Exception e) {

            e.printStackTrace();

}

 

When testing this using Websphere Application Server as a servlet, the
exception is caught, but when testing this using Portal Test
Environment, the exception is not caught when it should be.

 

Please help.

 

 

Larry