diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testhttp/app.composite | 67 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testhttp/app.html | 10 |
2 files changed, 58 insertions, 19 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/testhttp/app.composite b/sca-cpp/trunk/modules/edit/apps/testhttp/app.composite index 983e814513..d403fcb32a 100644 --- a/sca-cpp/trunk/modules/edit/apps/testhttp/app.composite +++ b/sca-cpp/trunk/modules/edit/apps/testhttp/app.composite @@ -19,69 +19,112 @@ --> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1" targetNamespace="http://testhttp" name="testhttp"> <service name="get" promote="get"/> - <component t:x="25" t:y="25" name="get" t:title="http get" t:color="green1"> + <component t:x="25" t:y="25" name="get" t:title="get" t:color="green1"> <implementation.cpp path="lib/http" library="libhttpget"/> <service name="get"/> <reference target="text" name="url"/> </component> <service name="get2" promote="get2"/> - <component t:x="24" t:y="91" name="get2" t:title="http get" t:color="green1"> + <component t:x="24" t:y="83" name="get2" t:title="get" t:color="green1"> <implementation.cpp path="lib/http" library="libhttpget"/> <service name="get"/> <reference target="text2" name="url"/> </component> <service name="get3" promote="get3"/> - <component t:x="23" t:y="175" name="get3" t:title="http get" t:color="green1"> + <component t:x="23" t:y="146" name="get3" 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="87" t:y="175" name="text3" t:title="text" t:color="orange1"> + <component t:x="87" t:y="175" name="text3" t:title=" '{propval}'" t:color="orange1"> <t:implementation.python script="nuvem/text.py"/> <service name="text"/> <property>http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdXMLclient.php?whichClient=NDFDgen&lat=38.99&lon=-77.01&listLatLon=&lat1=&lon1=&lat2=&lon2=&resolutionSub=&listLat1=&listLon1=&listLat2=&listLon2=&resolutionList=&endPoint1Lat=&endPoint1Lon=&endPoint2Lat=&endPoint2Lon=&listEndPoint1Lat=&listEndPoint1Lon=&listEndPoint2Lat=&listEndPoint2Lon=&zipCodeList=&listZipCodeList=&centerPointLat=&centerPointLon=&distanceLat=&distanceLon=&resolutionSquare=&listCenterPointLat=&listCenterPointLon=&listDistanceLat=&listDistanceLon=&listResolutionSquare=&citiesLevel=&listCitiesLevel=&sector=&gmlListLatLon=&featureType=&requestedTime=&startTime=&endTime=&compType=&propertyName=&product=time-series&begin=2004-01-01T00%3A00%3A00&end=2015-03-10T00%3A00%3A00&maxt=maxt&Submit=Submit</property> </component> - <component t:x="88" t:y="91" name="text2" t:title="text" t:color="orange1"> + <component t:x="88" t:y="91" name="text2" t:title=" '{propval}'" t:color="orange1"> <t:implementation.python script="nuvem/text.py"/> <service name="text"/> <property>http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&sensor=false</property> </component> <service name="get4" promote="get4"/> - <component t:x="26" t:y="267" name="get4" t:title="http get" t:color="green1"> + <component t:x="25" t:y="210" name="get4" t:title="get" t:color="green1"> <implementation.cpp path="lib/http" library="libhttpget"/> <service name="get"/> <reference target="text4" name="url"/> </component> - <component t:x="90" t:y="267" name="text4" t:title="text" t:color="orange1"> + <component t:x="90" t:y="267" name="text4" t:title=" '{propval}'" t:color="orange1"> <t:implementation.python script="nuvem/text.py"/> <service name="text"/> <property>http://feedproxy.google.com/TechCrunch</property> </component> - <component t:x="93" t:y="25" name="text" t:title="text" t:color="orange1"> + <component t:x="93" t:y="25" name="text" t:title=" '{propval}'" t:color="orange1"> <t:implementation.python script="nuvem/text.py"/> <service name="text"/> <property>http://www.google.com</property> </component> <service name="get5" promote="get5"/> - <component t:x="26" t:y="335" name="get5" t:title="http get" t:color="green1"> + <component t:x="26" t:y="274" name="get5" t:title="get" t:color="green1"> <implementation.cpp path="lib/http" library="libhttpget"/> <service name="get"/> <reference target="text5" name="url"/> </component> - <component t:x="95" t:y="331" name="text5" t:title="text" t:color="orange1"> + <component t:x="95" t:y="331" name="text5" t:title=" '{propval}'" t:color="orange1"> <t:implementation.python script="nuvem/text.py"/> <service name="text"/> <property>cnn.com</property> </component> <service name="get6" promote="get6"/> - <component t:x="25" t:y="396" name="get6" t:title="http get" t:color="green1"> + <component t:x="26" t:y="335" name="get6" t:title="get" t:color="green1"> <implementation.cpp path="lib/http" library="libhttpget"/> <service name="get"/> <reference target="text6" name="url"/> </component> - <component t:x="95" t:y="395" name="text6" t:title="text" t:color="orange1"> + <component t:x="95" t:y="395" name="text6" t:title=" '{propval}'" t:color="orange1"> <t:implementation.python script="nuvem/text.py"/> <service name="text"/> <property>https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World</property> </component> + <service name="parse" promote="parse"/> + <component t:x="529" t:y="192" name="parse" t:title="parse" t:color="magenta1"> + <t:implementation.python script="nuvem/parse.py"/> + <service name="parse"/> + <reference target="text8" name="regexp"/> + <reference target="join" name="string"/> + </component> + <component t:x="832" t:y="249" name="rest" t:title="rest" t:color="yellow1"> + <t:implementation.python script="nuvem/rest.py"/> + <service name="rest"/> + <reference target="get7" name="list"/> + </component> + <component t:x="868" t:y="311" name="get7" t:title="get" t:color="green1"> + <implementation.cpp path="lib/http" library="libhttpget"/> + <service name="get"/> + <reference target="text7" name="url"/> + </component> + <component t:x="795" t:y="269" name="text7" t:title=" '{propval}'" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>cnn.com</property> + </component> + <component t:x="553" t:y="292" name="first" t:title="first" t:color="yellow1"> + <t:implementation.python script="nuvem/first.py"/> + <service name="first"/> + <reference target="rest" name="list"/> + </component> + <component t:x="812" t:y="334" name="text9" t:title=" '{propval}'" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property name="property"/> + </component> + <component t:x="617" t:y="226" name="text8" t:title=" '{propval}'" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>(CNN)</property> + </component> + <component t:x="617" t:y="254" name="join" t:title="join" t:color="magenta1"> + <t:implementation.python script="nuvem/join.py"/> + <service name="join"/> + <reference target="text9" name="separator"/> + <reference target="first" name="list"/> + </component> </composite> diff --git a/sca-cpp/trunk/modules/edit/apps/testhttp/app.html b/sca-cpp/trunk/modules/edit/apps/testhttp/app.html index 544287aa6d..2faf6fa886 100644 --- a/sca-cpp/trunk/modules/edit/apps/testhttp/app.html +++ b/sca-cpp/trunk/modules/edit/apps/testhttp/app.html @@ -18,14 +18,10 @@ * under the License. --> <DIV id="page"> - <SPAN id="iframe" class="iframe" style="position: absolute; top: 39px; left: 67px; "> - <A href="https://testhttp.sca-store.com:8453/components/get6"> - <SPAN class="fakeframe"> - <SPAN>frame ...</SPAN> - </SPAN> - </A> + <SPAN id="h1" class="h1" style="position: absolute; top: 0px; left: 0px; "> + <H1>Test HTTP components</H1> </SPAN> - <SPAN id="iframe" class="iframe" style="position: absolute; top: 214px; left: 69px; "> + <SPAN id="iframe" class="iframe" style="position: absolute; top: 234px; left: 11px; "> <A href="https://testhttp.sca-store.com:8453/components/get5"> <SPAN class="fakeframe"> <SPAN>frame ...</SPAN> |