<?xml version='1.0' encoding='UTF-8'?>

<definitions name="currency" targetNamespace="urn:currency" xmlns:typens="urn:currency" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:currency"><xsd:element name="string" type="xsd:string"></xsd:element></xsd:schema></wsdl:types>
    <message name="getCurrencyList"/>
	<message name="getCurrencyListResponse">
		<part name="getCurrencyListReturn" type="xsd:anyType"/>
	</message>
	<message name="getExchange">
		<part name="code" type="xsd:integer"/>
		<part name="date" type="xsd:string"/>
	</message>
	<message name="getExchangeResponse">
		<part name="getExchangeReturn" type="xsd:float"/>
	</message>
	<portType name="CurrencyExchangePortType">
		<operation name="getCurrencyList">
			<documentation>
				Retrievs all available currencies
			</documentation>
			<input message="typens:getCurrencyList"/>
			<output message="typens:getCurrencyListResponse"/>
		</operation>
		<operation name="getExchange">
			<documentation>
				Retrievs exchange value for a given currency
.
			</documentation>
			<input message="typens:getExchange"/>
			<output message="typens:getExchangeResponse"/>
		</operation>
	</portType>
	<binding name="CurrencyExchangeBinding" type="typens:CurrencyExchangePortType">
		<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="getCurrencyList">
			<soap:operation soapAction="urn:CurrencyExchangeAction"/>
			<input>
				<soap:body namespace="urn:currency" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</input>
			<output>
				<soap:body namespace="urn:currency" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</output>
		</operation>
		<operation name="getExchange">
			<soap:operation soapAction="urn:CurrencyExchangeAction"/>
			<input>
				<soap:body namespace="urn:currency" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</input>
			<output>
				<soap:body namespace="urn:currency" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</output>
		</operation>
	</binding>
	<service name="currencyService">
		<port name="CurrencyExchangePort" binding="typens:CurrencyExchangeBinding">
			<soap:address location="http://mikhailstadnik.com/ctws/"/>
		</port>
	</service>
</definitions>

