You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2006/08/05 01:41:47 UTC

svn commit: r428925 - in /incubator/tuscany/cpp/sca/samples/BigBank/Accounts: Makefile.am StockQuoteService.wsdl StockQuoteTypes.xsd Tuscany-model.config

Author: jsdelfino
Date: Fri Aug  4 16:41:47 2006
New Revision: 428925

URL: http://svn.apache.org/viewvc?rev=428925&view=rev
Log:
Added missing XSD and replaced StockQuoteService.wsdl by the correct WSDL targeting the StockQuote service at webServiceX.net. BigBank now works end to end from a command line client and is able to get live stock quotes.

Added:
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd   (with props)
Modified:
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.wsdl
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Tuscany-model.config

Modified: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am?rev=428925&r1=428924&r2=428925&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am Fri Aug  4 16:41:47 2006
@@ -13,12 +13,12 @@
 
 noinst_HEADERS = *.h
 
-AccountDataServiceImpl_AccountDataService_Proxy.cpp:
+${BUILT_SOURCES}: sca.module
 	java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output .
 
 module_LTLIBRARIES = libAccounts.la
-module_DATA = sca.module.lin Tuscany-model.config *.componentType *.wsdl services.xml
-EXTRA_DIST = sca.module.lin Tuscany-model.config *.componentType *.wsdl services.xml
+module_DATA = sca.module.lin Tuscany-model.config *.componentType *.wsdl *.xsd services.xml
+EXTRA_DIST = sca.module.lin Tuscany-model.config *.componentType *.wsdl *.xsd services.xml
 
 libAccounts_la_SOURCES = \
 AccountDataServiceImpl.cpp \

