Hi Simon

That worked great thanks. Only the store tutorial seems to be
distributed with 1.6.2 - not sure if this was an oversight?

Also one more quick question - is there a way to register interceptors
with tuscany infrastructure, to be informed when messages are passed
from bindings to components, components to components and back out
again? Can't find any documentation on such a feature.

Regards
Gary

On Wed, May 25, 2011 at 1:21 PM, Simon Laws <[email protected]> wrote:
> On Wed, May 25, 2011 at 12:13 PM, Gary Brown <[email protected]> wrote:
>> Hi
>>
>> I am trying to modify the helloworld-bpel example so that it just uses
>> the WSDL interface directly, using the helloworld-ws-service as an
>> example of how to configure the wsdl.
>>
>> The composite definition is:
>>
>> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
>>
>>        targetNamespace="http://bpel";
>>
>>    
>> xmlns:hns="http://tuscany.apache.org/implementation/bpel/example/helloworld";
>>
>>    name="bpel">
>>
>>
>>
>>    <component name="BPELHelloWorldComponent">
>>
>>        <implementation.bpel process="hns:HelloWorld"/>
>>
>>            <service name="HelloService">
>>
>>                <interface.wsdl
>> interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
>> />
>>
>>                <binding.ws uri="http://localhost:8085/HelloService"/>
>>
>>            </service>
>>
>>    </component>
>>
>>
>> </composite>
>>
>>
>> I copied the HelloWorldServer app from the helloworld-ws-service to
>> start a server for this service, and the output when I run it is:
>>
>>     [java] May 25, 2011 12:00:27 PM
>> org.apache.tuscany.sca.node.impl.NodeImpl <init>
>>     [java] INFO: Creating node: helloworld.composite
>>     [java] May 25, 2011 12:00:27 PM
>> org.apache.tuscany.sca.node.impl.NodeImpl configureNode
>>     [java] INFO: Loading contribution:
>> file:/home/gbrown/NotBackedUp/evaluation/apache/tuscany-sca-1.6.2/samples/helloworld-bpel2/target/classes/
>>     [java] May 25, 2011 12:00:28 PM
>> org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
>>     [java] WARNING: Service not found for component service:
>> Component = BPELHelloWorldComponent Service = HelloService
>>     [java] May 25, 2011 12:00:28 PM
>> org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
>>     [java] WARNING: Service not found for component service:
>> Component = BPELHelloWorldComponent Service = HelloService
>>     [java] May 25, 2011 12:00:28 PM
>> org.apache.tuscany.sca.node.impl.NodeImpl start
>>     [java] INFO: Starting node: helloworld.composite
>>     [java] May 25, 2011 12:00:28 PM
>> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl activate
>>     [java] WARNING: Skipping component service not defined in the
>> component type: BPELHelloWorldComponent#HelloService
>>     [java] Completed calling new Process deployment code...
>>     [java] HelloWorld server started (press enter to shutdown)
>>
>> It doesn't list the web service URL, as in the helloworld-ws-service,
>> so I guess the WS is not being initialised.
>>
>> Is the "WARNING: Service not found for component service: Component =
>> BPELHelloWorldComponent Service = HelloService" message because I
>> don't generate the java (SDO?) classes? Is this a necessary step even
>> if I want to just have a WSDL interface directly route soap messages
>> to the BPEL process? Or have I missed some configuration?
>>
>> Thanks in advance for any pointers.
>>
>> Regards
>> Gary
>>
>
> Hi Gary
>
> The warning means that the runtime can't match the name of the service
> defined in the composite file (HelloService in you code) with the
> partner links that are defined for the BPEL process. For example, in
> the travel sample [1] we have...
>
>    <component name="Payment">
>        <implementation.bpel process="pp:Payment"/>
>        <service name="paymentPartnerLink">
>            <interface.wsdl
> interface="http://www.tuscanyscatours.com/Payment/#wsdl.interface(Payment)"
> />
>            <binding.ws uri="http://localhost:8080/Payment";
> wsdlElement="http://www.tuscanyscatours.com/Payment/#wsdl.service(PaymentService)"/>
>        </service>
>        <reference name="creditCardPaymentPartnerLink">
>            <binding.ws uri="http://localhost:8082/CreditCardPayment"/>
>        </reference>
>        <reference name="emailGatewayPartnerLink">
>            <binding.ws uri="http://localhost:8088/EmailGateway"/>
>        </reference>
>    </component>
>
> which matches the partner links from the BPEL process
>
>   <partnerLinks>
>      <partnerLink name="paymentPartnerLink"
> partnerLinkType="pp:PaymentLinkType" myRole="forward" />
>      <partnerLink name="creditCardPaymentPartnerLink"
> partnerLinkType="ccp:CreditCardPaymentLinkType" partnerRole="forward"
> initializePartnerRole="yes" />
>      <partnerLink name="emailGatewayPartnerLink"
> partnerLinkType="eg:EmailGatewayLinkType" partnerRole="forward"
> initializePartnerRole="yes" />
>   </partnerLinks>
>
> Hope that helps.
>
> [1] 
> http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/
>
> Regards
>
> Simon
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>

Reply via email to