Hi JB,
I guess you still want to prefix your input with 'Hello, ', right? Could
you try this one?
<bpws:assign name="Assign" validate="no">
<bpws:copy>
<bpws:from>
<bpws:literal><tns:result/></bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="output"/>
</bpws:copy>
<bpws:copy>
<bpws:from><![CDATA[concat("Hello, ",
$input.payload/tns:input)]]></bpws:from>
<bpws:to part="payload" variable="output">
<bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
</bpws:to>
</bpws:copy>
</bpws:assign>
To initialize a variable the <to> part of a <copy> must be either only
the variable or both, variable and part - but not a query part. When the
variable has not been initialized yet a query will always fail because
the variable is nullish.
Best regards,
Tammo
JB wrote:
Hi Tammo,
I added to the bpel file the following statement but I still get the
same error message: Error: Assignment Fault:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=21,faultExplanation=No
results for expression: {OXPath10Expression /tns:result}
<bpws:assign name="Assign" validate="no"> <bpws:copy> <bpws:from
part="payload" variable="input"> <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:input]]></bpws:query>
</bpws:from> <bpws:to part="payload" variable="output"> <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
</bpws:to> </bpws:copy> <bpws:copy>
<bpws:from><![CDATA[concat("Hello, ",
$output.payload/tns:result)]]></bpws:from> <bpws:to part="payload"
variable="output"> <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
</bpws:to> </bpws:copy> </bpws:assign>
regards, JB
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
Sie“s mit dem neuen Yahoo! Mail. www.yahoo.de/mail