[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.bpel-designer] Re: xpath problem in a simple assign operation

herve wrote:

Hi,
I have got a problem with the bpel designer.
I created a default synchronous bpel process.
I just added an assign to set the output result with a sample data string like "sample". I deployed on apache ode.

In the asign property, i tried $output.payload/tns:result
and /tns:result

in both cases when i tested, i have such errors:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";;>
- <soapenv:Body>
- <soapenv:Fault xmlns:soapenv="http://docs.oasis-open.org/wsbpel/2.0/process/executable";;>
<faultcode>soapenv:selectionFailure</faultcode>


<faultstring>{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
No results for expression: {OXPath10Expression $output.payload/tns:result}</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

If anyone has a solution, the good query to put, please tell me.

The copy part of the bpel file:
<bpws:assign name="Assign" validate="yes">
<bpws:copy>
<bpws:from>
<bpws:literal>sample</bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="output">
<bpws:query


queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[$output.payload/tns:result]]></bpws:query>
</bpws:to>
</bpws:copy>
</bpws:assign>


Hi,

  I faced the same problem, you can try to rewrite the "to" as following.

<bpws:to part="payload" variable="output">
<bpws:query


queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[$output.payload/tns:result]]></bpws:query>
</bpws:to>

<bpws:to part="payload" variable="output" query="/tns:result"/>

Anyway, I don't want to be like that... everytime do it manually... anybody can help?