title: JAX-WS Password Type PasswordText
body: <p>I've got a simple command line Java JAX-WS app to test a SOAP request, but the server is expecting the Password Type to be PasswordText and I'm stumped on how to set this...</p>
  
  <p>The code looks like so:</p>
  
  <pre><code>@WebServiceRef
  private static final HelloService helloService = new HelloService(url, new QName(
          URL, "HelloService"));
  
  public static void main(final String... args) {
  
      try {
          final HelloPort helloPort = helloService.getHelloPort();
          final BindingProvider hB = ((BindingProvider) helloPort);
          hB.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                     END_POINT_ADDRESS);
          hB.getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
                                     USERNAME);
          hB.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
                                     PASSWORD);
          ...
  </code></pre>
  
  <p>I've tested the request using SOAP-UI so I know it's working. Any help on setting the password type would be appreciated.</p>
  
  <p>Thanks.</p>