Additional info:
The prefix xjc must be bund like this:
xmlns:xjc="
http://java.sun.com/xml/ns/jaxb/xjc"
Enclose the binding in a binding/schemaLocation element:
<jxb:bindings schemaLocation="someName.xsd">
<jxb:bindings node="//xs:any">
<xjc:dom/>
</jxb:bindings>
</jxb:bindings>
-W
On Fri, Apr 3, 2009 at 7:32 AM, Gary Gregory
<GGregory_at_seagullsoftware.com>wrote:
> Alejandro:
>
>
>
> You need to create an XJC binding file which should contain a fragment
> like:
>
>
>
> <jaxb:bindings node="//xs:any">
>
> <xjc:dom/>
>
> </jaxb:bindings>
>
>
>
> Gary
>
>
> ------------------------------
>
> *From:* Alejandro Escalante Medina [mailto:alex.escalante_at_gmail.com]
> *Sent:* Thursday, April 02, 2009 7:40 PM
> *To:* users_at_jaxb.dev.java.net
> *Subject:* JAXB and xsd:any values
>
>
>
> Hello guys, I am working with jax-ws and jaxb to implement WS-I
> Notification services.
>
> Everything seems to be working except for a small but important problem:
>
> The WS-I Notification schema specification defines the Message element as
> being able to contain <any> content. I understand that can be any
> well-formed xml. However, when unmarshaling inside my web service, the
> getAny() method for the message object comes out null every time...
>
> Any ideas?
>
> The xsd for WS-I Notification is here:
>
> http://docs.oasis-open.org/wsn/b-2.xsd
>
> I am using this command line to generate types:
>
> xjc.sh http://docs.oasis-open.org/wsn/b-2.xsd
>
>
> Thanks in advance...
>
> Alejandro Escalante Medina
> Visita mi página personal en http://weblocked.blogsome.com/
>