sepafm 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -0
  3. data/.travis.yml +1 -1
  4. data/lib/sepa/application_request.rb +30 -31
  5. data/lib/sepa/attribute_checks.rb +44 -15
  6. data/lib/sepa/banks/danske/danske_response.rb +21 -0
  7. data/lib/sepa/banks/danske/soap_danske.rb +7 -18
  8. data/lib/sepa/banks/nordea/nordea_response.rb +13 -0
  9. data/lib/sepa/banks/nordea/soap_nordea.rb +3 -63
  10. data/lib/sepa/banks/op/op_response.rb +76 -0
  11. data/lib/sepa/banks/op/soap_op.rb +14 -0
  12. data/lib/sepa/certificates/op_root_certificate.cer +30 -0
  13. data/lib/sepa/client.rb +20 -26
  14. data/lib/sepa/response.rb +28 -7
  15. data/lib/sepa/soap_builder.rb +65 -8
  16. data/lib/sepa/utilities.rb +8 -21
  17. data/lib/sepa/version.rb +1 -1
  18. data/lib/sepa/wsdl/wsdl_op_cert_production.xml +156 -0
  19. data/lib/sepa/wsdl/wsdl_op_cert_test.xml +157 -0
  20. data/lib/sepa/wsdl/wsdl_op_production.xml +234 -0
  21. data/lib/sepa/wsdl/wsdl_op_test.xml +234 -0
  22. data/lib/sepa/xml_schemas/op/ApplicationRequest_20080918.xsd +135 -0
  23. data/lib/sepa/xml_schemas/op/ApplicationResponse_20080918.xsd +311 -0
  24. data/lib/sepa/xml_schemas/op/CertApplicationRequest_200812.xsd +105 -0
  25. data/lib/sepa/xml_schemas/op/CertApplicationResponse_200812.xsd +88 -0
  26. data/lib/sepa/xml_templates/application_request/{create_certificate.xml → danske/create_certificate.xml} +8 -8
  27. data/lib/sepa/xml_templates/application_request/{danske_get_bank_certificate.xml → danske/get_bank_certificate.xml} +3 -3
  28. data/lib/sepa/xml_templates/application_request/download_file.xml +10 -11
  29. data/lib/sepa/xml_templates/application_request/download_file_list.xml +9 -10
  30. data/lib/sepa/xml_templates/application_request/nordea/get_certificate.xml +11 -0
  31. data/lib/sepa/xml_templates/application_request/op/get_certificate.xml +12 -0
  32. data/lib/sepa/xml_templates/application_request/op/get_service_certificates.xml +10 -0
  33. data/lib/sepa/xml_templates/soap/{create_certificate.xml → danske/create_certificate.xml} +6 -6
  34. data/lib/sepa/xml_templates/soap/{danske_get_bank_certificate.xml → danske/get_bank_certificate.xml} +5 -5
  35. data/lib/sepa/xml_templates/soap/nordea/get_certificate.xml +15 -0
  36. data/lib/sepa/xml_templates/soap/op/get_certificate.xml +14 -0
  37. data/lib/sepa/xml_templates/soap/op/get_service_certificates.xml +14 -0
  38. data/lib/sepafm.rb +36 -0
  39. data/readme.md +9 -6
  40. data/sepafm.gemspec +8 -8
  41. data/test/custom_assertions.rb +20 -0
  42. data/test/sepa/banks/op/op_application_request_test.rb +63 -0
  43. data/test/sepa/banks/op/op_cert_application_request_test.rb +77 -0
  44. data/test/sepa/banks/op/op_cert_request_soap_builder_test.rb +62 -0
  45. data/test/sepa/banks/op/op_generic_soap_builder_test.rb +52 -0
  46. data/test/sepa/banks/op/op_response_test.rb +13 -0
  47. data/test/sepa/client_test.rb +35 -1
  48. data/test/sepa/fixtures.rb +82 -0
  49. data/test/sepa/sepa_test.rb +1 -1
  50. data/test/test_helper.rb +1 -0
  51. data/test_client/data/certs_example.rb +9 -0
  52. data/test_client/data/params_example.rb +110 -0
  53. data/test_client/test_client.rb +61 -0
  54. metadata +42 -12
  55. data/lib/sepa/xml_templates/application_request/get_certificate.xml +0 -11
  56. data/lib/sepa/xml_templates/soap/get_certificate.xml +0 -14
