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

 

Reply via email to