[jboss-user] [JBoss Web Services] - Generated WSDL has too many namespaces/imports.

Scale It do-not-reply at jboss.com
Fri Jan 7 09:43:10 EST 2011

Scale It [http://community.jboss.org/people/meselfe] created the discussion

"Generated WSDL has too many namespaces/imports."

To view the discussion, visit: http://community.jboss.org/message/579511#579511

When I deploy a jaxws annotated web service on jboss 4.3ga the autogenerated wsdl contains many unused namespaces and imports.

The web methods input objects have been generated using jaxb from a catalog of XSD files.

          public void dosomething(DTO dto);

So in the case above "dto" originate from the xsd catalog and has jaxb annotations. The reference to this object seems to draw in all objects from the xsd catalog even though the java class does not depend on them. The xsd catalog is built as a hierarchy so "dto" extends some root object. The only link I can see between the root object and the rest of the objects from the catalog is a jaxb @XmlSeeAlso annotation on the root object that lists all objects that extends this root object. 

How do I make jboss generate a WSDL that does not include all the unused objects from the catalog?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110107/26ae296b/attachment-0001.html 

More information about the jboss-user mailing list