Skip to main content

WDSL demo

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://emta-v6.x-road.eu"
xmlns:xrd="http://x-road.eu/xsd/xroad.xsd" name="kmd" targetNamespace="http://emta-v6.x-road.eu">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://emta-v6.x-road.eu">
<import namespace="http://x-road.eu/xsd/xroad.xsd" schemaLocation="http://x-road.eu/xsd/xroad.xsd"/>
<element name="kmkr">
<complexType>
<sequence>
<element name="keha" type="tns:KmkrRequestType"/>
</sequence>
</complexType>
</element>
<complexType name="KmkrRequestType">
<sequence>
<element minOccurs="0" name="kood" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Registri- või isikukood või KMKR nr</xrd:title>
<xrd:notes xml:lang="et">Äriregistri registrikood, isikukood või KMKR number</xrd:notes>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="algus" type="date">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Algus</xrd:title>
<xrd:notes xml:lang="et">Küsitava perioodi algus</xrd:notes>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="lopp" type="date">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Lõpp</xrd:title>
<xrd:notes xml:lang="et">Küsitava perioodi lõpp</xrd:notes>
</appinfo>
</annotation>
</element>
<element name="lk" type="positiveInteger">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Lehekülg</xrd:title>
<xrd:notes xml:lang="et">1 (1-1000), 2 (1001-2000), 3...</xrd:notes>
</appinfo>
</annotation>
</element>
</sequence>
</complexType>
<element name="kmkrResponse">
<complexType>
<sequence>
<element name="paring" type="tns:KmkrRequestType"/>
<element name="keha" type="tns:KmkrResponseType"/>
</sequence>
</complexType>
</element>
<complexType name="KmkrResponseType">
<sequence>
<element maxOccurs="1000" minOccurs="0" name="rida">
<complexType>
<sequence>
<element name="kood" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Registrikood või isikukood</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="teine_kood" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">FIE ärikoodid</xrd:title>
</appinfo>
</annotation>
</element>
<element name="nimi" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Käibemaksukohustuslase nimi</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="esindus_kood" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Esindusisiku kood</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="esindus_nimi" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Esindusisiku nimi</xrd:title>
</appinfo>
</annotation>
</element>
<element name="kmkr_nr" type="string">
<annotation>
<appinfo>
<xrd:title xml:lang="et">KMKR number</xrd:title>
</appinfo>
</annotation>
</element>
<element name="periood_nr" type="integer">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Kohustuse perioodi number (jrk nr)</xrd:title>
</appinfo>
</annotation>
</element>
<element name="kmk_algus" type="date">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Kohustuse alguskuupäev</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="kmk_algus_tyh" type="date">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Käibemaksukohustusluse alguse tühistamine</xrd:title>
</appinfo>
</annotation>
</element>
<element name="kmk_algus_sis" type="dateTime">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Registreerimise otsuse kuupäev</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="kmk_lopp" type="date">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Kohustuse lõppkuupäev</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="kmk_lopp_tyh" type="date">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Käibemaksukohustusluse lõpu tühistamine</xrd:title>
</appinfo>
</annotation>
</element>
<element minOccurs="0" name="kmk_lopp_sis" type="dateTime">
<annotation>
<appinfo>
<xrd:title xml:lang="et">Registrist kustutamise otsuse kuupäev</xrd:title>
</appinfo>
</annotation>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="kmkr">
<wsdl:part element="tns:kmkr" name="parameters"/>
</wsdl:message>
<wsdl:message name="kmkrResponse">
<wsdl:part element="tns:kmkrResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="xrdHeader">
<wsdl:part element="xrd:client" name="client"/>
<wsdl:part element="xrd:service" name="service"/>
<wsdl:part element="xrd:id" name="id"/>
<wsdl:part element="xrd:userId" name="userId"/>
<wsdl:part element="xrd:issue" name="issue"/>
<wsdl:part element="xrd:protocolVersion" name="protocolVersion"/>
</wsdl:message>
<wsdl:portType name="webServiceInterface">
<wsdl:operation name="kmkr">
<wsdl:documentation>
<xrd:title xml:lang="et">Käibemaksukohustuslaste register</xrd:title>
</wsdl:documentation>
<wsdl:input message="tns:kmkr"/>
<wsdl:output message="tns:kmkrResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="soapBindings" type="tns:webServiceInterface">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="kmkr">
<soap:operation soapAction=""/>
<xrd:version>v1</xrd:version>
<wsdl:input>
<soap:header message="tns:xrdHeader" part="client" use="literal"/>
<soap:header message="tns:xrdHeader" part="service" use="literal"/>
<soap:header message="tns:xrdHeader" part="id" use="literal"/>
<soap:header message="tns:xrdHeader" part="protocolVersion" use="literal"/>
<soap:header message="tns:xrdHeader" part="userId" use="literal"/>
<soap:header message="tns:xrdHeader" part="issue" use="literal"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:header message="tns:xrdHeader" part="client" use="literal"/>
<soap:header message="tns:xrdHeader" part="service" use="literal"/>
<soap:header message="tns:xrdHeader" part="id" use="literal"/>
<soap:header message="tns:xrdHeader" part="protocolVersion" use="literal"/>
<soap:header message="tns:xrdHeader" part="userId" use="literal"/>
<soap:header message="tns:xrdHeader" part="issue" use="literal"/>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="webService">
<wsdl:port binding="tns:soapBindings" name="port">
<soap:address location="http://SERVER_URL"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>