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 82748

Summary: [ws][hints][55cat] IDE should validate package-info
Product: webservices Reporter: brviking <brviking>
Component: EditorAssignee: issues@webservices <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 78758    

Description brviking 2006-08-15 16:03:31 UTC
[ BUILD # : 200608110000 ]
[ JDK VERSION : 1.6 ]

When creating a web service with customized @XmlSchema, developer will create a sub-package jaxws, and put a package-info.java file inside it.
Then, if developer declares a "namespace='...'" and on webservice declares a "targetNamespace='...'", IDE should verify both are equals.

Example of wrong code written by me (without any alert about what I was doing wrong - take me hours to get it solved):

@WebService(name="usuarioWS", targetNamespace="webservices.everest.info")
public class UsuarioWS {
...
}

On package-info.java:

@XmlSchema(
  namespace="http://webservices.everest.info",
  attributeFormDefault=XmlNsForm.QUALIFIED,
  elementFormDefault=XmlNsForm.QUALIFIED)

Besides sounds stupid, I wasn't able to see difference between "webservices.everest.info" and "http://webservices.everest.info".
IDE should alert when namespace and targetNamespace are different only when comparing a web service and a package-info in it's jaxws subpackage.
Comment 1 Tomasz Slota 2006-08-17 12:43:59 UTC
to be implemented in the next release