cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <>
Subject Re: Please help me with HTTP authentication/XML message modification
Date Wed, 16 Apr 2014 15:19:21 GMT

The WSSConfig object that is used to pass configuration into WSS4J has a WSTimeSource object
which can be used to provide a custom time source for use with creating timestamps in the
UsernameToken.   That’s what I’d look into doing.


On Apr 15, 2014, at 9:25 AM, Pampolini Matteo <> wrote:

> Hello there,
> I'm developing an ONVIF client module that needs to make appropriate SOAP requests to
> some remote devices. Usually these devices accept HTTP text or digest authentication
or both.
> Sometimes it happens that their date/time is not synchronized with the one of the client
> thus authentication fails. However, ONVIF devices provide a method to retrieve their
> date/time to calculate an offset and then set the right time inside the SOAP request.
> The only way I found to achieve this is through an out interceptor that takes the XML
> and modifies the wsu:Created element accordingly. Googling a lot I came to this link:
> The problem is that adding this interceptor, I can modify the XML message, but I see
no packet transmitted
> over the wire. If I just comment out the line:
> message.getInterceptorChain().doIntercept(message);
> the packet is transmitted, but my XML message to be modified is empty.
> Any ideas? I really don't know how to go further...
> Many thanks in advance,
> Matteo
> This email and any attachments are confidential to the intended recipient and may also
be privileged. If you are not the intended recipient please delete it from your system and
notify the sender. You should not copy it or use it for any purpose nor disclose or distribute
its contents to any other person.
> Questa e-mail e tutti i suoi allegati sono da intendersi inviati in via riservata all'effettivo
destinatario e possono essere soggetti a restrizioni legali. Se non siete l'effettivo destinatario
o avete ricevuto il messaggio per errore siete pregati di cancellarlo dal vostro sistema e
di avvisare il mittente. E' vietata la duplicazione, l'uso a qualsiasi titolo, la divulgazione
o la distribuzione dei contenuti di questa e-mail a qualunque altro soggetto.
> Prima di stampare questa comunicazione consideratene, per favore, l'impatto ambientale
> Please consider the environment before printing this email

Daniel Kulp -
Talend Community Coder -

View raw message