This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In NetBeans 6.5 it was possible to specify the package name for the auto-generated code and it would obey, no questions asked. In NetBeans 6.7 is is still possible to specify a package name in the same way and some of the auto-generated code is placed in the specified package. However with the WSDLs I am consuming most of the auto-generated code is placed in the default package as if it had not been overridden. The reason for specifying a package other than the default is in order to consume multiple web services from the same company which cause conflict with identical filenames. This is some background in a forum at: http://forums.netbeans.org/viewtopic.php?t=2872
I stipulated the required package name using: Project Web Service References right click on web service, Edit web service attributes WSDL Customisation Global Customisation Uncheck Use Default enter required package name
Created attachment 84417 [details] List of files created in the wrong places, ignoring chosen package name.
The different behaviour is probably related to newer version JAX-WS. Now, the Global Customization / Package Name option is related to jaxws customization only (<jaxws:package name="a.b.c"/>). The schema customization is untouched. You can use the inline schema customization to customize package name for XML schema, e.g. : <xs:annotation> <xs:appinfo> <jxb:schemaBindings> <jxb:package name="x.y.z"/> </jxb:schemaBindings> </xs:appinfo> </xs:annotation> Or, if you want everything generate to the same package, the "package" wsimport option should be used, e.g. package="x.y.z" (Edit web service attributes -> Wsimport options)