12.07.2015 Views

Web Services Servizio Telematico Dogane MANUALE PER L'UTENTE

Web Services Servizio Telematico Dogane MANUALE PER L'UTENTE

Web Services Servizio Telematico Dogane MANUALE PER L'UTENTE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Web</strong> <strong>Services</strong> <strong>Servizio</strong> <strong>Telematico</strong> <strong>Dogane</strong> – Manuale per l’utente5 SicurezzaL’accesso ai <strong>Web</strong> <strong>Services</strong> è regolato da un’autenticazione di tipo BASIC per il passaggio dellecredenziali che saranno verificate dal sistema LDAP attualmente esistente.In fase di realizzazione dell’applicazione client sarà dunque necessario definire, secondo lo standardJAXWS, le policy di accesso al <strong>Web</strong> service.L’utente deve cioè indicare username e password di accesso al momento della chiamata ai diversiservizi.Di seguito forniamo un esempio di una chiamata dell’operazione DIR realizzata in linguaggio java:<strong>Telematico</strong>FtpWsBindingImplProxy service = new <strong>Telematico</strong>FtpWsBindingImplProxy();BindingProvider bp = (BindingProvider) service._getDescriptor().getProxy();bp.getRequestContext().put(BindingProvider.USERNAME_PRO<strong>PER</strong>TY, "USERNAME");bp.getRequestContext().put(BindingProvider.PASSWORD_PRO<strong>PER</strong>TY, "PASSWORD");String result = service.dir(pattern);Pagina 16 di 21Versione del 04 Aprile 2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!