After you generate the classes, you can do something like this when using
the stub.
HttpTransportProperties.Authenticator authenticator = new
HttpTransportProperties.Authenticator();
authenticator.setPreemptiveAuthentication(true);
authenticator.setAuthSchemes(Arrays.asList(new String[]{
HttpTransportProperties.Authenticator.BASIC}));
authenticator.setUsername(username);
authenticator.setPassword(password);
stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE
,authenticator);
Upul
On 10/2/07, Leo Stevens <[EMAIL PROTECTED]> wrote:
>
> Hi !
> I have to invok a ws with Basic Authentication (user and pass), but first
> I need to create the java classes so I need run WSDL2JAVA.class with user
> and pass, so my question: Is it posible to set a java env param with
> username and password.
>
> Thanks .
> Quino.
>