Dear Resende:
I tried to access the links you provided but it seems that it was
broken. Would you please check it?
Also I would like to ask whether it is possible to consume a service
provided by a .bpel implemented component
from a component implemented as widget and how. I tried to do it in the
following composite but the program
seems stuck when invoking the service.
Thanks a lot!
the composite 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
uri="http://localhost:8080/BPELHelloWorldComponent" />
</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>
Best Regards
P.Han
This is demonstrated in the following bpel-reference iTest [1]. In
this case, we have a grretings java component, and then a BPEL
component that have a reference to this service as described in the
composite below.
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://bpel"
xmlns:hns="http://helloworld"
name="helloworld">
<component name="HelloWorldService">
<implementation.bpel process="hns:HelloWorld"/>
<reference name="greetingsPartnerLink"
target="GreetingsServiceComponent"/>
</component>
<component name="GreetingsServiceComponent">
<implementation.java class="greetings.GreetingsServiceImpl" />
<service name="GreetingsService">
<interface.wsdl
interface="http://greetings#wsdl.interface(Greetings)" />
</service>
</component>
</composite>
Please let me know if you have questions or any problems running the
sample test scenario.
[1]
https://svn.apache.org/repos/asf/tuscany/java/sca/itest/bpel/helloworld-reference/
On Thu, Aug 28, 2008 at 8:21 PM, xuhongbo <[email protected]> wrote:
Hi
Now I am using the sca provided build in bpel engine, and want to
invoke another sca-component in the bpel process;
Though I could deploy the -java-implement sca component as
web-service by ws binding,then access it in bpel by import a wsdl process.
This way ask for all sca-java-componet deployed as web-service, and seems
too trival for deployment.
So does anyone know how to use a sca-reference in a BPEL implement
component to access another sca component? Or some other mechanism can
direct access sca-component? Typically sca component invoked by the bpel is
always implement as Java Language.
Thanks