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 the tag it creats <process name="BP1" targetNamespace="http://enterprise.netbeans.org/bpel/BP1" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:wsdlNS="http://enterprise.netbeans.org/bpel/BP1" xmlns:ns1="http://j2ee.netbeans.org/wsdl/PTwithTwoOperations"> 1. Default namespace of this document is "http://docs.oasis- open.org/wsbpel/2.0/process/executable", why same namespace needs to be associated with "bpws" prefix? 2. targetNamespace of the document is assoicated with "wsdlNS", it is misleading. Can it be assoicated with something intutive? say "tns".
One more issue, each prefix showing up on its own line would improve readability.
It seems there was another issue about showing up prefixes on its own lines and now it is already fixed. I agree that it worth to specify the "tns" prefix by default for the targetNamespace. Also I suppose such specific prefix can be assigned by the user in the "New BPEL Process" wizard.
Fixed.
Thanks for fixing the issue. There is one more glitch. When I add additional name space, in this case "http://j2ee.netbeans.org/wsdl/newWSDL" it is added in the same line as xmlns:tns="http://enterprise.netbeans.org/bpel/BpelModule1/newProcess". It should be in separate line for readability. Please keep prefix definitions on a line by itself. <process name="newProcess" targetNamespace="http://enterprise.netbeans.org/bpel/BpelModule1/newProcess" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://enterprise.netbeans.org/bpel/BpelModule1/newProcess" xmlns:ns1="http://j2ee.netbeans.org/wsdl/newWSDL"> <import namespace="http://j2ee.netbeans.org/wsdl/newWSDL" location="newWSDL.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="PartnerLink1" partnerLinkType="ns1:newWSDL1" myRole="newWSDLPortTypeRole"/> </partnerLinks> <sequence> </sequence> </process>
Because of the modifications aren't performed directly to the text of XML source, but rather with the help of XAM API, it is the responsibility of that module. Just because of it I marked this issue as a duplicate of the issue #92272. Unfortunatelly that issue is an enhancement and has P3 priority. Please increase the priority of that issue if you consider this glitch so critical. *** This issue has been marked as a duplicate of 92272 ***