xpath problem in a simple assign operation [message #9926] |
Thu, 11 October 2007 09:05  |
Eclipse User |
|
|
|
Originally posted by: kehops31.hotmail.fr
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}se lectionFailure
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>
|
|
|
Re: xpath problem in a simple assign operation [message #11163 is a reply to message #9926] |
Wed, 15 October 2008 12:56  |
Eclipse User |
|
|
|
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}se lectionFailure
> 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?
|
|
|
Powered by
FUDForum. Page generated in 0.02859 seconds