You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Waruna Ranasinghe <wa...@gmail.com> on 2009/10/02 11:06:56 UTC

Using insertMissingToData in

Hi all,
I tried "insertMissingToData" as shown below

        <assign name="Assign1">
            <copy insertMissingToData="yes">
                <from>$inputVar.inputType/ns2:paramA</from>
                <to>$inputHelloVar.parameters/child::ns4:args0</to>
            </copy>
        </assign>

But it still throws the following exception
        selectionFailure: No results for expression: {OXPath10Expression
$inputHelloVar.parameters/child::ns4:args0}

I wonder whether I can use this to auto initialize variables with message
parts?
Any help to resolve the issue??

The following is the working code for above scenario using manual
initialization
    <assign name="init1">
        <copy>
            <from>
                <literal xml:space="preserve">
                    <tns:sayHello xmlns:tns="http://ws.apache.org/axis2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                      <tns:args0></tns:args0>
                    </tns:sayHello>
                </literal>
            </from>
            <to>$inputHelloVar.parameters</to>
        </copy>
    </assign>

        <assign name="Assign1">
            <copy>
                <from>$inputVar.inputType/ns2:paramA</from>
                <to>$inputHelloVar.parameters/ns4:args0</to>
            </copy>
        </assign>


Thanks,
Waruna

-----------------------------------------------------
Regards,
Waruna Ranasinghe
BLOG: http://warunapw.blogspot.com