What are you trying to achieve? Is the target ws endpoint using WS-SecurityPolicy or not? If it is, you're most likely missing part of the configuration in the context (see https://docs.jboss.org/author/display/JBWS/WS-Security#WS-Security-Client ), if it's not then you're using wrong context properties (see "Use binding provider to set principal/credential" at https://docs.jboss.org/author/display/JBWS/Authentication)
Knowing what exception is actually being thrown on server side might help.