Korale Gamaralalage Nandika Chandrasiri Jayawardana | aa71514 | 2010-08-18 17:39:59 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | * Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | * contributor license agreements. See the NOTICE file distributed with |
| 6 | * this work for additional information regarding copyright ownership. |
| 7 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 | * (the "License"); you may not use this file except in compliance with |
| 9 | * the License. You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | */ |
| 19 | --> |
| 20 | <xsd:schema |
| 21 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 22 | targetNamespace="http://w3.ibm.com/schemas/services/2002/11/15/stockquote" |
| 23 | xmlns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"> |
| 24 | |
| 25 | <xsd:complexType name="quote"> |
| 26 | <xsd:sequence> |
| 27 | <xsd:element name="symbol" type="xsd:string"/> |
| 28 | <xsd:element name="volume" type="xsd:integer"/> |
| 29 | <xsd:element name="lastTrade" type="lastTradeType"/> |
| 30 | <xsd:element name="change" type="changeType"/> |
| 31 | </xsd:sequence> |
| 32 | </xsd:complexType> |
| 33 | |
| 34 | <xsd:complexType name="changeType"> |
| 35 | <xsd:sequence> |
| 36 | <xsd:element name="dollar" type="xsd:float"/> |
| 37 | <xsd:element name="percent" type="xsd:float"/> |
| 38 | </xsd:sequence> |
| 39 | </xsd:complexType> |
| 40 | |
| 41 | <xsd:complexType name="lastTradeType"> |
| 42 | <xsd:sequence> |
| 43 | <xsd:element name="price" type="xsd:float"/> |
| 44 | <xsd:element name="date" type="xsd:long"/> |
| 45 | </xsd:sequence> |
| 46 | </xsd:complexType> |
| 47 | |
| 48 | <!-- Methods signatures --> |
| 49 | <xsd:element name="getStockQuote"> |
| 50 | <xsd:complexType> |
| 51 | <xsd:sequence> |
| 52 | <xsd:element name="symbol" type="xsd:string"/> |
| 53 | </xsd:sequence> |
| 54 | </xsd:complexType> |
| 55 | </xsd:element> |
| 56 | <xsd:element name="getStockQuoteResponse"> |
| 57 | <xsd:complexType> |
| 58 | <xsd:sequence> |
| 59 | <xsd:element name="returnQuote" type="quote"/> |
| 60 | </xsd:sequence> |
| 61 | </xsd:complexType> |
| 62 | </xsd:element> |
| 63 | |
| 64 | </xsd:schema> |