Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0
-
None
-
ServiceMix
Description
The following element was constructed by an XQuery expression:
<sref:service-ref xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
<wsa:EndpointReference xmlns:pp="http://some-namespace" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
<wsa:Metadata>
<Service EndpointName="MyEndpoint">pp:SomeProxy</Service>
</wsa:Metadata>
</wsa:EndpointReference>
</sref:service-ref>
However, when the value is set on the partner link, it appears to have lost its namespace declarations and attributes.
<service-ref xmlns="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
<EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
<Metadata>
<Service>pp:SomeProxy</Service>
</Metadata>
</EndpointReference>
</service-ref>
- Notice that //Service/@EndpointName is now missing
- Notice that xmlns:pp="http://some-namespace" is now missing
This appears to be coming from DOMUtils.cloneNode(Document,Node). The code there does not consider the attributes or namespace declarations for the an element being cloned.