@@ -0,0 +1,234 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <wsdl:definitions targetNamespace="http://bxd.fi/CorporateFileService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://model.bxd.fi" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://bxd.fi/CorporateFileService" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
3
+ <wsdl:types>
4
+ <xsd:schema targetNamespace="http://model.bxd.fi" elementFormDefault="qualified" attributeFormDefault="qualified">
5
+ <xsd:complexType name="RequestHeader">
6
+ <xsd:sequence>
7
+ <xsd:element name="SenderId" type="xsd:string" nillable="false"/>
8
+ <xsd:element name="RequestId" type="xsd:string" nillable="false"/>
9
+ <xsd:element name="Timestamp" type="xsd:dateTime" nillable="false"/>
10
+ <xsd:element name="Language" type="xsd:string" nillable="true"/>
11
+ <xsd:element name="UserAgent" type="xsd:string" nillable="true"/>
12
+ <xsd:element name="ReceiverId" type="xsd:string" nillable="false"/>
13
+ </xsd:sequence>
14
+ </xsd:complexType>
15
+ <xsd:complexType name="ResponseHeader">
16
+ <xsd:sequence>
17
+ <xsd:element name="SenderId" type="xsd:string" nillable="false"/>
18
+ <xsd:element name="RequestId" type="xsd:string" nillable="false"/>
19
+ <xsd:element name="Timestamp" type="xsd:dateTime" nillable="false"/>
20
+ <xsd:element name="ResponseCode" type="xsd:string" nillable="true"/>
21
+ <xsd:element name="ResponseText" type="xsd:string" nillable="true"/>
22
+ <xsd:element name="ReceiverId" type="xsd:string" nillable="false"/>
23
+ </xsd:sequence>
24
+ </xsd:complexType>
25
+ <xsd:complexType name="UploadFileRequest">
26
+ <xsd:sequence>
27
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
28
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
29
+ </xsd:sequence>
30
+ </xsd:complexType>
31
+ <xsd:complexType name="UploadFileResponse">
32
+ <xsd:sequence>
33
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
34
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
35
+ </xsd:sequence>
36
+ </xsd:complexType>
37
+ <xsd:complexType name="DownloadFileListRequest">
38
+ <xsd:sequence>
39
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
40
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
41
+ </xsd:sequence>
42
+ </xsd:complexType>
43
+ <xsd:complexType name="DownloadFileListResponse">
44
+ <xsd:sequence>
45
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
46
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
47
+ </xsd:sequence>
48
+ </xsd:complexType>
49
+ <xsd:complexType name="DownloadFileRequest">
50
+ <xsd:sequence>
51
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
52
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
53
+ </xsd:sequence>
54
+ </xsd:complexType>
55
+ <xsd:complexType name="DownloadFileResponse">
56
+ <xsd:sequence>
57
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
58
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
59
+ </xsd:sequence>
60
+ </xsd:complexType>
61
+ <xsd:complexType name="DeleteFileRequest">
62
+ <xsd:sequence>
63
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
64
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
65
+ </xsd:sequence>
66
+ </xsd:complexType>
67
+ <xsd:complexType name="DeleteFileResponse">
68
+ <xsd:sequence>
69
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
70
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
71
+ </xsd:sequence>
72
+ </xsd:complexType>
73
+ <xsd:complexType name="GetUserInfoRequest">
74
+ <xsd:sequence>
75
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
76
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
77
+ </xsd:sequence>
78
+ </xsd:complexType>
79
+ <xsd:complexType name="GetUserInfoResponse">
80
+ <xsd:sequence>
81
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
82
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
83
+ </xsd:sequence>
84
+ </xsd:complexType>
85
+ <xsd:complexType name="FileServiceFaultDetail">
86
+ <xsd:sequence>
87
+ <xsd:element minOccurs="0" maxOccurs="1" name="category" type="xsd:string"/>
88
+ <xsd:element minOccurs="0" maxOccurs="1" name="code" type="xsd:string"/>
89
+ </xsd:sequence>
90
+ </xsd:complexType>
91
+ </xsd:schema>
92
+ <xsd:schema targetNamespace="http://bxd.fi/CorporateFileService" elementFormDefault="qualified" attributeFormDefault="qualified">
93
+ <xsd:element name="uploadFilein" type="ns1:UploadFileRequest"/>
94
+ <xsd:element name="uploadFileout" type="ns1:UploadFileResponse"/>
95
+ <xsd:element name="downloadFileListin" type="ns1:DownloadFileListRequest"/>
96
+ <xsd:element name="downloadFileListout" type="ns1:DownloadFileListResponse"/>
97
+ <xsd:element name="downloadFilein" type="ns1:DownloadFileRequest"/>
98
+ <xsd:element name="downloadFileout" type="ns1:DownloadFileResponse"/>
99
+ <xsd:element name="deleteFilein" type="ns1:DeleteFileRequest"/>
100
+ <xsd:element name="deleteFileout" type="ns1:DeleteFileResponse"/>
101
+ <xsd:element name="getUserInfoin" type="ns1:GetUserInfoRequest"/>
102
+ <xsd:element name="getUserInfoout" type="ns1:GetUserInfoResponse"/>
103
+ <xsd:element name="FileServiceFaultElement" type="ns1:FileServiceFaultDetail"/>
104
+ </xsd:schema>
105
+ </wsdl:types>
106
+ <wsdl:message name="FileServiceFault">
107
+ <wsdl:part name="FileServiceFault" element="tns:FileServiceFaultElement"/>
108
+ </wsdl:message>
109
+ <wsdl:message name="uploadFileResponse">
110
+ <wsdl:part element="tns:uploadFileout" name="uploadFileout"/>
111
+ </wsdl:message>
112
+ <wsdl:message name="uploadFileRequest">
113
+ <wsdl:part element="tns:uploadFilein" name="uploadFilein"/>
114
+ </wsdl:message>
115
+ <wsdl:message name="downloadFileListResponse">
116
+ <wsdl:part element="tns:downloadFileListout" name="downloadFileListout"/>
117
+ </wsdl:message>
118
+ <wsdl:message name="downloadFileListRequest">
119
+ <wsdl:part element="tns:downloadFileListin" name="downloadFileListin"/>
120
+ </wsdl:message>
121
+ <wsdl:message name="downloadFileResponse">
122
+ <wsdl:part element="tns:downloadFileout" name="downloadFileout"/>
123
+ </wsdl:message>
124
+ <wsdl:message name="downloadFileRequest">
125
+ <wsdl:part element="tns:downloadFilein" name="downloadFilein"/>
126
+ </wsdl:message>
127
+ <wsdl:message name="deleteFileResponse">
128
+ <wsdl:part element="tns:deleteFileout" name="deleteFileout"/>
129
+ </wsdl:message>
130
+ <wsdl:message name="deleteFileRequest">
131
+ <wsdl:part element="tns:deleteFilein" name="deleteFilein"/>
132
+ </wsdl:message>
133
+ <wsdl:message name="getUserInfoRequest">
134
+ <wsdl:part element="tns:getUserInfoin" name="getUserInfoin"/>
135
+ </wsdl:message>
136
+ <wsdl:message name="getUserInfoResponse">
137
+ <wsdl:part element="tns:getUserInfoout" name="getUserInfoout"/>
138
+ </wsdl:message>
139
+ <wsdl:portType name="CorporateFileServicePortType">
140
+ <wsdl:operation name="uploadFile">
141
+ <wsdl:input message="tns:uploadFileRequest" name="uploadFileRequest"/>
142
+ <wsdl:output message="tns:uploadFileResponse" name="uploadFileResponse"/>
143
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
144
+ </wsdl:operation>
145
+ <wsdl:operation name="downloadFileList">
146
+ <wsdl:input message="tns:downloadFileListRequest" name="downloadFileListRequest"/>
147
+ <wsdl:output message="tns:downloadFileListResponse" name="downloadFileListResponse"/>
148
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
149
+ </wsdl:operation>
150
+ <wsdl:operation name="downloadFile">
151
+ <wsdl:input message="tns:downloadFileRequest" name="downloadFileRequest"/>
152
+ <wsdl:output message="tns:downloadFileResponse" name="downloadFileResponse"/>
153
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
154
+ </wsdl:operation>
155
+ <wsdl:operation name="deleteFile">
156
+ <wsdl:input message="tns:deleteFileRequest" name="deleteFileRequest"/>
157
+ <wsdl:output message="tns:deleteFileResponse" name="deleteFileResponse"/>
158
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
159
+ </wsdl:operation>
160
+ <wsdl:operation name="getUserInfo">
161
+ <wsdl:input message="tns:getUserInfoRequest" name="getUserInfoRequest"/>
162
+ <wsdl:output message="tns:getUserInfoResponse" name="getUserInfoResponse"/>
163
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
164
+ </wsdl:operation>
165
+ </wsdl:portType>
166
+ <wsdl:binding name="CorporateFileServiceHttpBinding" type="tns:CorporateFileServicePortType">
167
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
168
+ <wsdl:operation name="uploadFile">
169
+ <wsdlsoap:operation soapAction=""/>
170
+ <wsdl:input name="uploadFileRequest">
171
+ <wsdlsoap:body use="literal"/>
172
+ </wsdl:input>
173
+ <wsdl:output name="uploadFileResponse">
174
+ <wsdlsoap:body use="literal"/>
175
+ </wsdl:output>
176
+ <wsdl:fault name="FileServiceFault">
177
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
178
+ </wsdl:fault>
179
+ </wsdl:operation>
180
+ <wsdl:operation name="downloadFileList">
181
+ <wsdlsoap:operation soapAction=""/>
182
+ <wsdl:input name="downloadFileListRequest">
183
+ <wsdlsoap:body use="literal"/>
184
+ </wsdl:input>
185
+ <wsdl:output name="downloadFileListResponse">
186
+ <wsdlsoap:body use="literal"/>
187
+ </wsdl:output>
188
+ <wsdl:fault name="FileServiceFault">
189
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
190
+ </wsdl:fault>
191
+ </wsdl:operation>
192
+ <wsdl:operation name="downloadFile">
193
+ <wsdlsoap:operation soapAction=""/>
194
+ <wsdl:input name="downloadFileRequest">
195
+ <wsdlsoap:body use="literal"/>
196
+ </wsdl:input>
197
+ <wsdl:output name="downloadFileResponse">
198
+ <wsdlsoap:body use="literal"/>
199
+ </wsdl:output>
200
+ <wsdl:fault name="FileServiceFault">
201
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
202
+ </wsdl:fault>
203
+ </wsdl:operation>
204
+ <wsdl:operation name="deleteFile">
205
+ <wsdlsoap:operation soapAction=""/>
206
+ <wsdl:input name="deleteFileRequest">
207
+ <wsdlsoap:body use="literal"/>
208
+ </wsdl:input>
209
+ <wsdl:output name="deleteFileResponse">
210
+ <wsdlsoap:body use="literal"/>
211
+ </wsdl:output>
212
+ <wsdl:fault name="FileServiceFault">
213
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
214
+ </wsdl:fault>
215
+ </wsdl:operation>
216
+ <wsdl:operation name="getUserInfo">
217
+ <wsdlsoap:operation soapAction=""/>
218
+ <wsdl:input name="getUserInfoRequest">
219
+ <wsdlsoap:body use="literal"/>
220
+ </wsdl:input>
221
+ <wsdl:output name="getUserInfoResponse">
222
+ <wsdlsoap:body use="literal"/>
223
+ </wsdl:output>
224
+ <wsdl:fault name="FileServiceFault">
225
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
226
+ </wsdl:fault>
227
+ </wsdl:operation>
228
+ </wsdl:binding>
229
+ <wsdl:service name="CorporateFileService">
230
+ <wsdl:port binding="tns:CorporateFileServiceHttpBinding" name="CorporateFileServiceHttpPort">
231
+ <wsdlsoap:address location="https://wsk.op.fi/services/CorporateFileService"/>
232
+ </wsdl:port>
233
+ </wsdl:service>
234
+ </wsdl:definitions>
@@ -0,0 +1,234 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <wsdl:definitions targetNamespace="http://bxd.fi/CorporateFileService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://model.bxd.fi" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://bxd.fi/CorporateFileService" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
3
+ <wsdl:types>
4
+ <xsd:schema targetNamespace="http://model.bxd.fi" elementFormDefault="qualified" attributeFormDefault="qualified">
5
+ <xsd:complexType name="RequestHeader">
6
+ <xsd:sequence>
7
+ <xsd:element name="SenderId" type="xsd:string" nillable="false"/>
8
+ <xsd:element name="RequestId" type="xsd:string" nillable="false"/>
9
+ <xsd:element name="Timestamp" type="xsd:dateTime" nillable="false"/>
10
+ <xsd:element name="Language" type="xsd:string" nillable="true"/>
11
+ <xsd:element name="UserAgent" type="xsd:string" nillable="true"/>
12
+ <xsd:element name="ReceiverId" type="xsd:string" nillable="false"/>
13
+ </xsd:sequence>
14
+ </xsd:complexType>
15
+ <xsd:complexType name="ResponseHeader">
16
+ <xsd:sequence>
17
+ <xsd:element name="SenderId" type="xsd:string" nillable="false"/>
18
+ <xsd:element name="RequestId" type="xsd:string" nillable="false"/>
19
+ <xsd:element name="Timestamp" type="xsd:dateTime" nillable="false"/>
20
+ <xsd:element name="ResponseCode" type="xsd:string" nillable="true"/>
21
+ <xsd:element name="ResponseText" type="xsd:string" nillable="true"/>
22
+ <xsd:element name="ReceiverId" type="xsd:string" nillable="false"/>
23
+ </xsd:sequence>
24
+ </xsd:complexType>
25
+ <xsd:complexType name="UploadFileRequest">
26
+ <xsd:sequence>
27
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
28
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
29
+ </xsd:sequence>
30
+ </xsd:complexType>
31
+ <xsd:complexType name="UploadFileResponse">
32
+ <xsd:sequence>
33
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
34
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
35
+ </xsd:sequence>
36
+ </xsd:complexType>
37
+ <xsd:complexType name="DownloadFileListRequest">
38
+ <xsd:sequence>
39
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
40
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
41
+ </xsd:sequence>
42
+ </xsd:complexType>
43
+ <xsd:complexType name="DownloadFileListResponse">
44
+ <xsd:sequence>
45
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
46
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
47
+ </xsd:sequence>
48
+ </xsd:complexType>
49
+ <xsd:complexType name="DownloadFileRequest">
50
+ <xsd:sequence>
51
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
52
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
53
+ </xsd:sequence>
54
+ </xsd:complexType>
55
+ <xsd:complexType name="DownloadFileResponse">
56
+ <xsd:sequence>
57
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
58
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
59
+ </xsd:sequence>
60
+ </xsd:complexType>
61
+ <xsd:complexType name="DeleteFileRequest">
62
+ <xsd:sequence>
63
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
64
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
65
+ </xsd:sequence>
66
+ </xsd:complexType>
67
+ <xsd:complexType name="DeleteFileResponse">
68
+ <xsd:sequence>
69
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
70
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
71
+ </xsd:sequence>
72
+ </xsd:complexType>
73
+ <xsd:complexType name="GetUserInfoRequest">
74
+ <xsd:sequence>
75
+ <xsd:element name="RequestHeader" type="ns1:RequestHeader" nillable="false"/>
76
+ <xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
77
+ </xsd:sequence>
78
+ </xsd:complexType>
79
+ <xsd:complexType name="GetUserInfoResponse">
80
+ <xsd:sequence>
81
+ <xsd:element name="ResponseHeader" type="ns1:ResponseHeader" nillable="false"/>
82
+ <xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
83
+ </xsd:sequence>
84
+ </xsd:complexType>
85
+ <xsd:complexType name="FileServiceFaultDetail">
86
+ <xsd:sequence>
87
+ <xsd:element minOccurs="0" maxOccurs="1" name="category" type="xsd:string"/>
88
+ <xsd:element minOccurs="0" maxOccurs="1" name="code" type="xsd:string"/>
89
+ </xsd:sequence>
90
+ </xsd:complexType>
91
+ </xsd:schema>
92
+ <xsd:schema targetNamespace="http://bxd.fi/CorporateFileService" elementFormDefault="qualified" attributeFormDefault="qualified">
93
+ <xsd:element name="uploadFilein" type="ns1:UploadFileRequest"/>
94
+ <xsd:element name="uploadFileout" type="ns1:UploadFileResponse"/>
95
+ <xsd:element name="downloadFileListin" type="ns1:DownloadFileListRequest"/>
96
+ <xsd:element name="downloadFileListout" type="ns1:DownloadFileListResponse"/>
97
+ <xsd:element name="downloadFilein" type="ns1:DownloadFileRequest"/>
98
+ <xsd:element name="downloadFileout" type="ns1:DownloadFileResponse"/>
99
+ <xsd:element name="deleteFilein" type="ns1:DeleteFileRequest"/>
100
+ <xsd:element name="deleteFileout" type="ns1:DeleteFileResponse"/>
101
+ <xsd:element name="getUserInfoin" type="ns1:GetUserInfoRequest"/>
102
+ <xsd:element name="getUserInfoout" type="ns1:GetUserInfoResponse"/>
103
+ <xsd:element name="FileServiceFaultElement" type="ns1:FileServiceFaultDetail"/>
104
+ </xsd:schema>
105
+ </wsdl:types>
106
+ <wsdl:message name="FileServiceFault">
107
+ <wsdl:part name="FileServiceFault" element="tns:FileServiceFaultElement"/>
108
+ </wsdl:message>
109
+ <wsdl:message name="uploadFileResponse">
110
+ <wsdl:part element="tns:uploadFileout" name="uploadFileout"/>
111
+ </wsdl:message>
112
+ <wsdl:message name="uploadFileRequest">
113
+ <wsdl:part element="tns:uploadFilein" name="uploadFilein"/>
114
+ </wsdl:message>
115
+ <wsdl:message name="downloadFileListResponse">
116
+ <wsdl:part element="tns:downloadFileListout" name="downloadFileListout"/>
117
+ </wsdl:message>
118
+ <wsdl:message name="downloadFileListRequest">
119
+ <wsdl:part element="tns:downloadFileListin" name="downloadFileListin"/>
120
+ </wsdl:message>
121
+ <wsdl:message name="downloadFileResponse">
122
+ <wsdl:part element="tns:downloadFileout" name="downloadFileout"/>
123
+ </wsdl:message>
124
+ <wsdl:message name="downloadFileRequest">
125
+ <wsdl:part element="tns:downloadFilein" name="downloadFilein"/>
126
+ </wsdl:message>
127
+ <wsdl:message name="deleteFileResponse">
128
+ <wsdl:part element="tns:deleteFileout" name="deleteFileout"/>
129
+ </wsdl:message>
130
+ <wsdl:message name="deleteFileRequest">
131
+ <wsdl:part element="tns:deleteFilein" name="deleteFilein"/>
132
+ </wsdl:message>
133
+ <wsdl:message name="getUserInfoRequest">
134
+ <wsdl:part element="tns:getUserInfoin" name="getUserInfoin"/>
135
+ </wsdl:message>
136
+ <wsdl:message name="getUserInfoResponse">
137
+ <wsdl:part element="tns:getUserInfoout" name="getUserInfoout"/>
138
+ </wsdl:message>
139
+ <wsdl:portType name="CorporateFileServicePortType">
140
+ <wsdl:operation name="uploadFile">
141
+ <wsdl:input message="tns:uploadFileRequest" name="uploadFileRequest"/>
142
+ <wsdl:output message="tns:uploadFileResponse" name="uploadFileResponse"/>
143
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
144
+ </wsdl:operation>
145
+ <wsdl:operation name="downloadFileList">
146
+ <wsdl:input message="tns:downloadFileListRequest" name="downloadFileListRequest"/>
147
+ <wsdl:output message="tns:downloadFileListResponse" name="downloadFileListResponse"/>
148
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
149
+ </wsdl:operation>
150
+ <wsdl:operation name="downloadFile">
151
+ <wsdl:input message="tns:downloadFileRequest" name="downloadFileRequest"/>
152
+ <wsdl:output message="tns:downloadFileResponse" name="downloadFileResponse"/>
153
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
154
+ </wsdl:operation>
155
+ <wsdl:operation name="deleteFile">
156
+ <wsdl:input message="tns:deleteFileRequest" name="deleteFileRequest"/>
157
+ <wsdl:output message="tns:deleteFileResponse" name="deleteFileResponse"/>
158
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
159
+ </wsdl:operation>
160
+ <wsdl:operation name="getUserInfo">
161
+ <wsdl:input message="tns:getUserInfoRequest" name="getUserInfoRequest"/>
162
+ <wsdl:output message="tns:getUserInfoResponse" name="getUserInfoResponse"/>
163
+ <wsdl:fault name="FileServiceFault" message="tns:FileServiceFault"/>
164
+ </wsdl:operation>
165
+ </wsdl:portType>
166
+ <wsdl:binding name="CorporateFileServiceHttpBinding" type="tns:CorporateFileServicePortType">
167
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
168
+ <wsdl:operation name="uploadFile">
169
+ <wsdlsoap:operation soapAction=""/>
170
+ <wsdl:input name="uploadFileRequest">
171
+ <wsdlsoap:body use="literal"/>
172
+ </wsdl:input>
173
+ <wsdl:output name="uploadFileResponse">
174
+ <wsdlsoap:body use="literal"/>
175
+ </wsdl:output>
176
+ <wsdl:fault name="FileServiceFault">
177
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
178
+ </wsdl:fault>
179
+ </wsdl:operation>
180
+ <wsdl:operation name="downloadFileList">
181
+ <wsdlsoap:operation soapAction=""/>
182
+ <wsdl:input name="downloadFileListRequest">
183
+ <wsdlsoap:body use="literal"/>
184
+ </wsdl:input>
185
+ <wsdl:output name="downloadFileListResponse">
186
+ <wsdlsoap:body use="literal"/>
187
+ </wsdl:output>
188
+ <wsdl:fault name="FileServiceFault">
189
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
190
+ </wsdl:fault>
191
+ </wsdl:operation>
192
+ <wsdl:operation name="downloadFile">
193
+ <wsdlsoap:operation soapAction=""/>
194
+ <wsdl:input name="downloadFileRequest">
195
+ <wsdlsoap:body use="literal"/>
196
+ </wsdl:input>
197
+ <wsdl:output name="downloadFileResponse">
198
+ <wsdlsoap:body use="literal"/>
199
+ </wsdl:output>
200
+ <wsdl:fault name="FileServiceFault">
201
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
202
+ </wsdl:fault>
203
+ </wsdl:operation>
204
+ <wsdl:operation name="deleteFile">
205
+ <wsdlsoap:operation soapAction=""/>
206
+ <wsdl:input name="deleteFileRequest">
207
+ <wsdlsoap:body use="literal"/>
208
+ </wsdl:input>
209
+ <wsdl:output name="deleteFileResponse">
210
+ <wsdlsoap:body use="literal"/>
211
+ </wsdl:output>
212
+ <wsdl:fault name="FileServiceFault">
213
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
214
+ </wsdl:fault>
215
+ </wsdl:operation>
216
+ <wsdl:operation name="getUserInfo">
217
+ <wsdlsoap:operation soapAction=""/>
218
+ <wsdl:input name="getUserInfoRequest">
219
+ <wsdlsoap:body use="literal"/>
220
+ </wsdl:input>
221
+ <wsdl:output name="getUserInfoResponse">
222
+ <wsdlsoap:body use="literal"/>
223
+ </wsdl:output>
224
+ <wsdl:fault name="FileServiceFault">
225
+ <wsdlsoap:fault use="literal" name="FileServiceFault"/>
226
+ </wsdl:fault>
227
+ </wsdl:operation>
228
+ </wsdl:binding>
229
+ <wsdl:service name="CorporateFileService">
230
+ <wsdl:port binding="tns:CorporateFileServiceHttpBinding" name="CorporateFileServiceHttpPort">
231
+ <wsdlsoap:address location="https://wsk.asiakastesti.op.fi/services/CorporateFileService"/>
232
+ </wsdl:port>
233
+ </wsdl:service>
234
+ </wsdl:definitions>
@@ -0,0 +1,135 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Sasu Mattila (FD Finanssidata Oy) -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bxd="http://bxd.fi/xmldata/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://bxd.fi/xmldata/" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
+ <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
5
+ <xs:element name="ApplicationRequest">
6
+ <xs:annotation>
7
+ <xs:documentation>Wrapper for data. Used for transmitting data. Can be XML Digital Signed.</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:complexType>
10
+ <xs:sequence>
11
+ <xs:element name="CustomerId" nillable="false">
12
+ <xs:simpleType>
13
+ <xs:restriction base="xs:string">
14
+ <xs:minLength value="1"/>
15
+ <xs:maxLength value="16"/>
16
+ </xs:restriction>
17
+ </xs:simpleType>
18
+ </xs:element>
19
+ <xs:element name="Command" nillable="false" minOccurs="0">
20
+ <xs:simpleType>
21
+ <xs:restriction base="xs:string">
22
+ <xs:maxLength value="32"/>
23
+ <xs:minLength value="1"/>
24
+ </xs:restriction>
25
+ </xs:simpleType>
26
+ </xs:element>
27
+ <xs:element name="Timestamp" type="xs:dateTime"/>
28
+ <xs:element name="StartDate" type="xs:date" nillable="false" minOccurs="0"/>
29
+ <xs:element name="EndDate" type="xs:date" minOccurs="0"/>
30
+ <xs:element name="Status" minOccurs="0">
31
+ <xs:simpleType>
32
+ <xs:restriction base="xs:string">
33
+ <xs:minLength value="1"/>
34
+ <xs:maxLength value="10"/>
35
+ </xs:restriction>
36
+ </xs:simpleType>
37
+ </xs:element>
38
+ <xs:element name="ServiceId" minOccurs="0">
39
+ <xs:simpleType>
40
+ <xs:restriction base="xs:string">
41
+ <xs:minLength value="1"/>
42
+ <xs:maxLength value="256"/>
43
+ </xs:restriction>
44
+ </xs:simpleType>
45
+ </xs:element>
46
+ <xs:element name="Environment" type="bxd:EnvironmentCode"/>
47
+ <xs:element name="FileReferences" minOccurs="0">
48
+ <xs:complexType>
49
+ <xs:sequence>
50
+ <xs:element name="FileReference" maxOccurs="unbounded">
51
+ <xs:simpleType>
52
+ <xs:restriction base="xs:string">
53
+ <xs:minLength value="1"/>
54
+ <xs:maxLength value="32"/>
55
+ </xs:restriction>
56
+ </xs:simpleType>
57
+ </xs:element>
58
+ </xs:sequence>
59
+ </xs:complexType>
60
+ </xs:element>
61
+ <xs:element name="UserFilename" minOccurs="0">
62
+ <xs:simpleType>
63
+ <xs:restriction base="xs:string">
64
+ <xs:minLength value="1"/>
65
+ <xs:maxLength value="80"/>
66
+ </xs:restriction>
67
+ </xs:simpleType>
68
+ </xs:element>
69
+ <xs:element name="TargetId" minOccurs="0">
70
+ <xs:simpleType>
71
+ <xs:restriction base="xs:string">
72
+ <xs:minLength value="1"/>
73
+ <xs:maxLength value="80"/>
74
+ </xs:restriction>
75
+ </xs:simpleType>
76
+ </xs:element>
77
+ <xs:element name="ExecutionSerial" minOccurs="0">
78
+ <xs:simpleType>
79
+ <xs:restriction base="xs:string">
80
+ <xs:minLength value="1"/>
81
+ <xs:maxLength value="32"/>
82
+ </xs:restriction>
83
+ </xs:simpleType>
84
+ </xs:element>
85
+ <xs:element name="Encryption" type="xs:boolean" minOccurs="0"/>
86
+ <xs:element name="EncryptionMethod" minOccurs="0">
87
+ <xs:simpleType>
88
+ <xs:restriction base="xs:string">
89
+ <xs:minLength value="1"/>
90
+ <xs:maxLength value="35"/>
91
+ </xs:restriction>
92
+ </xs:simpleType>
93
+ </xs:element>
94
+ <xs:element name="Compression" type="xs:boolean" minOccurs="0"/>
95
+ <xs:element name="CompressionMethod" minOccurs="0">
96
+ <xs:simpleType>
97
+ <xs:restriction base="xs:string">
98
+ <xs:minLength value="1"/>
99
+ <xs:maxLength value="35"/>
100
+ </xs:restriction>
101
+ </xs:simpleType>
102
+ </xs:element>
103
+ <xs:element name="AmountTotal" type="xs:double" minOccurs="0"/>
104
+ <xs:element name="TransactionCount" type="xs:long" minOccurs="0"/>
105
+ <xs:element name="SoftwareId">
106
+ <xs:simpleType>
107
+ <xs:restriction base="xs:string">
108
+ <xs:minLength value="1"/>
109
+ <xs:maxLength value="80"/>
110
+ </xs:restriction>
111
+ </xs:simpleType>
112
+ </xs:element>
113
+ <xs:element name="CustomerExtension" type="xs:anyType" minOccurs="0"/>
114
+ <xs:element name="FileType" minOccurs="0">
115
+ <xs:simpleType>
116
+ <xs:restriction base="xs:string">
117
+ <xs:minLength value="1"/>
118
+ <xs:maxLength value="40"/>
119
+ </xs:restriction>
120
+ </xs:simpleType>
121
+ </xs:element>
122
+ <xs:element name="Content" type="xs:base64Binary" nillable="true" minOccurs="0"/>
123
+ <xs:element ref="ds:Signature" minOccurs="0"/>
124
+ </xs:sequence>
125
+ </xs:complexType>
126
+ </xs:element>
127
+ <xs:simpleType name="EnvironmentCode">
128
+ <xs:annotation>
129
+ <xs:documentation>Production or Test</xs:documentation>
130
+ </xs:annotation>
131
+ <xs:restriction base="xs:NMTOKEN">
132
+ <xs:pattern value="(PRODUCTION|TEST)"/>
133
+ </xs:restriction>
134
+ </xs:simpleType>
135
+ </xs:schema>