Jochen,

I was reviewing the code in JaxMe to see who easy it is to add a JaxMe
extension. After a bit of research this snippet seems to do what we
want (assuming we can fill in the xmlObjectsVector with InputSources
for all the xsd's)

            GeneratorImpl generator = new GeneratorImpl();
            JAXBSchemaReader reader = new JAXBSchemaReader();
            generator.setSchemaReader(reader);
            for (int i = 0; i < xmlObjectsVector.size(); i++) {
                SchemaSG sg = generator.generate((InputSource)
xmlObjectsVector.elementAt(i));
            }

But there are some things we need in addition to that.
#1: if there are some namespace/prefix combination is used inside an
embedded schema but defined in the top of the wsdl file, then there is
no way to pass it down to XSParser. (for example, XmlBeans has a
XmlOptions class takes with a setLoadAdditionalNamespaces method which
can be used to set such a map)
#2: I can't get a mapping of which schema type/element (QName) was
mapped to which java package/class. I need to to generate other code
like Stub/Receiver outside of JaxMe.

Could u please help?

thanks,
dims

--
Davanum Srinivas : http://wso2.com/blogs/

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

Reply via email to