You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Nagendra Bhangur <na...@gmail.com> on 2011/02/01 19:29:29 UTC

Apache Synapse2.0 integration with Apache Tuscany1.6.1 services

Hi,

I'm trying to invoke a web service that has been deployed using Apache
Tuscany 1.6.1(http://tuscany.apache.org/home.html) using the following
definition within Apache Synapse 2.0:

<definitions xmlns="http://ws.apache.org/ns/synapse"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://ws.apache.org/ns/synapse
http://synapse.apache.org/ns/2010/04/configuration/synapse_config.xsd">
    <sequence name="main">
        <!-- filtering of messages with XPath and regex matches -->
        <filter source="get-property('To')" regex=".*/CreateSCO*">
            <then>
                <send>
                    <endpoint>
                        <address uri="
http://localhost:8085/SalesCoverageRuleService"/<http://localhost:8085/SalesCoverageRuleService%22/>
>
                    </endpoint>
                </send>
                <drop/>
            </then>
        </filter>
        <send/>
    </sequence>
</definitions>

Both Synapse and Tuscany are running on the localhost at ports 8020 and 8085
respectively. My question is if there is an easier way tp have Synapse
delegate call to the Tuscany service or one has to create an axis2 service
client as described in the StockQuote samples on the Synapse site(
http://synapse.apache.org/Synapse_Samples.html). Please point me to a
working sample if available,

Cheers
NGB