This discussion is archived
0 Replies Latest reply: Mar 3, 2010 11:01 PM by 843830 RSS

Namespace problem in BPEL copy operation

843830 Newbie
Currently Being Moderated
I'm a bit confused about the assign/copy operations in the BPEL standard. The problem concerns namespaces in my XML (which I am trying to assign), more particularly: the resulting XML after the assign/copy operation contains namespaces defined in the 2 WSDL-files which define the contract of the in-out of the assign. I tried 3 assign scenarios:
1) Copy from variable part to variable part:
            <from variable="SoapMetaDataInReceive" part="milieuverslag"/>
            <to variable="XsltVmmMetaDataInvokeOut" part="milieuverslag"/>
2) Copy sub-tag to sub-tag:
3) Copy leaf-node to leaf-node: (which works but is not workable, see below)
The resulting XML of the 3 scenarios is as follows:
1) The first scenario infects the sub-tags MilieuVerslagMetaData, IdentificatieMetaData and AangiftenMetaData with 2 namespaces from the wsdl files:
<Milieuverslag xmlns="" xmlns:n1="" xmlns:xsi="">
  <IdentificatieMetaData xmlns:arc="" xmlns:msgns="" xmlns:ns0="">
    <RapporteringsJaar>2017</RapporteringsJaar> ...
2) The second scenario results in the same xml as the first scenario
3) The third scenario results in the desirable xml without the extra namespaces:
<Milieuverslag xmlns="" xmlns:n1="" xmlns:xsi="">
<MilieuVerslagMetaData> ...
This last scenario is not workable since I don't want to map the 3 kazillion leaf nodes from the output-side to the input-side.

The namespace-problem probably has something to do with the XSD-import statements that are to be found in the XSD of the Milieuverslag type (which is imported in the 2 WSDL-files): the tags MilieuVerslagMetaData, IdentificatieMetaData and AangiftenMetaData are imported, not included.

My question is if someone has any idea to which documentation I should be looking (the BPEL 2.0 standard is not clear on this topic, nothing of the sort is explained in the BPEL-section of OpenESB)? Or if someone could explain why I get this behaviour, would be even nicer!