Thanks Upul !!!!! it worked to me !!!!!! thanks again !!!
Quino On 10/5/07, Upul Godage <[EMAIL PROTECTED]> wrote: > > Hi Quino, > > You can try giving username and password in the url. > > ./wsdljava.sh -uri http://username:[EMAIL PROTECTED]:port/path/service?WSDL > > > Upul > > > > On 10/5/07, Leo Stevens <[EMAIL PROTECTED]> wrote: > > > > Thanks Upul.... > > but my problem is that I can´t generate the clases because the wsdl2java > > throws an exception because the server need user and password and I can´t > > give it. when wsdl2java.class invoke the server. > > > > Thanks again. > > Quino. > > > > > > > > On 10/1/07, Upul Godage < [EMAIL PROTECTED]> wrote: > > > > > > 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. > > > > > > > > > > > > >
