[jboss-dev-forums] [JBoss Web Services Development] - Re: JBoss 5.1: Complex objects are not being convert to XML payload
spyhunter99
do-not-reply at jboss.com
Thu Apr 12 20:32:38 EDT 2012
spyhunter99 [https://community.jboss.org/people/spyhunter99] created the discussion
"Re: JBoss 5.1: Complex objects are not being convert to XML payload"
To view the discussion, visit: https://community.jboss.org/message/729737#729737
--------------------------------------------------------------
Ahh found the problem. You're using xs:any which is always an issue with jaxb and needs to be handled.
When creating an item, you'll need to use the ObjectFactory.create..... which returns a JAXBElement<sometype>
When accessing, you'll have to type cast the object to a JAXBElement<sometype>
you'll probably also want to use a tool like tcpmon to verify the content on the wire against the wsdl/xsd and make adjustments (if necessary) to the object factory
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729737#729737]
Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120412/fced05b8/attachment.html
More information about the jboss-dev-forums
mailing list