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.
Build: NetBeans IDE 6.0 RC2 (Build 200711201000) VM: Java HotSpot(TM) Client VM, 1.5.0_07-b03 OS: Windows XP, 5.1, x86 User Comments: Steps that caused the error: 1. Make web project 2. Make XSD with 2 simple types string named request and reply 3. Make WSDL based on XSD 4. Create service from WSDL 5. Add two complex types to WSDL 6. Change messages from simple types to complex types This gave a null pointer.
Created attachment 53676 [details] stacktrace
Just to make sure, the exception was caused by the fact that I changed the messages type so that it pointed directly to a complex type instead of an element with a complex type. The WSDL wizzard protects against this scenario, stating that the message type should point to an element. But applying the editor after the wizzard does not prevent one making this mistake, resulting in the exception.
Errr. and 5. should be add complex types to XSD.
moving opened issues where TM != dev to TM=TBD
Should be fixed for 6.5.
The Add Operation action was likely called, which throws this NPE. The better would be to call Refresh Service action on service node after wsdl changes. In this case, the wsimport would tell user that massages cannot reference schema types, but elements, in document/literal binding type. Nevertheless, the NPE was fixed already. It was thrown, since the implementation class created for "WS from WSDL" was changed after web method was added.