Thanks for your quick answer, Colm.
Are you saying, that with a more recent version of CXF the token should be renewed automatically?

Thanks,
Laci

On 27.01.2015 16:34, Colm O hEigeartaigh wrote:
Could you try with a more recent version of CXF? There have been a bunch of
issues fixed in relation to renewing tokens since the 2.7.7 release.

Colm.

On Tue, Jan 27, 2015 at 3:26 PM, Laci Gaspar <[email protected]> wrote:

Hi
We are using an sts (cxf 2.7.7) to issue saml 2 tokens for our webservices.

Our WS Clients are instantiated by spring. Something like this:

         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = new ClassPathResource("wssec-client.xml").getURL();

         Bus bus = bf.createBus(busFile.toString());
         SpringBusFactory.setDefaultBus(bus);
         SpringBusFactory.setThreadDefaultBus(bus);

         Service service = Service.create(wsdlURL, SERVICE_NAME);
         while (true) {
             Greeter port = service.getPort(PORT_NAME, Greeter.class);
         }


After the token expires I receive an exception calling the WS. Can anybody
please help me with how I renew the token after it expires?

Any help is most appreciated.

Thanks,
Laci




Reply via email to