xmlns="" is the solution. If you don't want to do this, just declare a
bpel or bpws prefix for process and nothing to empty prefix.
So you will have something like this:

       <bpws:assign name="assign1" validate="yes">
            <bpws:copy>
                <bpws:from variable="inVar" part="parameters">
                     ...
                </bpws:from>
                <bpws:to variable="tmpVar"/>
            </bpws:copy>

Regards

On 17 March 2010 09:50, Raidwan <[email protected]> wrote:
>
> Hi,
>
> I am currently working on a BPEL project in a specific context (Servicemix
> 3.2.3 (on console mode with tomcat 6/jdk 1.5) / ODE jbi 1.3.3), but my
> question is not due of my context.
>
> I want to manipulate xml message without namespace (xmlns) in BPEL, by
> executing XPATH query.
> When i assign a literal xml value to a variable, if i don't specify a
> namespace, ODE engine put the namespace of the process.
> Example:
> <copy>
>    <from>
>        <literal>
>            <callMethodRequest>
>                <methodName>MyFunction</methodName>
>                <parameters>
>                    <parameter name="IN" type="struct">
>
>
>
>                    </parameter>
>                </parameters>
>            </callMethodRequest>
>        </literal>
>    </from>
>    <to>$CallMethodIn.query</to>
> </copy>
>
> became (extract from log):
> ASSIGN | org.apache.ode.bpel.runtime.ASSIGN   188 | Evaluating FROM
> expression "{Literal...
> <message><query><callMethodRequest
> xmlns="http://www.raid.com/ServiceBus/Type";>
>    <methodName
> xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>MyFunction</methodName>
>    <parameters
> xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>
>        <parameter name="IN" type="struct">
>
>
>
>        </parameter>
>    </parameters>
> </callMethodRequest></query></message>
>
>
> The callMethodRequest is in rigth namespace (as specify in my wsdl) but my
> question is why the methodName and parameters tags took the default
> namespace ?
> Is there any way to prevent this ?
> My solution was to specify an xmlns="" on these tags... but that's not
> really nice...
>
> Thanks for help.
> --
> View this message in context: 
> http://old.nabble.com/ASSIGN---copy---literal-without-namespace%2C-not-possible---tp27928228p27928228.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>

Reply via email to