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 order to implement http://www.netbeans.org/issues/show_bug.cgi?id=53989 which is a web service client support in java project, we want to enhance java project's xml with web service client information. This kind of information is already part of web project, and for web service in ejb project. I'm attaching diff between revision 2 and 3 of the project schema, and also schema v.3 as a whole file.
Created attachment 24016 [details] Difference between v2 and v3 schema
Created attachment 24017 [details] New schema
Are the new elements intended to be used by build-impl.xsl? If not, they should probably be placed in a new fragment beneath <configuration> with its own namespace.
Yes, they are used in build-impl.xsl. We are adding new targets to the build script based on a presence and value of the elements.
By the way: maxOccurs="1" on xsd:element is unnecessary, since that is the default. Seems odd for <web-service-clients> to be optional, yet if present, can still be empty. Probably harmless but permits two different ways of expressing the same thing, which would better be avoided. Try to use more specific types than xsd:token if possible. Can client-source-url really be any free text? Sounds like it needs to be xsd:uri. Element names inside <web-service-clients> do not need to be prefixed with "web-service-", I think; it is obvious. Probably just <web-service-clients> <client> <name>Whatever... any format?</> <stub-type>what goes here??</> <source-url>http://nowhere.net/</> </> </> would suffice.
Yes, maxOccurs="1" is unnecessary "xsd:anyURI" type can be used for source-url element As far as the element names simplification: the structure coppies the web project's project.xml (The implementation uses the same constants) Though, the element names could be changed (for j2seproject) easily, I think this could confuse the user. Martin, what do you think about that ?
OK, if the element names are already in use in web/project, best to keep them the same.
This was done for 5.0.
v