diff options
Diffstat (limited to 'sca-cpp/trunk/modules/edit/apps/testsearch/app.composite')
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testsearch/app.composite | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/testsearch/app.composite b/sca-cpp/trunk/modules/edit/apps/testsearch/app.composite new file mode 100644 index 0000000000..3170a1a726 --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/testsearch/app.composite @@ -0,0 +1,193 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1" targetNamespace="http://testsearch" name="testsearch"> + <service name="googlesearch" promote="googlesearch"/> + <component t:x="72" t:y="31" name="googlesearch" t:title="google search" t:color="red1"> + <t:implementation.python script="nuvem/gsearch.py"/> + <service name="googlesearch"/> + <reference target="text" name="query"/> + <reference name="s" t:visible="false"> + <t:binding.http uri="http://ajax.googleapis.com/ajax/services/search/web"/> + </reference> + </component> + <component t:x="173" t:y="31" name="text" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>apache+tuscany</property> + </component> + <service name="weather" promote="weather"/> + <component t:x="76" t:y="95" name="weather" t:title="weather" t:color="red1"> + <t:implementation.python script="nuvem/gweather.py"/> + <service name="weather"/> + <reference target="number" name="zip"/> + <reference name="ws" t:visible="false"> + <t:binding.http uri="http://www.google.com/ig/api"/> + </reference> + </component> + <component t:x="141" t:y="95" name="number" t:title="number" t:color="orange1"> + <t:implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>94070</property> + </component> + <service name="weather2" promote="weather2"/> + <component t:x="76" t:y="162" name="weather2" t:title="weather" t:color="red1"> + <t:implementation.python script="nuvem/gweather.py"/> + <service name="weather"/> + <reference target="text2" name="zip"/> + <reference name="ws" t:visible="false"> + <t:binding.http uri="http://www.google.com/ig/api"/> + </reference> + </component> + <component t:x="141" t:y="162" name="text2" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>94070</property> + </component> + <service name="get" promote="get"/> + <component t:x="77" t:y="234" name="get" t:title="http get" t:color="green1"> + <implementation.cpp path="lib/http" library="libhttpget"/> + <service name="get"/> + <reference target="text3" name="url"/> + </component> + <component t:x="141" t:y="234" name="text3" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap%20&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318%20&markers=color:red|color:red|label:C|40.718217,-73.998284&sensor=false</property> + </component> + <service name="googlemap" promote="googlemap"/> + <component t:x="77" t:y="307" name="googlemap" t:title="google map" t:color="red1"> + <t:implementation.python script="nuvem/gmap.py"/> + <service name="googlemap"/> + <reference target="list2" name="locations"/> + <reference name="s" t:visible="false"> + <t:binding.http uri="http://maps.google.com/maps/api/staticmap"/> + </reference> + </component> + <service name="googlemap2" promote="googlemap2"/> + <component t:x="79" t:y="530" name="googlemap2" t:title="google map" t:color="red1"> + <t:implementation.python script="nuvem/gmap.py"/> + <service name="googlemap"/> + <reference target="list3" name="locations"/> + <reference name="s" t:visible="false"> + <t:binding.http uri="http://maps.google.com/maps/api/staticmap"/> + </reference> + </component> + <component t:x="218" t:y="529" name="pair2" t:title="pair" t:color="yellow1"> + <t:implementation.python script="nuvem/pair.py"/> + <service name="pair"/> + <reference target="name2" name="name"/> + <reference target="pair4" name="value"/> + </component> + <component t:x="256" t:y="530" name="name2" t:title="name" t:color="orange1"> + <t:implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>A</property> + </component> + <component t:x="219" t:y="596" name="pair3" t:title="pair" t:color="yellow1"> + <t:implementation.python script="nuvem/pair.py"/> + <service name="pair"/> + <reference target="name3" name="name"/> + <reference target="pair5" name="value"/> + </component> + <component t:x="254" t:y="594" name="name3" t:title="name" t:color="orange1"> + <t:implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>B</property> + </component> + <component t:x="300" t:y="391" name="number3" t:title="number" t:color="orange1"> + <t:implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>-122.260526</property> + </component> + <component t:x="260" t:y="553" name="pair4" t:title="pair" t:color="yellow1"> + <t:implementation.python script="nuvem/pair.py"/> + <service name="pair"/> + <reference target="text7" name="name"/> + <reference target="text5" name="value"/> + </component> + <component t:x="294" t:y="558" name="text7" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>yellow</property> + </component> + <component t:x="254" t:y="658" name="pair5" t:title="pair" t:color="yellow1"> + <t:implementation.python script="nuvem/pair.py"/> + <service name="pair"/> + <reference target="text8" name="name"/> + <reference target="text6" name="value"/> + </component> + <component t:x="303" t:y="659" name="text8" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>green</property> + </component> + <component t:x="294" t:y="586" name="text5" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>San+Francisco,+CA</property> + </component> + <component t:x="294" t:y="686" name="text6" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>San+Carlos,+CA</property> + </component> + <component t:x="166" t:y="530" name="list3" t:title="list" t:color="yellow1"> + <t:implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="pair2" name="item" t:clonable="true"/> + <reference target="pair3" name="item" t:clonable="true"/> + <reference name="item" t:clonable="true"/> + </component> + <component t:x="252" t:y="307" name="name" t:title="name" t:color="orange1"> + <t:implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>A</property> + </component> + <component t:x="300" t:y="335" name="text4" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>green</property> + </component> + <component t:x="212" t:y="307" name="pair" t:title="pair" t:color="yellow1"> + <t:implementation.python script="nuvem/pair.py"/> + <service name="pair"/> + <reference target="name" name="name"/> + <reference target="list" name="value"/> + </component> + <component t:x="252" t:y="335" name="list" t:title="list" t:color="yellow1"> + <t:implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="text4" name="item" t:clonable="true"/> + <reference target="number2" name="item" t:clonable="true"/> + <reference target="number3" name="item" t:clonable="true"/> + <reference name="item" t:clonable="true"/> + </component> + <component t:x="300" t:y="363" name="number2" t:title="number" t:color="orange1"> + <t:implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>37.507156</property> + </component> + <component t:x="164" t:y="307" name="list2" t:title="list" t:color="yellow1"> + <t:implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="pair" name="item" t:clonable="true"/> + <reference name="item" t:clonable="true"/> + </component> +</composite> |