function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
wyvernwyvern thrown on bad usernames when calling login()

I'm using JAX-WS 2.1.5.


The following is easily repeatable. (It's in my unit tests.)


If I append "x" to the password, LoginFault_Exception (which is generated from the WSDL) is thrown when I login(). It has a fault code of INVALID_LOGIN. This is the expected behavior.


However, if I append "x" to the username instead of the password, SOAPFaultException (which is part of the Java library) is thrown when I login(). Its javax.xml.soap.SOAPFault has a faultString of "INVALID_LOGIN: Invalid username or password or locked out.".


Why isn't LoginFault_Exception thrown when the username is bad?