users@jaxb.java.net

Re: JAXB and Web Services

From: Kohsuke KAWAGUCHI <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 13 Nov 2002 17:42:26 -0500

> Is possible , compile a schema in runtime ?

It is certainly possible in case of JAXB RI, but it won't be portable
and it's fairly complicated as you have to compile generated Java files
too.

I don't know what you can do with code generated dynamically in this way,
unless you do scripting or something alike.


> If I deploy a service and receive e request (jaxm request) and I want
> parse a xml message . Is necessary that I use , xjc.bat or I can , in
> some way , compile xml schema in runtime without human intervention .

If you know the schema that describes those JAXM messages, you should be
just fine by compiling that schema at the development time, not at the
runtime.

If you don't know the schema at the compile time, I suppose you don't
know what those documents look like. If so, how can you process those
messages?

regards,
--
Kohsuke KAWAGUCHI
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com