i don't see any code that puts an instance of WSDoAllSender in the flow -
there was a nearly identical question to this one on the axis-users list so if
you find the answer please let me know. :)

> Hi all,
>
> I am trying to setup a SOAP client to send UsernameToken.  I am trying not to
> use the WSDD to setup the parameters:
>
>     DummyServiceService locator =
>       new DummyServiceServiceLocator();
>
>     try
>     {
>       Remote remote = locator.getPort(DummyService.class);
>       Stub axisPort = (Stub) remote;
>
>       axisPort._setProperty(WSHandlerConstants.ACTION,
> WSHandlerConstants.USERNAME_TOKEN);
>       axisPort._setProperty(UsernameToken.PASSWORD_TYPE,
> WSConstants.PASSWORD_TEXT);
>       axisPort._setProperty(WSHandlerConstants.USER, "wss4j1");
>
>       ClientAuthenticationHandler pwCallback = new
> ClientAuthenticationHandler();
>       axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, pwCallback);
>
>
>       DummyService service = locator.getDummyService();
>       boolean result = service.doSomething();
>
>     }
>
>
> But I am getting an AxisFault:
> WSDoAllReceiver: Request does not contain required Security header.
>
> The question is, am I missing a property in the code?
>
> Using a WSDD to pass in the parameters is completely fine though.
>
> Thanks very much.
>
> Regards,
>
> Brian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to