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