cloudtrends / soi-toolkit

Automatically exported from code.google.com/p/soi-toolkit
1 stars 0 forks source link

Generated schema-component: differentiate naming of generated schema from component artifactId #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*Description*
Using values hd.lab.soitk:schema1 for groupId:artifactId the generated 
component has a pom.xml with:

  <groupId>hd.lab.soitk</groupId>
  <artifactId>schema1-schemas</artifactId>

and schemas in:

  resources\schemas\hd\lab\soitk\schema1\schema1.xsd
  resources\schemas\hd\lab\soitk\schema1\schema1Service.wsdl

with schema-namespaces and java-package-mappings as:

  urn:hd.lab.soitk.schema1.schema1.wsdl:v1
     =hd.lab.soitk.schema1.schema1.wsdl.v1
  urn:hd.lab.soitk.schema1.schema1.schema:v1
     =hd.lab.soitk.schema1.schema1.schema.v1

*Suggested changes*
1. Name the generated schema different from artifactId.
For example: if artifactId is _schema1_ the schema could be named 
_schema1DefaultSchema_ and then have namespace to java-mappings like:

  urn:hd.lab.soitk.schema1.schema1defaultschema.wsdl:v1
     =hd.lab.soitk.schema1.schema1defaultschema.wsdl.v1
  urn:hd.lab.soitk.schema1.schema1defaultschema.schema:v1
     =hd.lab.soitk.schema1.schema1defaultschema.schema.v1

Even better: allow explicit naming of schema in generation-wizard.

2. Use a filepath for schemas where both schema name AND artifactId is parts of 
the path (this seems to be missing now?).
For example:

the current paths:

  resources\schemas\hd\lab\soitk\schema1\schema1.xsd
  resources\schemas\hd\lab\soitk\schema1\schema1Service.wsdl

would then be:

  resources\schemas\hd\lab\soitk\schema1\schema1defaultschema\schema1defaultschema.xsd
  resources\schemas\hd\lab\soitk\schema1\schema1defaultschema\schema1defaultschemaService.wsdl

Original issue reported on code.google.com by hakan.d...@gmail.com on 22 Oct 2010 at 7:45

GoogleCodeExporter commented 9 years ago

Original comment by magnus.l...@gmail.com on 24 Oct 2010 at 6:52