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.
This is related to tickets 153080 and 153081. When a WSDL is deleted from the TransformMap tree, the import line is removed from the source, but the WSDL and its namespace prefix remains as an attribute of the transformmap node in the source. If the user tries to add the same WSDL back under the Imports node, the problem reported in 153081 appears. Apparently, the WSDL remaining as an attribute does no harm other than the prefix conflict which could be easily avoided by using different prefixes. However, for consistency, I think it would be best to also remove the deleted WSDL from the attributes for the transformmap node in the source.
Keyword NO65 added.
It is mostly enhancement because in general case the declared prefix:namespace could be used in different places e.g. as param literal xml content namespaces e.c. The workaround - use Undo action - it removes added import and newly added prefix:namespace declaration.