Skip to content

Instantly share code, notes, and snippets.

@esshka
Created April 14, 2016 08:17
Show Gist options
  • Save esshka/21c30a57d680bdbec0bde0f9913648d6 to your computer and use it in GitHub Desktop.
Save esshka/21c30a57d680bdbec0bde0f9913648d6 to your computer and use it in GitHub Desktop.
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://v1.currency.integration.commons.tain.se" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="currency_rate_service_soap" targetNamespace="http://v1.currency.integration.commons.tain.se">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://v1.currency.integration.commons.tain.se">
<xsd:complexType name="getCurrencyRates">
<xsd:sequence>
<xsd:element name="currencyRatesRequest" type="tns:currencyRateRequestBean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="currencyRateRequestBean">
<xsd:sequence>
<xsd:element name="currencyRateRequest" type="tns:currencyRateRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="currencyRateRequest">
<xsd:sequence>
<xsd:element name="date" type="xsd:dateTime"/>
<xsd:element name="sourceCurrency" type="xsd:string"/>
<xsd:element name="targetCurrency" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="getCurrencyRatesResponse">
<xsd:sequence>
<xsd:element name="return" type="tns:currencyRateResponseBean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="currencyRateResponseBean">
<xsd:sequence>
<xsd:element name="currencyRateResponse" type="tns:currencyRateResponse"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="currencyRateResponse">
<xsd:sequence>
<xsd:element name="actualDate" type="xsd:dateTime"/>
<xsd:element name="conversionRate" type="xsd:decimal"/>
<xsd:element name="requestDate" type="xsd:dateTime"/>
<xsd:element name="sourceCurrency" type="xsd:string"/>
<xsd:element name="targetCurrency" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</schema>
</types>
<message name="getCurrencyRates">
<part name="getCurrencyRates" type="tns:getCurrencyRates"/>
</message>
<message name="getCurrencyRatesResponse">
<part name="getCurrencyRatesResponse" type="tns:getCurrencyRatesResponse"/>
</message>
<portType name="currency_rate_service_soap_port">
<operation name="getCurrencyRates">
<input message="tns:getCurrencyRates"/>
<output message="tns:getCurrencyRatesResponse"/>
</operation>
</portType>
<binding name="currency_rate_service_soap_binding" type="tns:currency_rate_service_soap_port">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getCurrencyRates">
<soap:operation soapAction="getCurrencyRates"/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://v1.currency.integration.commons.tain.se"/>
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://v1.currency.integration.commons.tain.se"/>
</output>
</operation>
</binding>
<service name="service">
<port name="currency_rate_service_soap_port" binding="tns:currency_rate_service_soap_binding">
<soap:address location="http://localhost:3000/currency_rate_service_soap/action"/>
</port>
</service>
</definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment