On Sat, May 30, 2009 at 8:23 AM, Peng Han <han.p...@fernuni-hagen.de> wrote:
> Hi,
>
> Is there anyone who have experience to wire a reference in an component with
> Widget implementation
> to a service from a component implemented by BPEL? I use .ws binding on both
> side with a .ws interface.

Implementation Widget is currently only supporting HTTP, JSON-RPC and
ATOM bindings, and based on your scenario, you might want to change
the ws binding to json-rpc.

> The build is successful but when invoking the service in the widget, the
> program seems to be stuck there.
>

That seems right, as the widget implementation won' t know how to
generate JS Proxies for references using ws binding.

> The composite file is as follows:
>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
>
> xmlns:hns="http://tuscany.apache.org/implementation/bpel/example/helloworld";
>   xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; name="helloworld"
>   targetNamespace="http://bpel";>
>   <component name="BPELHelloWorldComponent">
>       <implementation.bpel process="hns:HelloWorld" />
>       <service name="helloPartnerLink">
>           <interface.wsdl
>
> interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
> />
>           <binding.ws />
>       </service>
>   </component>
>   <component name="RegistrationWidgetComponent">
>       <tuscany:implementation.widget location="Registration.html" />
>       <service name="Widget">
>           <tuscany:binding.http uri="http://localhost:8080/Registration"; />
>       </service>
>       <reference name="RegistrationReference">
>           <interface.wsdl
>
> interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
> />
>           <binding.ws uri="http://localhost:8080/BPELHelloWorldComponent"; />
>       </reference>
>   </component>
>   <service name="RegistrationService"
> promote="RegistrationWidgetComponent/Widget" />
>   <wire source="RegistrationWidgetComponent/RegistrationReference"
>       target="BPELHelloWorldComponent/helloPartnerLink" />
> </composite>
>
>
>

Looks like you are using our bpel helloworld sample, so I'd recommend
exposing the service from BPELHelloWorldComponent using json-rpc and
then creating a widget referencing it.

Please let me know if you can make progress this way, otherwise I
could take a look in the next couple days.


-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to