The following operations are supported. For a formal definition,
please review the
Service Description.
Web Service Links
Namespace Children of ::stock2
Namespace Code for ::stock2
namespace eval ::stock2 {
variable bindMap {https://highfivediet.com/stock2/StockOperation StockOperation https://highfivediet.com/stock2/StocksOperation StocksOperation}
variable binding soap::documentLiteral
variable bindingName stock2SoapBind
variable definitions {<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions targetNamespace="https://home.highfivediet.com/twist/stockquoter2" xmlns:tns="https://home.highfivediet.com/twist/stockquoter2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:whttp="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema targetNamespace="https://home.highfivediet.com/twist/stockquoter2" elementFormDefault="qualified">
<xsd:simpleType name="symbol">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="MSFT"/>
<xsd:enumeration value="WMT"/>
<xsd:enumeration value="XOM"/>
<xsd:enumeration value="GM"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="GE"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="verbose">
<xsd:restriction base="xsd:boolean"/>
</xsd:simpleType>
<xsd:simpleType name="quote">
<xsd:restriction base="xsd:float"/>
</xsd:simpleType>
<xsd:simpleType name="trend">
<xsd:restriction base="xsd:integer">
<xsd:enumeration value="-1"/>
<xsd:enumeration value="0"/>
<xsd:enumeration value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="dailyMove">
<xsd:restriction base="xsd:float"/>
</xsd:simpleType>
<xsd:simpleType name="lastMove">
<xsd:restriction base="xsd:float"/>
</xsd:simpleType>
<xsd:simpleType name="name">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="dateOfChange">
<xsd:restriction base="xsd:dateTime"/>
</xsd:simpleType>
<xsd:complexType name="StockRequest">
<xsd:sequence>
<xsd:element form="Value" name="Symbol" maxOccurs="1" type="tns:symbol" minOccurs="1"/>
<xsd:element form="Value" name="Verbose" maxOccurs="1" default="1" type="tns:verbose" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StockResponse">
<xsd:sequence>
<xsd:element form="Value" name="Symbol" maxOccurs="1" type="tns:symbol" minOccurs="1"/>
<xsd:element form="Value" name="Quote" maxOccurs="1" type="tns:quote" minOccurs="1"/>
<xsd:element form="Value" name="DateOfChange" maxOccurs="1" type="tns:dateOfChange" minOccurs="0"/>
<xsd:element form="Value" name="Name" maxOccurs="1" type="tns:name" minOccurs="0" nillable="true"/>
<xsd:element form="Value" name="Trend" maxOccurs="1" type="tns:trend" minOccurs="0"/>
<xsd:element form="Value" name="DailyMove" maxOccurs="1" type="tns:dailyMove" minOccurs="0"/>
<xsd:element form="Value" name="LastMove" maxOccurs="1" type="tns:lastMove" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StocksRequest">
<xsd:sequence>
<xsd:element form="Value" name="Symbol" maxOccurs="8" default="MSFT" type="tns:symbol" minOccurs="1"/>
<xsd:element form="Value" name="Verbose" maxOccurs="1" default="1" type="tns:verbose" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StocksResponse">
<xsd:sequence>
<xsd:element form="Value" name="StockResponse" maxOccurs="8" type="tns:StockResponse" minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="StockRequest" type="tns:StockRequest"/>
<xsd:element name="StockResponse" type="tns:StockResponse"/>
<xsd:element name="StocksRequest" type="tns:StocksRequest"/>
<xsd:element name="StocksResponse" type="tns:StocksResponse"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="StockRequestMsg">
<wsdl:part name="parameters" element="tns:StockRequest"/>
</wsdl:message>
<wsdl:message name="StockResponseMsg">
<wsdl:part name="parameters" element="tns:StockResponse"/>
</wsdl:message>
<wsdl:message name="StocksRequestMsg">
<wsdl:part name="parameters" element="tns:StocksRequest"/>
</wsdl:message>
<wsdl:message name="StocksResponseMsg">
<wsdl:part name="parameters" element="tns:StocksResponse"/>
</wsdl:message>
<wsdl:portType name="stock2PortType">
<wsdl:operation name="StockOperation">
<wsdl:input message="tns:StockRequestMsg"/>
<wsdl:output message="tns:StockResponseMsg"/>
</wsdl:operation>
<wsdl:operation name="StocksOperation">
<wsdl:input message="tns:StocksRequestMsg"/>
<wsdl:output message="tns:StocksResponseMsg"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="stock2SoapBind" type="tns:stock2PortType">
<wsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="StockOperation">
<wsoap:operation style="document" soapAction="https://home.highfivediet.com/stock2/StockOperation"/>
<wsdl:input>
<wsoap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<wsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="StocksOperation">
<wsoap:operation style="document" soapAction="https://home.highfivediet.com/stock2/StocksOperation"/>
<wsdl:input>
<wsoap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<wsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="stock2Service">
<wsdl:port name="stock2Port" binding="tns:stock2SoapBind">
<wsoap:address location="http://home.highfivediet.com/twist/stockquoter2/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>}
variable documentLinks {config ::stock2 simpleTypes ::wsdb::types::stock2 complexTypes ::wsdb::elements::stock2 messages ::wsdb::messages::stock2 operations ::wsdb::operations::stock2 portTypes ::wsdb::portTypes::stock2 port ::wsdb::ports::stock2Port binding ::wsdb::bindings::stock2SoapBind service ::wsdb::services::stock2Service server ::wsdb::servers::stock2Server}
variable elements
set elements(StocksRequest) {{
{Symbol!stock2::symbol {maxOccurs 8 default "MSFT"}}
{Verbose!stock2::verbose {minOccurs 0 default "1"}}
} {Symbol Verbose}}
set elements(StockRequest) {{
{Symbol!stock2::symbol}
{Verbose!stock2::verbose {minOccurs 0 default "1"}}
} {Symbol Verbose}}
set elements(StocksResponse) {{
{StockResponse!elements::stock2::StockResponse {maxOccurs 8}}
} StockResponse}
set elements(StockResponse) {{
{Symbol!stock2::symbol }
{Quote!stock2::quote }
{DateOfChange!stock2::dateOfChange {minOccurs 0}}
{Name!stock2::name {minOccurs 0 nillable true}}
{Trend!stock2::trend {minOccurs 0}}
{DailyMove!stock2::dailyMove {minOccurs 0}}
{LastMove!stock2::lastMove {minOccurs 0}}
} {Symbol Quote DateOfChange Name Trend DailyMove LastMove}}
variable frozen 0
variable host highfivediet.com
variable hostHeader highfivediet.com
variable hostHeaderList highfivediet.com
variable operation StocksOperation
variable operations {StockOperation StocksOperation}
variable port 80
variable portName stock2Port
variable portType stock2PortType
variable protocol https
variable schemaIsInitialized 1
variable serverName stock2Server
variable serviceName stock2Service
variable showDocument 1
variable soapActionBase https://highfivediet.com/stock2
variable targetNamespace https://home.highfivediet.com/twist/stockquoter2
variable tclNamespace ::stock2
variable types
set types(dateOfChange) {base xsd::dateTime}
set types(name) {base xsd::string}
set types(trend) {base xsd::integer enum {-1 0 1}}
set types(dailyMove) {base xsd::float}
set types(quote) {base xsd::float}
set types(verbose) {base xsd::boolean}
set types(symbol) {base xsd::string enum {MSFT WMT XOM GM F GE}}
set types(lastMove) {base xsd::float}
variable url /twist/stockquoter2/
variable xmlPrefix stock2
}
Procedures in ::stock2
proc ::stock2::Stock {
Symbol
{Verbose 1}
} {
set StockValue [format %0.2f [expr 25.00 + [ns_rand 4].[format %0.2d [ns_rand 99]]]]
if {$Verbose} {
return [list $Symbol $StockValue 2006-04-11T00:00:00Z "SomeName Corp. " 1 0.75 0.10]
} else {
return [list $Symbol $StockValue]
}
}
proc ::stock2::Stocks {
{Symbol MSFT}
{Verbose 1}
} {
set resultList [list]
foreach symbol $Symbol {
lappend resultList [Stock $symbol $Verbose]
}
return $resultList
}