Skip to content

WDSL demo

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?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>