The generated client proxy supports authorization through two properties set on the transport. If you set these properties on the transport before invoking the service, the request is sent with an HTTP authorization header.
proxy.setTransportProperty("user", myUser);
proxy.setTransportProperty("password", myPassword);
For an example using a secure transport, see Add a Secure Transport.