Hi,
I have the class extension
@XmlElement
ClassA {
}
@XmlElement
@XmlRootElement
ClassB extends ClassA {
}
ClassContainer {
@XmlElementRef
private ClassA classA;
}
The services are in the namespace "http://ws.services" and the classes are int "model.domain"
List<ClassA> getAllClasses();
List<ClassContainer> getAllClassContainer();
The services was working before I add the ws-security.
Now when a calling the services the following message occurs:
WSSecurityException: Error signing message: element classA has a relative namespace: ns4="model.domain"
I not found nothing in google to solve this problem.
Thanks
I solved this problem changing the annotations:
@XmlElement
ClassA {
}
@XmlElement
ClassB extends ClassA {
}
ClassContainer {
@XmlElements( @XmlElement(type=ClassA.class) )
private ClassA classA;
}
Thanks