Community
Participate
Working Groups
When I'm editing the targetnamespace, the links between the wsdl components are broken (for example binding A references portype B). I'm using the following to set the tns. We need to investigate to determine what the proper way is to set the targetnamespace: if (targetNamespacePrefix != null) { Element element = definition.getElement(); // Remove the old prefix String oldPrefix = definition.getPrefix(definition.getTargetNamespace()); element.removeAttribute("xmlns:"+oldPrefix); // Set the new prefix element.setAttribute("xmlns:" + targetNamespacePrefix, definition.getTargetNamespace()); } if (targetNamespace != null) { String newValue = targetNamespace; String prefix = definition.getPrefix(definition.getTargetNamespace()); definition.setTargetNamespace(newValue); definition.getElement().setAttribute("xmlns:" + prefix, newValue); }
*** Bug 203257 has been marked as a duplicate of this bug. ***
Created attachment 96337 [details] Proposed patch and JUnit
Patch committed for WTP 3.0 builds > v200804161630.
Verified with I20080423080648.
Closing.