You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ru...@apache.org on 2007/10/30 06:38:26 UTC
svn commit: r589964 - in /webservices/synapse/trunk/java/modules:
core/src/main/java/org/apache/synapse/mediators/eip/splitter/ samples/
samples/services/ReliableStockQuoteService/
samples/services/ReliableStockQuoteService/wsdl/ samples/services/Secur...
Author: ruwan
Date: Mon Oct 29 22:38:25 2007
New Revision: 589964
URL: http://svn.apache.org/viewvc?rev=589964&view=rev
Log:
Reverting the WSDL removing (because it has added some trouble to some samples)
Added:
webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/
webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/ReliableStockQuoteService.wsdl (with props)
webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/
webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/SimpleStockQuoteService.wsdl (with props)
webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/
webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/SimpleStockQuoteService.wsdl (with props)
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/CloneMediator.java
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/IterateMediator.java
webservices/synapse/trunk/java/modules/samples/pom.xml
webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/build.xml
webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/build.xml
webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/build.xml
Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/CloneMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/CloneMediator.java?rev=589964&r1=589963&r2=589964&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/CloneMediator.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/CloneMediator.java Mon Oct 29 22:38:25 2007
@@ -96,7 +96,7 @@
// property to SKIP to skip the blank http response
OperationContext opCtx
= ((Axis2MessageContext) synCtx).getAxis2MessageContext().getOperationContext();
- if (continueParent && opCtx != null) {
+ if (!continueParent && opCtx != null) {
opCtx.setProperty(Constants.RESPONSE_WRITTEN,"SKIP");
}
Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/IterateMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/IterateMediator.java?rev=589964&r1=589963&r2=589964&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/IterateMediator.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/splitter/IterateMediator.java Mon Oct 29 22:38:25 2007
@@ -183,7 +183,7 @@
// property to SKIP to skip the blank http response
OperationContext opCtx
= ((Axis2MessageContext) synCtx).getAxis2MessageContext().getOperationContext();
- if (continueParent && opCtx != null) {
+ if (!continueParent && opCtx != null) {
opCtx.setProperty(Constants.RESPONSE_WRITTEN,"SKIP");
}
Modified: webservices/synapse/trunk/java/modules/samples/pom.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/pom.xml?rev=589964&r1=589963&r2=589964&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/pom.xml (original)
+++ webservices/synapse/trunk/java/modules/samples/pom.xml Mon Oct 29 22:38:25 2007
@@ -110,6 +110,8 @@
<mkdir dir="${SSQ.dir}/META-INF"/>
<copy file="${src}/../conf/services.xml"
tofile="${SSQ.dir}/META-INF/services.xml"/>
+ <copy file="${src}/../wsdl/SimpleStockQuoteService.wsdl"
+ tofile="${SSQ.dir}/META-INF/service.wsdl"/>
<copy toDir="${SSQ.dir}">
<fileset dir="${classes}">
<include name="**/*.class"/>
@@ -135,6 +137,8 @@
<mkdir dir="${SSQ2.dir}/META-INF"/>
<copy file="${src2}/../conf/services.xml"
tofile="${SSQ2.dir}/META-INF/services.xml"/>
+ <copy file="${src2}/../wsdl/SimpleStockQuoteService.wsdl"
+ tofile="${SSQ2.dir}/META-INF/service.wsdl"/>
<copy file="${src2}/../store.jks"
tofile="${SSQ2.dir}/store.jks"/>
<copy toDir="${SSQ2.dir}">
@@ -186,6 +190,8 @@
<mkdir dir="${RSQ.dir}/META-INF"/>
<copy file="${src4}/../conf/services.xml"
tofile="${RSQ.dir}/META-INF/services.xml"/>
+ <copy file="${src4}/../wsdl/ReliableStockQuoteService.wsdl"
+ tofile="${RSQ.dir}/META-INF/service.wsdl"/>
<copy toDir="${RSQ.dir}">
<fileset dir="${classes}">
<include name="**/*.class"/>
Modified: webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/build.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/build.xml?rev=589964&r1=589963&r2=589964&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/build.xml (original)
+++ webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/build.xml Mon Oct 29 22:38:25 2007
@@ -56,6 +56,7 @@
<mkdir dir="${RSQ.dir}/META-INF"/>
<copy file="conf/services.xml" tofile="${RSQ.dir}/META-INF/services.xml"/>
+ <copy file="wsdl/ReliableStockQuoteService.wsdl" tofile="${RSQ.dir}/META-INF/service.wsdl"/>
<copy toDir="${RSQ.dir}">
<fileset dir="${classes}">
<include name="**/*.class"/>
Added: webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/ReliableStockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/ReliableStockQuoteService.wsdl?rev=589964&view=auto
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/ReliableStockQuoteService.wsdl (added)
+++ webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/ReliableStockQuoteService.wsdl Mon Oct 29 22:38:25 2007
@@ -0,0 +1,168 @@
+<!--
+ ~ 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 xmlns:axis2="http://services.samples"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:ns0="http://services.samples/xsd"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:ns1="http://org.apache.axis2/xsd"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://services.samples">
+ <wsdl:documentation>ReliableStockQuoteService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema xmlns:ns="http://services.samples/xsd" attributeFormDefault="qualified"
+ elementFormDefault="qualified" targetNamespace="http://services.samples/xsd">
+ <xs:element name="GetQuoteResponse" type="ns:GetQuoteResponse"/>
+ <xs:complexType name="GetQuoteResponse">
+ <xs:sequence>
+ <xs:element name="change" type="xs:double"/>
+ <xs:element name="earnings" type="xs:double"/>
+ <xs:element name="high" type="xs:double"/>
+ <xs:element name="last" type="xs:double"/>
+ <xs:element name="lastTradeTimestamp" nillable="true" type="xs:string"/>
+ <xs:element name="low" type="xs:double"/>
+ <xs:element name="marketCap" type="xs:double"/>
+ <xs:element name="name" nillable="true" type="xs:string"/>
+ <xs:element name="open" type="xs:double"/>
+ <xs:element name="peRatio" type="xs:double"/>
+ <xs:element name="percentageChange" type="xs:double"/>
+ <xs:element name="prevClose" type="xs:double"/>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+
+ <xs:element name="volume" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetQuote"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="GetQuote" type="ns:GetQuote"/>
+ <xs:complexType name="GetQuote">
+ <xs:sequence>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getQuoteResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="ns:GetQuoteResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="placeOrder">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="order" nillable="true" type="ns:PlaceOrder"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PlaceOrder" type="ns:PlaceOrder"/>
+ <xs:complexType name="PlaceOrder">
+ <xs:sequence>
+ <xs:element name="price" type="xs:double"/>
+ <xs:element name="quantity" type="xs:int"/>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="placeOrderMessage">
+ <wsdl:part name="part1" element="ns0:placeOrder"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteMessage">
+ <wsdl:part name="part1" element="ns0:getQuote"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteResponse">
+ <wsdl:part name="part1" element="ns0:getQuoteResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="ReliableStockQuoteServicePortType">
+ <wsdl:operation name="placeOrder">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:placeOrderMessage" wsaw:Action="urn:placeOrder"/>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getQuoteMessage" wsaw:Action="urn:getQuote"/>
+ <wsdl:output message="axis2:getQuoteResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="ReliableStockQuoteServiceSOAP11Binding"
+ type="axis2:ReliableStockQuoteServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="ReliableStockQuoteServiceSOAP12Binding"
+ type="axis2:ReliableStockQuoteServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap12:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap12:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ReliableStockQuoteService">
+ <wsdl:port name="ReliableStockQuoteServiceSOAP11port_https"
+ binding="axis2:ReliableStockQuoteServiceSOAP11Binding">
+ <soap:address location="https://localhost:9002/soap/ReliableStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="ReliableStockQuoteServiceSOAP11port_http1"
+ binding="axis2:ReliableStockQuoteServiceSOAP11Binding">
+ <soap:address location="http://localhost:9000/soap/ReliableStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="ReliableStockQuoteServiceSOAP12port_https"
+ binding="axis2:ReliableStockQuoteServiceSOAP12Binding">
+ <soap12:address location="https://localhost:9002/soap/ReliableStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="ReliableStockQuoteServiceSOAP12port_http1"
+ binding="axis2:ReliableStockQuoteServiceSOAP12Binding">
+ <soap12:address location="http://localhost:9000/soap/ReliableStockQuoteService"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Propchange: webservices/synapse/trunk/java/modules/samples/services/ReliableStockQuoteService/wsdl/ReliableStockQuoteService.wsdl
------------------------------------------------------------------------------
svn:executable = *
Modified: webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/build.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/build.xml?rev=589964&r1=589963&r2=589964&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/build.xml (original)
+++ webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/build.xml Mon Oct 29 22:38:25 2007
@@ -56,6 +56,7 @@
<mkdir dir="${SSQ.dir}/META-INF"/>
<copy file="conf/services.xml" tofile="${SSQ.dir}/META-INF/services.xml"/>
+ <copy file="wsdl/SimpleStockQuoteService.wsdl" tofile="${SSQ.dir}/META-INF/service.wsdl"/>
<copy file="store.jks" tofile="${SSQ.dir}/store.jks"/>
<copy toDir="${SSQ.dir}">
<fileset dir="${classes}">
Added: webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/SimpleStockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/SimpleStockQuoteService.wsdl?rev=589964&view=auto
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/SimpleStockQuoteService.wsdl (added)
+++ webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/SimpleStockQuoteService.wsdl Mon Oct 29 22:38:25 2007
@@ -0,0 +1,290 @@
+<!--
+ ~ 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 xmlns:axis2="http://services.samples"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:ns0="http://services.samples/xsd"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:ns1="http://org.apache.axis2/xsd"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://services.samples">
+ <wsdl:documentation>SimpleStockQuoteService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema xmlns:ns="http://services.samples/xsd" attributeFormDefault="qualified"
+ elementFormDefault="qualified" targetNamespace="http://services.samples/xsd">
+ <xs:element name="getFullQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetFullQuote"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetFullQuote" type="ns:GetFullQuote"/>
+ <xs:complexType name="GetFullQuote">
+ <xs:sequence>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getFullQuoteResponse">
+ <xs:complexType>
+
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="ns:GetFullQuoteResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetFullQuoteResponse" type="ns:GetFullQuoteResponse"/>
+ <xs:complexType name="GetFullQuoteResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" name="tradeHistory" nillable="true"
+ type="ns:TradingDay"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="TradingDay" type="ns:TradingDay"/>
+ <xs:complexType name="TradingDay">
+ <xs:sequence>
+ <xs:element name="day" type="xs:int"/>
+ <xs:element name="quote" nillable="true" type="ns:GetQuoteResponse"/>
+ </xs:sequence>
+
+ </xs:complexType>
+ <xs:element name="GetQuoteResponse" type="ns:GetQuoteResponse"/>
+ <xs:complexType name="GetQuoteResponse">
+ <xs:sequence>
+ <xs:element name="change" type="xs:double"/>
+ <xs:element name="earnings" type="xs:double"/>
+ <xs:element name="high" type="xs:double"/>
+ <xs:element name="last" type="xs:double"/>
+ <xs:element name="lastTradeTimestamp" nillable="true" type="xs:string"/>
+ <xs:element name="low" type="xs:double"/>
+ <xs:element name="marketCap" type="xs:double"/>
+ <xs:element name="name" nillable="true" type="xs:string"/>
+ <xs:element name="open" type="xs:double"/>
+ <xs:element name="peRatio" type="xs:double"/>
+ <xs:element name="percentageChange" type="xs:double"/>
+ <xs:element name="prevClose" type="xs:double"/>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+
+ <xs:element name="volume" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getMarketActivity">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetMarketActivity"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetMarketActivity" type="ns:GetMarketActivity"/>
+ <xs:complexType name="GetMarketActivity">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" name="symbols" nillable="true"
+ type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getMarketActivityResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true"
+ type="ns:GetMarketActivityResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetMarketActivityResponse" type="ns:GetMarketActivityResponse"/>
+ <xs:complexType name="GetMarketActivityResponse">
+ <xs:sequence/>
+ </xs:complexType>
+ <xs:element name="getQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetQuote"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="GetQuote" type="ns:GetQuote"/>
+ <xs:complexType name="GetQuote">
+ <xs:sequence>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getQuoteResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="ns:GetQuoteResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="placeOrder">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="order" nillable="true" type="ns:PlaceOrder"/>
+
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PlaceOrder" type="ns:PlaceOrder"/>
+ <xs:complexType name="PlaceOrder">
+ <xs:sequence>
+ <xs:element name="price" type="xs:double"/>
+ <xs:element name="quantity" type="xs:int"/>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="placeOrderMessage">
+ <wsdl:part name="part1" element="ns0:placeOrder"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteMessage">
+ <wsdl:part name="part1" element="ns0:getQuote"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteResponse">
+ <wsdl:part name="part1" element="ns0:getQuoteResponse"/>
+ </wsdl:message>
+ <wsdl:message name="getMarketActivityMessage">
+ <wsdl:part name="part1" element="ns0:getMarketActivity"/>
+ </wsdl:message>
+ <wsdl:message name="getMarketActivityResponse">
+ <wsdl:part name="part1" element="ns0:getMarketActivityResponse"/>
+ </wsdl:message>
+ <wsdl:message name="getFullQuoteMessage">
+ <wsdl:part name="part1" element="ns0:getFullQuote"/>
+ </wsdl:message>
+ <wsdl:message name="getFullQuoteResponse">
+ <wsdl:part name="part1" element="ns0:getFullQuoteResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="SimpleStockQuoteServicePortType">
+ <wsdl:operation name="placeOrder">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:placeOrderMessage" wsaw:Action="urn:placeOrder"/>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getQuoteMessage" wsaw:Action="urn:getQuote"/>
+ <wsdl:output message="axis2:getQuoteResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="getMarketActivity">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getMarketActivityMessage"
+ wsaw:Action="urn:getMarketActivity"/>
+ <wsdl:output message="axis2:getMarketActivityResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="getFullQuote">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getFullQuoteMessage" wsaw:Action="urn:getFullQuote"/>
+ <wsdl:output message="axis2:getFullQuoteResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="SimpleStockQuoteServiceSOAP11Binding"
+ type="axis2:SimpleStockQuoteServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getMarketActivity">
+ <soap:operation soapAction="urn:getMarketActivity" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getFullQuote">
+ <soap:operation soapAction="urn:getFullQuote" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="SimpleStockQuoteServiceSOAP12Binding"
+ type="axis2:SimpleStockQuoteServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap12:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap12:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getMarketActivity">
+ <soap12:operation soapAction="urn:getMarketActivity" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getFullQuote">
+ <soap12:operation soapAction="urn:getFullQuote" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SecureStockQuoteService">
+ <wsdl:port name="SimpleStockQuoteServiceSOAP11port_https"
+ binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
+ <soap:address location="https://asankha:9002/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP11port_http1"
+ binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
+ <soap:address location="http://asankha:9000/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP12port_https"
+ binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
+ <soap12:address location="https://asankha:9002/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP12port_http1"
+ binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
+ <soap12:address location="http://asankha:9000/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Propchange: webservices/synapse/trunk/java/modules/samples/services/SecureStockQuoteService/wsdl/SimpleStockQuoteService.wsdl
------------------------------------------------------------------------------
svn:executable = *
Modified: webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/build.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/build.xml?rev=589964&r1=589963&r2=589964&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/build.xml (original)
+++ webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/build.xml Mon Oct 29 22:38:25 2007
@@ -56,6 +56,7 @@
<mkdir dir="${SSQ.dir}/META-INF"/>
<copy file="conf/services.xml" tofile="${SSQ.dir}/META-INF/services.xml"/>
+ <copy file="wsdl/SimpleStockQuoteService.wsdl" tofile="${SSQ.dir}/META-INF/service.wsdl"/>
<copy toDir="${SSQ.dir}">
<fileset dir="${classes}">
<include name="**/*.class"/>
Added: webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/SimpleStockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/SimpleStockQuoteService.wsdl?rev=589964&view=auto
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/SimpleStockQuoteService.wsdl (added)
+++ webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/SimpleStockQuoteService.wsdl Mon Oct 29 22:38:25 2007
@@ -0,0 +1,290 @@
+<!--
+ ~ 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 xmlns:axis2="http://services.samples"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:ns0="http://services.samples/xsd"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:ns1="http://org.apache.axis2/xsd"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://services.samples">
+ <wsdl:documentation>SimpleStockQuoteService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema xmlns:ns="http://services.samples/xsd" attributeFormDefault="qualified"
+ elementFormDefault="qualified" targetNamespace="http://services.samples/xsd">
+ <xs:element name="getFullQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetFullQuote"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetFullQuote" type="ns:GetFullQuote"/>
+ <xs:complexType name="GetFullQuote">
+ <xs:sequence>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getFullQuoteResponse">
+ <xs:complexType>
+
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="ns:GetFullQuoteResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetFullQuoteResponse" type="ns:GetFullQuoteResponse"/>
+ <xs:complexType name="GetFullQuoteResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" name="tradeHistory" nillable="true"
+ type="ns:TradingDay"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="TradingDay" type="ns:TradingDay"/>
+ <xs:complexType name="TradingDay">
+ <xs:sequence>
+ <xs:element name="day" type="xs:int"/>
+ <xs:element name="quote" nillable="true" type="ns:GetQuoteResponse"/>
+ </xs:sequence>
+
+ </xs:complexType>
+ <xs:element name="GetQuoteResponse" type="ns:GetQuoteResponse"/>
+ <xs:complexType name="GetQuoteResponse">
+ <xs:sequence>
+ <xs:element name="change" type="xs:double"/>
+ <xs:element name="earnings" type="xs:double"/>
+ <xs:element name="high" type="xs:double"/>
+ <xs:element name="last" type="xs:double"/>
+ <xs:element name="lastTradeTimestamp" nillable="true" type="xs:string"/>
+ <xs:element name="low" type="xs:double"/>
+ <xs:element name="marketCap" type="xs:double"/>
+ <xs:element name="name" nillable="true" type="xs:string"/>
+ <xs:element name="open" type="xs:double"/>
+ <xs:element name="peRatio" type="xs:double"/>
+ <xs:element name="percentageChange" type="xs:double"/>
+ <xs:element name="prevClose" type="xs:double"/>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+
+ <xs:element name="volume" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getMarketActivity">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetMarketActivity"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetMarketActivity" type="ns:GetMarketActivity"/>
+ <xs:complexType name="GetMarketActivity">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" name="symbols" nillable="true"
+ type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getMarketActivityResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true"
+ type="ns:GetMarketActivityResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetMarketActivityResponse" type="ns:GetMarketActivityResponse"/>
+ <xs:complexType name="GetMarketActivityResponse">
+ <xs:sequence/>
+ </xs:complexType>
+ <xs:element name="getQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" nillable="true" type="ns:GetQuote"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="GetQuote" type="ns:GetQuote"/>
+ <xs:complexType name="GetQuote">
+ <xs:sequence>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getQuoteResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="ns:GetQuoteResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="placeOrder">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="order" nillable="true" type="ns:PlaceOrder"/>
+
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PlaceOrder" type="ns:PlaceOrder"/>
+ <xs:complexType name="PlaceOrder">
+ <xs:sequence>
+ <xs:element name="price" type="xs:double"/>
+ <xs:element name="quantity" type="xs:int"/>
+ <xs:element name="symbol" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="placeOrderMessage">
+ <wsdl:part name="part1" element="ns0:placeOrder"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteMessage">
+ <wsdl:part name="part1" element="ns0:getQuote"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteResponse">
+ <wsdl:part name="part1" element="ns0:getQuoteResponse"/>
+ </wsdl:message>
+ <wsdl:message name="getMarketActivityMessage">
+ <wsdl:part name="part1" element="ns0:getMarketActivity"/>
+ </wsdl:message>
+ <wsdl:message name="getMarketActivityResponse">
+ <wsdl:part name="part1" element="ns0:getMarketActivityResponse"/>
+ </wsdl:message>
+ <wsdl:message name="getFullQuoteMessage">
+ <wsdl:part name="part1" element="ns0:getFullQuote"/>
+ </wsdl:message>
+ <wsdl:message name="getFullQuoteResponse">
+ <wsdl:part name="part1" element="ns0:getFullQuoteResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="SimpleStockQuoteServicePortType">
+ <wsdl:operation name="placeOrder">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:placeOrderMessage" wsaw:Action="urn:placeOrder"/>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getQuoteMessage" wsaw:Action="urn:getQuote"/>
+ <wsdl:output message="axis2:getQuoteResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="getMarketActivity">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getMarketActivityMessage"
+ wsaw:Action="urn:getMarketActivity"/>
+ <wsdl:output message="axis2:getMarketActivityResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="getFullQuote">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getFullQuoteMessage" wsaw:Action="urn:getFullQuote"/>
+ <wsdl:output message="axis2:getFullQuoteResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="SimpleStockQuoteServiceSOAP11Binding"
+ type="axis2:SimpleStockQuoteServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getMarketActivity">
+ <soap:operation soapAction="urn:getMarketActivity" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getFullQuote">
+ <soap:operation soapAction="urn:getFullQuote" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="SimpleStockQuoteServiceSOAP12Binding"
+ type="axis2:SimpleStockQuoteServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap12:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap12:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getMarketActivity">
+ <soap12:operation soapAction="urn:getMarketActivity" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="getFullQuote">
+ <soap12:operation soapAction="urn:getFullQuote" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SimpleStockQuoteService">
+ <wsdl:port name="SimpleStockQuoteServiceSOAP11port_https"
+ binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
+ <soap:address location="https://asankha:9002/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP11port_http1"
+ binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
+ <soap:address location="http://asankha:9000/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP12port_https"
+ binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
+ <soap12:address location="https://asankha:9002/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP12port_http1"
+ binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
+ <soap12:address location="http://asankha:9000/soap/SimpleStockQuoteService"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Propchange: webservices/synapse/trunk/java/modules/samples/services/SimpleStockQuoteService/wsdl/SimpleStockQuoteService.wsdl
------------------------------------------------------------------------------
svn:executable = *
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org