On Fri, 2005-05-27 at 11:18 -0700, Sean Shubin wrote:
> Ok, thanks. I was trying to make a SOAP call to an https service like so,
>
> private Object invoke(String operationName, Object... params) throws
> ServiceException, MalformedURLException, RemoteException {
> String endpoint = WEB_SERVICE_URL;
> Service service = new Service();
> Call call = (Call) service.createCall();
> call.setUsername(USERNAME);
> call.setPassword(PASSWORD);
> call.setTargetEndpointAddress(new URL(endpoint));
> call.setOperationName(operationName);
> Object ret = call.invoke(params);
> return ret;
> }
>
> But I would still get the error "This service method requires user
> authentication. Username/password is required.". Do you know if wss4j
> has the solution? Or am I looking in the wrong place?
Try adding
call.setClientHandlers(new WSDoAllSender(), new WSDoAllReciever());
--
Torgeir Veimo <[EMAIL PROTECTED]>