Frage

I created a Web Service which has a WSDL importing a schema(let's call it SCHEMA A) file which has no target namespace in it. It defines it's own types but also imports other schemas.

So when the JAXB bindings were created the package given to the types coming from SCHEMA A was "generated". For the schemas imported the packages were fine. Is there a way to customize this? I mean when I use -p it tries to add all types in the same package and there are conflicts.

This is not what I expected. Is there a way to assign different packages to different namespaces...even if that specific schema has no target namespace?

The ideal was to find a way to assign a package I want for the specific SCHEMA A.

War es hilfreich?

Lösung

You can do this with a JAX-WS binding customization, specifically a package customization. This lets you specify package names for specific namespaces, or specific nodes in the schema document. It can get a bit complex - the syntax is baroque, at best - but stick with it, it does work.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top