You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Don Laidlaw <do...@rogers.com> on 2004/06/16 18:19:11 UTC

How to import in serializer.writeSchema

Hi,

I am trying to write a custom serializer, and have it generate the 
proper schema output.  I find the need to add import elements to both 
the definitions element and the types element.  I can not figure out a 
way to do that so far.  I should be able to grab a reference to the 
definitions object and call an addImport() method, but can't seem to 
find how to get a reference to the definitions object.  Same thing for 
the types object.  The types object is actually passed in as a parameter 
to the writeSchema(Class javaType, Types, types) method I am 
implementing, but there is no method to add imports.

Any suggestions from the masters?

Thanks
-Don