summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/apps/testsearch/app.composite
blob: 3846266b740f9bf4c5c918e4a74da89f6b5dc70e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?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" name="app" targetNamespace="http://app">
 <service name="bingsearch" promote="bingsearch"/>
 <service name="get" promote="get"/>
 <service name="googlemap" promote="googlemap"/>
 <service name="googlemap2" promote="googlemap2"/>
 <service name="googlesearch" promote="googlesearch"/>
 <service name="weather" promote="weather"/>
 <service name="weather2" promote="weather2"/>
 <service name="yahoosearch" promote="yahoosearch"/>
 <component t:x="336" t:y="48" name="bingsearch" t:title="bing" t:color="red1">
  <t:implementation.python script="nuvem/bsearch.py"/>
  <service name="bingsearch"/>
  <reference target="text10" name="query"/>
  <reference name="s" t:visible="false">
   <t:binding.http uri="http://www.bing.com/search"/>
  </reference>
 </component>
 <component t:x="20" t:y="300" name="get" t:title="get" t:color="green1">
  <implementation.cpp path="lib/http" library="libhttpget"/>
  <service name="get"/>
  <reference target="text3" name="url"/>
 </component>
 <component t:x="347" t:y="106" 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>
 <component t:x="15" t:y="96" 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="18" t:y="0" name="googlesearch" t:title="google" 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 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 name="list2" t:title="list" t:color="yellow1">
  <t:implementation.python script="nuvem/list_.py"/>
  <service name="list"/>
  <reference target="property" name="item" t:clonable="true"/>
  <reference name="item" t:clonable="true"/>
 </component>
 <component name="list3" t:title="list" t:color="yellow1">
  <t:implementation.python script="nuvem/list_.py"/>
  <service name="list"/>
  <reference target="property2" name="item" t:clonable="true"/>
  <reference target="property3" name="item" t:clonable="true"/>
  <reference name="item" t:clonable="true"/>
 </component>
 <component name="number" t:title="#" t:color="orange1">
  <t:implementation.python script="nuvem/number.py"/>
  <service name="number"/>
  <property>94070</property>
 </component>
 <component name="number2" t:title="#" t:color="orange1">
  <t:implementation.python script="nuvem/number.py"/>
  <service name="number"/>
  <property>37.507156</property>
 </component>
 <component name="number3" t:title="#" t:color="orange1">
  <t:implementation.python script="nuvem/number.py"/>
  <service name="number"/>
  <property>-122.260526</property>
 </component>
 <component 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 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 name="property" t:title="{propval} :" t:color="orange1">
  <t:implementation.python script="nuvem/assoc.py"/>
  <service name="property"/>
  <reference target="list" name="value"/>
  <property>A</property>
 </component>
 <component name="property2" t:title="{propval} :" t:color="orange1">
  <t:implementation.python script="nuvem/assoc.py"/>
  <service name="property"/>
  <reference target="pair4" name="value"/>
  <property>A</property>
 </component>
 <component name="property3" t:title="{propval} :" t:color="orange1">
  <t:implementation.python script="nuvem/assoc.py"/>
  <service name="property"/>
  <reference target="pair5" name="value"/>
  <property>B</property>
 </component>
 <component name="text" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>apache tuscany</property>
 </component>
 <component name="text10" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>apache tuscany</property>
 </component>
 <component name="text2" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>94070</property>
 </component>
 <component name="text3" t:title=" '{propval}'" 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&amp;zoom=14&amp;size=512x512&amp;maptype=roadmap%20&amp;markers=color:blue|label:S|40.702147,-74.015794&amp;markers=color:green|label:G|40.711614,-74.012318%20&amp;markers=color:red|color:red|label:C|40.718217,-73.998284&amp;sensor=false</property>
 </component>
 <component name="text4" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>green</property>
 </component>
 <component name="text5" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>San Francisco, CA</property>
 </component>
 <component name="text6" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>San Carlos, CA</property>
 </component>
 <component name="text7" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>yellow</property>
 </component>
 <component name="text8" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>green</property>
 </component>
 <component name="text9" t:title=" '{propval}'" t:color="orange1">
  <t:implementation.python script="nuvem/text.py"/>
  <service name="text"/>
  <property>apache tuscany</property>
 </component>
 <component t:x="18" t:y="49" 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="190" t:y="51" 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="204" t:y="5" name="yahoosearch" t:title="yahoo" t:color="red1">
  <t:implementation.python script="nuvem/ysearch.py"/>
  <service name="yahoosearch"/>
  <reference target="text9" name="query"/>
  <reference name="s" t:visible="false">
   <t:binding.http uri="http://search.yahooapis.com/WebSearchService/V1/webSearch"/>
  </reference>
 </component>
</composite>