I'd probably need to see the method signature on the SEI and the annotations there. Also, are you talking JAX-WS SEI interface or REST or what? Per jax-ws/jws spec, the name of the element used for the request/response is taken from the WebResult/WebParam annotations, NOT the XmlRootElement annotation on the types. This is per spec for those cases.

Dan


On May 19, 2008, at 9:38 AM, rm-ramos wrote:


Hi guys,

I just recently upgraded from version 2.0.3 to .6 and I'm having a problem defining names in a @XmlRootElement annotation for my response classes.

When in 2.0.3 adding:

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="userInfoResponse",
namespace="http://webservices.messaging.com/";)
public class UserInfoResponse extends GenericResponse

to a class would produce a userInfoResponse node in the XML returned by the
service.
However, I keep getting return nodes, as if I didn't have any XmlRootElement
name defined.
Namespaces are working fine though.

Any help on this one?

Thanks,
Rui Ramos
--
View this message in context: 
http://www.nabble.com/%40XmlRootElement-name-not-working-in-2.0.6--tp17316700p17316700.html
Sent from the cxf-user mailing list archive at Nabble.com.


---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to