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.

Bug 168197 - wsdl customisation - specify package name - broken
Summary: wsdl customisation - specify package name - broken
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: Customization (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 21:41 UTC by vincewebb
Modified: 2009-07-27 12:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
List of files created in the wrong places, ignoring chosen package name. (2.97 KB, text/plain)
2009-07-06 22:04 UTC, vincewebb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vincewebb 2009-07-06 21:41:47 UTC
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
Comment 1 vincewebb 2009-07-06 21:57:41 UTC
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
Comment 2 vincewebb 2009-07-06 22:04:08 UTC
Created attachment 84417 [details]
List of files created in the wrong places, ignoring chosen package name.
Comment 3 Milan Kuchtiak 2009-07-27 12:35:50 UTC
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)