I see. I was not seeing any .xsb files when I ran the XMLBeans ant task
separately (http://xmlbeans.apache.org/docs/2.0.0/guide/antXmlbean.html ),
using the same jar in the Axis 2.0 distribution. But I had srconly="true", so
maybe this option does not generate .xsb?

But from the tool documentation, there is a viewer to view this info:

dumpxsb (XSB File Dumper)

Prints the contents of an XSB file in human-readable form. An XSB file
contains schema meta information needed to perform tasks such as binding and
validation. "XSB" stands for XML Schema Binary.
Syntax

dumpxsb myfile.xsb

Options

myfile.xsb
    The name of an XSB file. 

Example

The following command and output example use an XSB file generated by
compiling the schema (in EasyPo.xsd) that accompanies the SubstitutionGroup
sample.

dumpxsb PurchaseOrderDocument.xsb

Output:

PurchaseOrderDocument.xsb
  Magic cookie: da7ababe
  Major version: 2
  Minor version: 22
  Release number: 0
  Filetype: FILETYPE_SCHEMAPOINTER
  String pool (2):
  1 = "schema.system.s633ECC92E6CC0ACA137B11B7B38CA3A8"
  Type system: schema.system.s633ECC92E6CC0ACA137B11B7B38CA3A8



-----Original Message-----
From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 12:42 PM
To: [email protected]
Subject: Re: [Axis2] Purpose of resource files generated with Xmlbeans
databinding

Hi,
This is what I found in the XMLBeans site
"An XSB file contains schema meta information needed to perform tasks
such as binding and validation. "XSB" stands for XML Schema Binary."
So my undertanding is that these xsb files are needed to when binding
is done and hence a must to be generated. When you invoke scomp
usually things are jarred and the xsbs will be conveniently hidden
from view :)
XMLBeans also has a tool that lets you inspect the content of an xsb file [1]

HTH
Ajith
[1] http://xmlbeans.apache.org/docs/2.0.0/guide/tools.html#dumpxsb


On 9/7/06, robert lazarski <[EMAIL PROTECTED]> wrote:
> I've also never used xmlbeans outside of axis2 databinding ... but I
> do know that the schemaorg_apache_xmlbeans* dependancy is due to the
> TypeSystemHolder.class that is strangely created when also creating
> the *.java files when invoking wsdl2java . The whole thing never made
> sense to me or a lot of other people ... the question comes up
> frequently on the list. IIRC the TypeSystemHolder.class is indeed
> created outside of axis2 , as I wrote some of the first docs showing
> how to overcome the problem via searching on the xmlbeans list.
>
> HTH,
> Robert
>
> On 9/7/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > XMLBeans does not generate them when invoked standalone ?? I'm not
> > really sure about this but XMLBeans depends on these xsb files to
> > parse the XMLs properly and it cannot do without  them.
> >
> > Ajith
> >
> > On 9/7/06, Spies, Brennan <[EMAIL PROTECTED]> wrote:
> > > Actually, the latest nightly build solved my problem, so it's not an
issue
> > > for me anymore--but am still curious about what these files
are...XmlBeans
> > > itself does not generate them, and they are very short files,
> > >
> > > "schemaorg_apache_xmlbeans.system.s4455233DA64B38DEA9E660649ACE1E73"
with
> > > some unreadable chars (raw bytes?) leading and trailing.
> > >
> > > Just curious,
> > >
> > > Brennan
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Jeff
> > > Greif
> > > Sent: Thursday, September 07, 2006 10:41 AM
> > > To: [email protected]
> > > Subject: Re: [Axis2] Purpose of resource files generated with Xmlbeans
> > > databinding
> > >
> > > I'm using XmlBeans to go back and forth between object and dom
> > > representations in a service deployed as a message service (so axis is
> > > not used to generate any code)  I just use XmlBeans outside axis and
> > > embed the generated classes in WEB-INF/lib of the webapp containing
> > > axis. Just download the latest xmlbeans distribution and run scomp on
> > > the schemas and wsdls in question with some appropriate .xsdconfig
> > > file you write.  The .xsb files can be generated into the same tree
> > > that the compiled generated classes go in, and jar'ed up into the
> > > resulting archive.  The xmlbeans docs explain it well enough so it can
> > > be done without much thrashing around.
> > >
> > > Jeff
> > >
> > > On 9/7/06, Spies, Brennan <[EMAIL PROTECTED]> wrote:
> > > > Is there a way to generate these manually, since I am currently
having a
> > > > problem with not all of my schemas being generated as XmlBeans
classes
> > > > (https://issues.apache.org/jira/browse/AXIS2-1116)?
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Ajith Ranabahu
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to