Modified: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.wsdl?rev=428925&r1=428924&r2=428925&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.wsdl (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.wsdl Fri Aug  4 16:41:47 2006
@@ -1,68 +1,135 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?> 
+<!--
+  Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+
+  Licensed 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 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <wsdl:types>
+    <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET/">
+      <s:element name="GetQuote">
+        <s:complexType>
+          <s:sequence>
+            <s:element minOccurs="0" maxOccurs="1" name="symbol" type="s:string" />
+          </s:sequence>
+        </s:complexType>
+
+      </s:element>
+      <s:element name="GetQuoteResponse">
+        <s:complexType>
+          <s:sequence>
+            <s:element minOccurs="0" maxOccurs="1" name="GetQuoteResult" type="s:string" />
+          </s:sequence>
+        </s:complexType>
+      </s:element>
+      <s:element name="string" nillable="true" type="s:string" />
+
+    </s:schema>
+  </wsdl:types>
+  <wsdl:message name="GetQuoteSoapIn">
+    <wsdl:part name="parameters" element="tns:GetQuote" />
+  </wsdl:message>
+  <wsdl:message name="GetQuoteSoapOut">
+    <wsdl:part name="parameters" element="tns:GetQuoteResponse" />
+  </wsdl:message>
+  <wsdl:message name="GetQuoteHttpGetIn">
+
+    <wsdl:part name="symbol" type="s:string" />
+  </wsdl:message>
+  <wsdl:message name="GetQuoteHttpGetOut">
+    <wsdl:part name="Body" element="tns:string" />
+  </wsdl:message>
+  <wsdl:message name="GetQuoteHttpPostIn">
+    <wsdl:part name="symbol" type="s:string" />
+  </wsdl:message>
+  <wsdl:message name="GetQuoteHttpPostOut">
+
+    <wsdl:part name="Body" element="tns:string" />
+  </wsdl:message>
+  <wsdl:portType name="StockQuoteSoap">
+    <wsdl:operation name="GetQuote">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get Stock quote for a company Symbol</documentation>
+      <wsdl:input message="tns:GetQuoteSoapIn" />
+      <wsdl:output message="tns:GetQuoteSoapOut" />
+    </wsdl:operation>
+
+  </wsdl:portType>
+  <wsdl:portType name="StockQuoteHttpGet">
+    <wsdl:operation name="GetQuote">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get Stock quote for a company Symbol</documentation>
+      <wsdl:input message="tns:GetQuoteHttpGetIn" />
+      <wsdl:output message="tns:GetQuoteHttpGetOut" />
+    </wsdl:operation>
+  </wsdl:portType>
+
+  <wsdl:portType name="StockQuoteHttpPost">
+    <wsdl:operation name="GetQuote">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get Stock quote for a company Symbol</documentation>
+      <wsdl:input message="tns:GetQuoteHttpPostIn" />
+      <wsdl:output message="tns:GetQuoteHttpPostOut" />
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="StockQuoteSoap" type="tns:StockQuoteSoap">
+
+    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+    <wsdl:operation name="GetQuote">
+      <soap:operation soapAction="http://www.webserviceX.NET/GetQuote" style="document" />
+      <wsdl:input>
+        <soap:body use="literal" />
+      </wsdl:input>
+      <wsdl:output>
+        <soap:body use="literal" />
+      </wsdl:output>
 
-<wsdl:definitions 
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://www.quickstockquote.com/StockQuoteService/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://www.quickstockquote.com/StockQuoteService/"
- name="StockQuoteService"> 
-
- <wsdl:types>
-  <xsd:schema 
-   targetNamespace="http://www.quickstockquote.com/StockQuoteService/"
-   xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
-  
-  <xsd:element name="getQuote"> 
-   <xsd:complexType> 
-    <xsd:sequence> 
-	 <xsd:element name="symbol" type="xsd:string"/>
-	</xsd:sequence> 
-   </xsd:complexType>
-  </xsd:element>
-
-  <xsd:element name="getQuoteResponse">
-   <xsd:complexType>
-    <xsd:sequence>
-	 <xsd:element name="quote" type="xsd:float"/>
-	</xsd:sequence>
-   </xsd:complexType> 
-  </xsd:element> 
-
-  </xsd:schema>
-   </wsdl:types>
-    <wsdl:message name="getQuote">
-     <wsdl:part element="tns:getQuote" name="getQuote" />
-    </wsdl:message>
-   <wsdl:message name="getQuoteResponse">
-  <wsdl:part element="tns:getQuoteResponse" name="getQuoteResponse" />
- </wsdl:message>
-
- <wsdl:portType name="StockQuoteService">
-  <wsdl:operation name="getQuote">
-   <wsdl:input message="tns:getQuote" />
-   <wsdl:output message="tns:getQuoteResponse" />
-  </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="StockQuoteServiceSOAP"
-   type="tns:StockQuoteService">
-  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
-  <wsdl:operation name="getQuote">
-   <soap:operation
-     soapAction="http://www.quickstockquote.com/StockQuoteService/getQuote" />
-    <wsdl:input> 
-     <soap:body use="literal" />
-    </wsdl:input>
-    <wsdl:output>
-     <soap:body use="literal" />
-    </wsdl:output>
-   </wsdl:operation>
+    </wsdl:operation>
   </wsdl:binding>
- <wsdl:service name="StockQuoteService">
-  <wsdl:port binding="tns:StockQuoteServiceSOAP"  
-   name="StockQuoteServiceSOAP"> 
-   <soap:address location="http://www.quickstockquote.com/services/StockQuoteService"/>
-  </wsdl:port>
- </wsdl:service> 
-</wsdl:definitions> 
\ No newline at end of file
+  <wsdl:binding name="StockQuoteHttpGet" type="tns:StockQuoteHttpGet">
+    <http:binding verb="GET" />
+    <wsdl:operation name="GetQuote">
+      <http:operation location="/GetQuote" />
+      <wsdl:input>
+        <http:urlEncoded />
+      </wsdl:input>
+
+      <wsdl:output>
+        <mime:mimeXml part="Body" />
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:binding name="StockQuoteHttpPost" type="tns:StockQuoteHttpPost">
+    <http:binding verb="POST" />
+    <wsdl:operation name="GetQuote">
+      <http:operation location="/GetQuote" />
+
+      <wsdl:input>
+        <mime:content type="application/x-www-form-urlencoded" />
+      </wsdl:input>
+      <wsdl:output>
+        <mime:mimeXml part="Body" />
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="StockQuote">
+
+    <wsdl:port name="StockQuoteSoap" binding="tns:StockQuoteSoap">
+      <soap:address location="http://www.webservicex.net/stockquote.asmx" />
+    </wsdl:port>
+    <wsdl:port name="StockQuoteHttpGet" binding="tns:StockQuoteHttpGet">
+      <http:address location="http://www.webservicex.net/stockquote.asmx" />
+    </wsdl:port>
+    <wsdl:port name="StockQuoteHttpPost" binding="tns:StockQuoteHttpPost">
+      <http:address location="http://www.webservicex.net/stockquote.asmx" />
+    </wsdl:port>
+
+  </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd?rev=428925&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd Fri Aug  4 16:41:47 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<!--
+  Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+
+  Licensed 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.
+ -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+  <xs:element name="StockQuotes" type="tStockQuotes"/>
+  <xs:complexType name="tStockQuotes">
+    <xs:sequence>
+      <xs:element name="Stock" type="tStock" minOccurs="0" maxOccurs="unbounded"/>
+      <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##any" processContents="lax"/>
+  </xs:complexType>
+
+  <xs:complexType name="tStock">
+    <xs:sequence>
+      <xs:element minOccurs="0" maxOccurs="1" name="Symbol"     type="xs:string"/>
+      <xs:element minOccurs="0" maxOccurs="1" name="Last"       type="xs:float"/>
+     <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##any" processContents="lax"/>
+  </xs:complexType>
+</xs:schema>
\ No newline at end of file

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteTypes.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Modified: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Tuscany-model.config
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Tuscany-model.config?rev=428925&r1=428924&r2=428925&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Tuscany-model.config (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Tuscany-model.config Fri Aug  4 16:41:47 2006
@@ -21,5 +21,6 @@
 		<file name="StockQuoteService.wsdl"/>
 	</wsdl>
 	<xsd>
+		<file name="StockQuoteTypes.xsd"/>
 	</xsd>
 </tuscany-model>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org