Cześć. Mam coś takiego:
public class Klasa<T> { T object;..}
@WebService
public interface ITest {
public Klasa<String> test();
}
implementacja
public Klasa<String> test() {
String str = new String("ala");
return new Klasa<String>(str);
}
Po stronie klienta:
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"pl/aaa/ws/client-beans.xml");
ITest t = (ITest ) context.getBean("test");
Klasa<String> p = t.test();
i tutaj pojawia się problem z wartością null podczas pobierania wartości object. Jeżeli do klasy Klasa dodam String innePole to zostanie ono prawidłowo odebrane.
Czy ktoś wie w czym problem?
CXF 2.5.2, Spring 3