You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2007/05/23 11:19:32 UTC
svn commit: r540899 [1/3] - in
/incubator/tuscany/sandbox/slaws/httpserver.php: ./ htdocs/AlertDisplay.php
htdocs/Alerts.wsdl htdocs/Alerts.xsd htdocs/AlertsSources.wsdl
htdocs/Cached_Alerts.xml htdocs/phpinfo.php startserver.bat
Author: slaws
Date: Wed May 23 02:19:31 2007
New Revision: 540899
URL: http://svn.apache.org/viewvc?view=rev&rev=540899
Log:
Bringing up PHP client for aggregator sample
Added:
incubator/tuscany/sandbox/slaws/httpserver.php/
- copied from r531365, incubator/tuscany/cpp/sca/samples/AlertAggregator/httpserver.php/
incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl (with props)
incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd (with props)
incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl (with props)
incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/phpinfo.php
Modified:
incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php
incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Cached_Alerts.xml
incubator/tuscany/sandbox/slaws/httpserver.php/startserver.bat
Modified: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php?view=diff&rev=540899&r1=531365&r2=540899
==============================================================================
--- incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php (original)
+++ incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertDisplay.php Wed May 23 02:19:31 2007
@@ -20,185 +20,195 @@
include 'SCA/SCA.php';
/**
- * @service
- * @binding.rest.rpc
- * @types http://tuscany.apache.org/samples/alerter ./Alerter.xsd
+ * @service
+ * @binding.restrpc
+ * @types http://tuscany.apache.org/sca/samples/aggregator/types ./Alerts.xsd
*/
class AlertDisplay
-{
- /**
- * @reference
- * @binding.rest.rpc http://localhost:9090/rest/sample.alerter.AlerterComponent/AlerterService
- * @types http://tuscany.apache.org/samples/alerter ./Alerter.xsd
- */
- public $alert_service;
-
- /**
- * @return string
- */
- public function getAlertsHTMLTable()
- {
- $xmldas = SDO_DAS_XML::create("./Alerter.xsd");
- $doc = $xmldas->loadFile("./Cached_Alerts.xml");
- $cached_alerts = $doc->getRootDataObject();
-
- // Use the alertService reference
- $new_alerts = $this->alert_service->getAllNewAlerts();
-
- foreach($new_alerts->alert as $alert){
- $new_alert = $cached_alerts->createDataObject('alert');
- $new_alert->title = $alert->title;
- $new_alert->summary = $alert->summary;
- $new_alert->address = $alert->address;
- $new_alert->date = $alert->date;
- $new_alert->sourceid = $alert->sourceid;
- $new_alert->unread = true;
- }
-
- $return_table = "<TABLE border=\'0\'>";
- $alert_id_number = 0;
- foreach($cached_alerts->alert as $alert){
- $alert->id = "alert_" . $alert_id_number;
- $title = substr($alert->title,0,80);
- $summary = substr($alert->summary,0,40);
- $unread_string = $alert->unread ? "unread_title" : "read_title";
- $return_row = <<<ALERTROW
-<TR class="source_$alert->sourceid clickable" onclick="displayAlert('$alert->address', '')">
- <TD>
- <SPAN id="$alert->id" class="$unread_string">$title</SPAN>
- <SPAN class="summary"> - $summary ...</SPAN>
- </TD>
- <TD>
- $alert->date
- </TD>
-</TR>
-ALERTROW;
- $return_table = $return_table . $return_row;
- $alert_id_number += 1;
- }
- $return_table = $return_table . "</TABLE>";
-
- // as php is one shot we have to save away the alerts we want to cache
- $xmldas->saveFile($doc, "./Cached_Alerts.xml");
-
- return $return_table;
- }
-
- /**
- * @param string $alert_id
- * @return string
- */
- public function readAlert($alert_id)
- {
- $xmldas = SDO_DAS_XML::create("./Alerter.xsd");
- $doc = $xmldas->loadFile("./Cached_Alerts.xml");
- $cached_alerts = $doc->getRootDataObject();
-
- $return_summary = "";
-
- foreach($cached_alerts->alert as $alert){
-SCA::$logger->log($alert->id . " vs " . $alert_id );
- if (strcmp($alert->id,$alert_id) == 0){
- SCA::$logger->log("Match");
- $alert->unread = false;
- $return_summary = "<PRE>" . $alert->summary . "</PRE>";
- }
- }
-
- // as php is one shot we have to save away the alerts we want to cache
- $xmldas->saveFile($doc, "./Cached_Alerts.xml");
-
- return $return_summary;
- }
-
- /**
- * @return string
- */
- public function getAlertSourcesHTMLTable()
- {
- # Use the alertService reference
- $alert_sources = $this->alert_service->getAlertSources();
-
-// some debug
-//ob_start();
-//print_r( $alert_sources );
-//$debug = ob_get_contents();
-//ob_end_clean();
-//SCA::$logger->log($debug);
-
- $return_table = "<TABLE border='0'>\n";
-
- foreach ($alert_sources->source as $alert_source){
- $source_id = $alert_source->id;
- $return_row = <<<SOURCEROW
-<TR CLASS="source_$source_id" >
- <TD CLASS="clickable" ONCLICK="displayAlert('$alert_source->address', '')">
- <IMG SRC="rss.png"/> $alert_source->name
- </TD>
- <TD CLASS="clickable link" ONCLICK="showEditSource('$source_id')">Edit</TD>
- <TD CLASS="clickable link" ONCLICK="deleteSource('$source_id')">Delete</TD>
-</TR>
-<TR ID="edit_source_$source_id" CLASS="hidden source_$source_id">
- <TD COLSPAN="3">
- <TABLE CLASS="sourceDetailsTable">
- <TR>
- <TD>Source name:</TD>
- <TD>
- <INPUT ID="source_{$source_id}_name" TYPE="TEXT" SIZE="50" VALUE="$alert_source->name"/>
- </TD>
- </TR>
- <TR>
- <TD>Source address:</TD>
- <TD>
- <INPUT ID="source_{$source_id}_address" TYPE="TEXT" SIZE="50" VALUE="$alert_source->address"/>
- </TD>
- </TR>
- <TR>
- <TD>
- <INPUT ID="source_{$source_id}_type" TYPE="HIDDEN" VALUE="$source_id"/>
- <INPUT TYPE="BUTTON" VALUE="Update" ONCLICK="updateSource('$source_id')"/>
- <INPUT TYPE="BUTTON" VALUE="Cancel" ONCLICK="hideEditSource('$source_id')"/>
- </TD>
- </TR>
- </TABLE>
- </TD>
-</TR>
-SOURCEROW;
- $return_table = $return_table . $return_row;
- }
-
- $return_table = $return_table . "</TABLE>\n";
- return $return_table;
- }
-
- /**
- * @param integer $source_id
- * @return string
- */
- public function deleteAlertSource($source_id){
- # Use the alertService reference
- $this->alertService->removeAlertSource($source_id);
-
- //TODO
- }
-
- /**
- * @param source $alert_source http://tuscany.apache.org/samples/alerter
- */
- public function addAlertSource($alert_source){
- # Use the alertService reference
- $this->alertService->addAlertSource($alert_source);
- }
-
- /**
- * @param source $alert_source http://tuscany.apache.org/samples/alerter
- */
- public function updateAlertSource($alert_source){
- # Use the alertService reference
- $this->alertService->updateAlertSource($alert_source);
+{
+ /**
+ * @reference
+ * @binding.soap ./Alerts.wsdl
+ */
+ public $alert_service;
+
+ /**
+ * @reference
+ * @binding.soap ./AlertsSources.wsdl
+ */
+ public $alert_sources_service;
+
+ /**
+ * @return string
+ */
+ public function getAlertsHTMLTable()
+ {
+ $xmldas = SDO_DAS_XML::create("./Alerts.xsd");
+ $doc = $xmldas->loadFile("./Cached_Alerts.xml");
+ $cached_alerts = $doc->getRootDataObject();
+
+ // Use the alertService reference
+ $request = $this->alert_service->createDataObject("http://tuscany.apache.org/sca/samples/aggregator/service",
+ "getAllNewAlerts");
+ $request->parm = "AString";
+ $new_alerts = $this->alert_service->getAllNewAlerts($request);
+
+ foreach($new_alerts->parm as $alert){
+ $new_alert = $cached_alerts->createDataObject('Alert');
+ $new_alert->Title = $alert->Title;
+ $new_alert->Summary = $alert->Summary;
+ $new_alert->Address = $alert->Address;
+ $new_alert->Date = $alert->Date;
+ $new_alert->SourceId = $alert->Sourceid;
+ $new_alert->Unread = true;
+ }
+
+ $return_table = "<TABLE border=\'0\'>";
+ $alert_id_number = 0;
+ foreach($cached_alerts->Alert as $alert){
+ $alert->Id = "alert_" . $alert_id_number;
+ $title = substr($alert->Title,0,80);
+ $summary = substr($alert->Summary,0,40);
+ $unread_string = $alert->Unread ? "unread_title" : "read_title";
+ $return_row = <<<ALERTROW
+<TR class="source_$alert->SourceId clickable" onclick="displayAlert('$alert->Address', '')">
+ <TD>
+ <SPAN id="$alert->Id" class="$unread_string">$title</SPAN>
+ <SPAN class="summary"> - $summary ...</SPAN>
+ </TD>
+ <TD>
+ $alert->Date
+ </TD>
+</TR>
+ALERTROW;
+ $return_table = $return_table . $return_row;
+ $alert_id_number += 1;
+ }
+ $return_table = $return_table . "</TABLE>";
+
+ // as php is one shot we have to save away the alerts we want to cache
+ $xmldas->saveFile($doc, "./Cached_Alerts.xml");
+
+ return $return_table;
+ }
+
+ /**
+ * @param string $alert_id
+ * @return string
+ */
+ public function readAlert($alert_id)
+ {
+ $xmldas = SDO_DAS_XML::create("./Alerter.xsd");
+ $doc = $xmldas->loadFile("./Cached_Alerts.xml");
+ $cached_alerts = $doc->getRootDataObject();
+
+ $return_summary = "";
+
+ foreach($cached_alerts->alert as $alert){
+SCA::$logger->log($alert->Id . " vs " . $alert_id );
+ if (strcmp($alert->Id,$alert_Id) == 0){
+ SCA::$logger->log("Match");
+ $alert->Unread = false;
+ $return_summary = "<PRE>" . $alert->Summary . "</PRE>";
+ }
+ }
+
+ // as php is one shot we have to save away the alerts we want to cache
+ $xmldas->saveFile($doc, "./Cached_Alerts.xml");
+
+ return $return_summary;
+ }
+
+ /**
+ * @return string
+ */
+ public function getAlertSourcesHTMLTable()
+ {
+ $request = $this->alert_sources_service->createDataObject("http://tuscany.apache.org/sca/samples/aggregator/sources",
+ "getAlertSources");
+ $request->parm = "AString";
+ $alert_sources = $this->alert_sources_service->getAlertSources($request);
+
+// some debug
+//ob_start();
+//print_r( $alert_sources );
+//$debug = ob_get_contents();
+//ob_end_clean();
+//SCA::$logger->log($debug);
+
+ $return_table = "<TABLE border='0'>\n";
+
+ foreach ($alert_sources->parm as $alert_source){
+ $source_id = $alert_source->Id;
+ $return_row = <<<SOURCEROW
+<TR CLASS="source_$source_id" >
+ <TD CLASS="clickable" ONCLICK="displayAlert('$alert_source->Address', '')">
+ <IMG SRC="rss.png"/> $alert_source->Name
+ </TD>
+ <TD CLASS="clickable link" ONCLICK="showEditSource('$source_id')">Edit</TD>
+ <TD CLASS="clickable link" ONCLICK="deleteSource('$source_id')">Delete</TD>
+</TR>
+<TR ID="edit_source_$source_id" CLASS="hidden source_$source_id">
+ <TD COLSPAN="3">
+ <TABLE CLASS="sourceDetailsTable">
+ <TR>
+ <TD>Source name:</TD>
+ <TD>
+ <INPUT ID="source_{$source_id}_name" TYPE="TEXT" SIZE="50" VALUE="$alert_source->Name"/>
+ </TD>
+ </TR>
+ <TR>
+ <TD>Source address:</TD>
+ <TD>
+ <INPUT ID="source_{$source_id}_address" TYPE="TEXT" SIZE="50" VALUE="$alert_source->Address"/>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <INPUT ID="source_{$source_id}_type" TYPE="HIDDEN" VALUE="$source_id"/>
+ <INPUT TYPE="BUTTON" VALUE="Update" ONCLICK="updateSource('$source_id')"/>
+ <INPUT TYPE="BUTTON" VALUE="Cancel" ONCLICK="hideEditSource('$source_id')"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+</TR>
+SOURCEROW;
+ $return_table = $return_table . $return_row;
+ }
+
+ $return_table = $return_table . "</TABLE>\n";
+ return $return_table;
+ }
+
+ /**
+ * @param integer $source_id
+ * @return string
+ */
+ public function deleteAlertSource($source_id){
+ # Use the alertService reference
+ $this->alertService->removeAlertSource($source_id);
+
+ //TODO
+ }
+
+ /**
+ * @param Source $alert_source http://tuscany.apache.org/sca/samples/aggregator/types
+ */
+ public function addAlertSource($alert_source){
+ # Use the alertService reference
+ $this->alertService->addAlertSource($alert_source);
+ }
+
+ /**
+ * @param Source $alert_source http://tuscany.apache.org/sca/samples/aggregator/types
+ */
+ public function updateAlertSource($alert_source){
+ # Use the alertService reference
+ $this->alertService->updateAlertSource($alert_source);
}
}
-?>
-
-
+?>
+
+
Added: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl?view=auto&rev=540899
==============================================================================
--- incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl (added)
+++ incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl Wed May 23 02:19:31 2007
@@ -0,0 +1,88 @@
+<?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.
+-->
+<wsdl:definitions targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/service"
+ xmlns:tns="http://tuscany.apache.org/sca/samples/aggregator/service"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ name="Alerter">
+
+ <wsdl:types>
+ <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/service"
+ xmlns:alerter="http://tuscany.apache.org/sca/samples/aggregator/types"
+ elementFormDefault="qualified">
+
+ <xsd:import namespace="http://tuscany.apache.org/sca/samples/aggregator/types"
+ schemaLocation="Alerts.xsd" />
+
+ <element name="getAllNewAlerts">
+ <xsd:complexType>
+ <sequence>
+ <element name="parm" type="string" />
+ </sequence>
+ </xsd:complexType>
+ </element>
+
+ <element name="getAllNewAlertsResponse">
+ <complexType>
+ <sequence>
+ <element name="parm" type="alerter:AlertsType" />
+ </sequence>
+ </complexType>
+ </element>
+
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="GetAllNewAlertsRequest">
+ <wsdl:part element="tns:getAllNewAlerts" name="parameters" />
+ </wsdl:message>
+ <wsdl:message name="GetAllNewAlertsResponse">
+ <wsdl:part element="tns:getAllNewAlertsResponse" name="parameters" />
+ </wsdl:message>
+
+ <wsdl:portType name="AlertsPortType">
+ <wsdl:operation name="getAllNewAlerts">
+ <wsdl:input message="tns:GetAllNewAlertsRequest" name="GetAllNewAlertsRequestMsg" />
+ <wsdl:output message="tns:GetAllNewAlertsResponse" name="GetAllNewAlertsResponseMsg" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="AlertsBinding" type="tns:AlertsPortType">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="getAllNewAlerts">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="GetAllNewAlertsRequestMsg">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="GetAllNewAlertsResponseMsg">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="AlertsService">
+ <wsdl:port name="AlertsPort" binding="tns:AlertsBinding">
+ <wsdlsoap:address location="http://localhost:8080/services/AlertsServiceWebServiceBinding" />
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd?view=auto&rev=540899
==============================================================================
--- incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd (added)
+++ incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd Wed May 23 02:19:31 2007
@@ -0,0 +1,74 @@
+<?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.
+-->
+<schema targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/types"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:ns="http://tuscany.apache.org/sca/samples/aggregator/types">
+ <element name="Alerts" type="ns:AlertsType"/>
+
+ <complexType name="AlertType">
+ <sequence>
+ <element name="Title" type="string"/>
+ <element name="Summary" type="string"/>
+ <element name="Address" type="anyURI" maxOccurs="1" minOccurs="1"/>
+ <element name="Date" type="string" maxOccurs="1" minOccurs="1"/>
+ </sequence>
+ <attribute name="SourceId" type="string" use="optional"/>
+ <attribute name="Unread" type="boolean" use="optional"/>
+ <attribute name="Id" type="string" use="optional"/>
+ </complexType>
+
+ <complexType name="AlertsType">
+ <sequence>
+ <element name="Alert" type="ns:AlertType" maxOccurs="unbounded" minOccurs="0" />
+ </sequence>
+ </complexType>
+
+ <element name="Config" type="ns:ConfigType"/>
+ <element name="Source" type="ns:SourceType"/>
+
+ <complexType name="SourceType">
+ <sequence>
+ <element name="Name" type="string" maxOccurs="1" minOccurs="1"/>
+ <element name="Address" type="anyURI" maxOccurs="1" minOccurs="1"/>
+ <element name="LastChecked" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="FeedAddress" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="PopServer" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="PopUsername" type="string" maxOccurs="1" minOccurs="0"/>
+ <element name="PopPassword" type="string" maxOccurs="1" minOccurs="0"/>
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="string" use="optional"/>
+ <attribute name="Type" use="required">
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="rss"/>
+ <enumeration value="pop"/>
+ <enumeration value="nntp"/>
+ </restriction>
+ </simpleType>
+ </attribute>
+ </complexType>
+
+ <complexType name="ConfigType">
+ <sequence>
+ <element name="Source" type="ns:SourceType" maxOccurs="unbounded" minOccurs="0"/>
+ </sequence>
+ </complexType>
+</schema>
\ No newline at end of file
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/Alerts.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl?view=auto&rev=540899
==============================================================================
--- incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl (added)
+++ incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl Wed May 23 02:19:31 2007
@@ -0,0 +1,88 @@
+<?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.
+-->
+<wsdl:definitions targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/sources"
+ xmlns:tns="http://tuscany.apache.org/sca/samples/aggregator/sources"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ name="Alerter">
+
+ <wsdl:types>
+ <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://tuscany.apache.org/sca/samples/aggregator/sources"
+ xmlns:alerter="http://tuscany.apache.org/sca/samples/aggregator/types"
+ elementFormDefault="qualified">
+
+ <xsd:import namespace="http://tuscany.apache.org/sca/samples/aggregator/types"
+ schemaLocation="Alerts.xsd" />
+
+ <element name="getAlertSources">
+ <xsd:complexType>
+ <sequence>
+ <element name="parm" type="string" />
+ </sequence>
+ </xsd:complexType>
+ </element>
+
+ <element name="getAlertSourcesResponse">
+ <complexType>
+ <sequence>
+ <element name="parm" type="alerter:ConfigType" />
+ </sequence>
+ </complexType>
+ </element>
+
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="GetAlertSourcesRequest">
+ <wsdl:part element="tns:getAlertSources" name="parameters" />
+ </wsdl:message>
+ <wsdl:message name="GetAlertSourcesResponse">
+ <wsdl:part element="tns:getAlertSourcesResponse" name="parameters" />
+ </wsdl:message>
+
+ <wsdl:portType name="AlertsSourcesPortType">
+ <wsdl:operation name="getAlertSources">
+ <wsdl:input message="tns:GetAlertSourcesRequest" name="GetAlertSourcesRequestMsg" />
+ <wsdl:output message="tns:GetAlertSourcesResponse" name="GetAlertSourcesResponseMsg" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="AlertsSourcesBinding" type="tns:AlertsSourcesPortType">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="getAlertSources">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="GetAlertSourcesRequestMsg">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="GetAlertSourcesResponseMsg">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="AlertsSourcesService">
+ <wsdl:port name="AlertsSourcesPort" binding="tns:AlertsSourcesBinding">
+ <wsdlsoap:address location="http://localhost:8080/services/AlertsSourcesServiceWebServiceBinding" />
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/sandbox/slaws/httpserver.php/htdocs/AlertsSources.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org