You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Raidwan <Ra...@hotmail.com> on 2010/03/16 16:03:38 UTC

ODE jbi / ServiceMix :Assign remove attributes

Hi,

Context: Using ServiceMix 3.2.3 (in console mode with Tomcat 6+Jre 1.5), ODE
jbi 1.3.3

I have some problems with ODE jbi in servicemix, one of them is t on an
assignment:
I copy a literal string in a string variable like this: (sbt: is linked to
the "http://www.raid.com/ServiceBus/Type" namespace also declared in the
bpel process tag. I also need to put sbt prefix else a prefix is get from
the default xmlns of current process tag...)
<copy>
 <from>
    <literal>
    <callMethodRequest xmlns="http://www.raid.com/ServiceBus/Type">
        <sbt:methodName>TEST</sbt:methodName>
        <sbt:parameters>
            <parameter name="MYFISRTPARAM" type="struct">
                
                
            </parameter>
        </sbt:parameters>
    </callMethodRequest>
  </literal>
  </from>
  <to>$CallMethodIn.query</to>
</copy>

CallMethodIn.query is a string type

now i'm trying to update the "object" tag by putting a value in it, i tried
this :
<copy>
    <from>'newID'</from>
    <to variable="CallMethodIn" >
<query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">//sbt:object[@name
='ID']</query>
    </to>
</copy>

There is no error but the result is :
<callMethodRequest xmlns="http://www.raid.com/ServiceBus/Type">
        <sbt:methodName>TEST</sbt:methodName>
        <sbt:parameters>
            <parameter name="MYFISRTPARAM" type="struct">
                newID</from>
                
            </parameter>
        </sbt:parameters>
    </callMethodRequest>

i lost my attributes !
i also tried with //sbt:object[@name ='ID']/node() but here i got an
error...

Is there any way to add a value without removing the attributes ?

Thanks for help,

Raid

-- 
View this message in context: http://old.nabble.com/ODE-jbi---ServiceMix-%3AAssign-remove-attributes-tp27919276p27919276.html
Sent from the Apache Ode User mailing list archive at Nabble.com.