[jboss-user] [JBoss Web Services Users] - Custom JAXBContext search path for JAXWS EJB endpoint

mckibben do-not-reply at jboss.com
Thu Oct 22 14:13:13 EDT 2009

Hi All,

I have a JAXWS EJB endpoint implementation using JBossWS 3.2 Native, and I need to customize the JAXBContext package search path used to unmarshall the SOAP payload. 

My wsdl is using document literal to send the payload, and one of the message elements has a child element that is of type "xs:any". I have the JAXB generated Java classes for the actual element being added as a child in the xml, but the object is still being unmarshalled as a DOM Element instead of my JAXB class. 

It seems like this should be possible, but I can't find any way to do this looking through the user docs. I thought by adding an @XmlSeeAlso annotation to my JAXWS EJB SEI implementation should've added that JAXB class to the JAXBContext used for unmarshalling, but that didn't work. 

Anybody have a solution? Or is this a JBoss bug? The JAXWS 2.1 spec (see section 2.2) seems to imply the @XmlSeeAlso should work, but their examples show the annotation on the SEI and not on the SEI implementation.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261770#4261770

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261770

More information about the jboss-user mailing list