You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by phan le sang <ph...@gmail.com> on 2009/04/15 13:54:37 UTC

Synatx error with generated bpel code

Dear all,
I've just create a bpel project step by step as guided here
http://www.se.uni-hannover.de/lehre/tutorials/BPEL-ODE-Eclipse-Getting-Started.php.
But eclipse notified some errors for the HelloWorld.bpel file.
These error messages are 'The from-spec of "<complexType>" is not compatible
with to-
 spec of "<complexType>"', 'XPath expression "tns:input" in <tns:input> is
not a
 LocationPath expression.', 'XPath expression "tns:result" in <tns:result>
is not a
 LocationPath expression.'
And here is the code fragment:
<bpel:copy>
                <bpel:from part="payload" variable="input">
                    <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:input]]></bpel:query>
                </bpel:from>
                <bpel:to part="payload" variable="output">
                    <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
                </bpel:to>
            </bpel:copy>

Would you please help me out!
Best Regards.
Sang

Re: Synatx error with generated bpel code

Posted by Daniel Luebke <da...@inf.uni-hannover.de>.
Hi Sang,

how does your WSDL look like? If you revisit point 14 of the tutorial,
does your screen look like the screenshot? Especially the types (string
and string for both input and result)?

Daniel

phan le sang schrieb:
> Dear all,
> I've just create a bpel project step by step as guided here
> http://www.se.uni-hannover.de/lehre/tutorials/BPEL-ODE-Eclipse-Getting-Started.php.
> But eclipse notified some errors for the HelloWorld.bpel file.
> These error messages are 'The from-spec of "<complexType>" is not compatible
> with to-
>  spec of "<complexType>"', 'XPath expression "tns:input" in <tns:input> is
> not a
>  LocationPath expression.', 'XPath expression "tns:result" in <tns:result>
> is not a
>  LocationPath expression.'
> And here is the code fragment:
> <bpel:copy>
>                 <bpel:from part="payload" variable="input">
>                     <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:input]]></bpel:query>
>                 </bpel:from>
>                 <bpel:to part="payload" variable="output">
>                     <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
>                 </bpel:to>
>             </bpel:copy>
>
> Would you please help me out!
> Best Regards.
> Sang
>
>   


Re: Synatx error with generated bpel code

Posted by ratha <ra...@wso2.com>.
Hi,
Have you assigned the 'Process response' to your output variable?
-Ratha.
phan le sang wrote:
> Dear all,
> I've just create a bpel project step by step as guided here
> http://www.se.uni-hannover.de/lehre/tutorials/BPEL-ODE-Eclipse-Getting-Started.php.
> But eclipse notified some errors for the HelloWorld.bpel file.
> These error messages are 'The from-spec of "<complexType>" is not compatible
> with to-
>  spec of "<complexType>"', 'XPath expression "tns:input" in <tns:input> is
> not a
>  LocationPath expression.', 'XPath expression "tns:result" in <tns:result>
> is not a
>  LocationPath expression.'
> And here is the code fragment:
> <bpel:copy>
>                 <bpel:from part="payload" variable="input">
>                     <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:input]]></bpel:query>
>                 </bpel:from>
>                 <bpel:to part="payload" variable="output">
>                     <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
>                 </bpel:to>
>             </bpel:copy>
>
> Would you please help me out!
> Best Regards.
> Sang
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.238 / Virus Database: 270.11.57/2060 - Release Date: 04/15/09 06:34:00
>
>