big_register 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,311 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://webservices-acc.cibg.nl/Ribiz/OpenbaarV2.asmx?wsdl
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - private, max-age=0
21
+ Content-Type:
22
+ - text/xml; charset=utf-8
23
+ Server:
24
+ - Microsoft-IIS/7.5
25
+ X-Aspnet-Version:
26
+ - 2.0.50727
27
+ X-Powered-By:
28
+ - ASP.NET
29
+ Date:
30
+ - Tue, 19 Feb 2013 12:33:46 GMT
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Proxy-Connection:
34
+ - Keep-Alive
35
+ Connection:
36
+ - Keep-Alive
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:s=\"http://www.w3.org/2001/XMLSchema\"
40
+ xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\" xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\"
41
+ xmlns:tns=\"http://services.cibg.nl/ExternalUser\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
42
+ xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\"
43
+ xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" targetNamespace=\"http://services.cibg.nl/ExternalUser\"
44
+ xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
45
+ elementFormDefault=\"qualified\" targetNamespace=\"http://services.cibg.nl/ExternalUser\">\r\n
46
+ \ <s:element name=\"listHcpApproxRequest\" type=\"tns:ListHcpApproxRequest\"
47
+ />\r\n <s:complexType name=\"ListHcpApproxRequest\">\r\n <s:sequence>\r\n
48
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"WebSite\" type=\"tns:SourceWebSite\"
49
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Name\" type=\"s:string\"
50
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Initials\"
51
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
52
+ name=\"Prefix\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
53
+ maxOccurs=\"1\" name=\"Street\" type=\"s:string\" />\r\n <s:element
54
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Gender\" type=\"s:string\" />\r\n <s:element
55
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"HouseNumber\" type=\"s:string\" />\r\n
56
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Postalcode\" type=\"s:string\"
57
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"City\" type=\"s:string\"
58
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"RegistrationNumber\"
59
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
60
+ name=\"DateOfBirth\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
61
+ maxOccurs=\"1\" name=\"ProfessionalGroup\" type=\"s:string\" />\r\n <s:element
62
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"TypeOfSpecialism\" type=\"s:string\"
63
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:simpleType
64
+ name=\"SourceWebSite\">\r\n <s:restriction base=\"s:string\">\r\n <s:enumeration
65
+ value=\"None\" />\r\n <s:enumeration value=\"Ribiz\" />\r\n <s:enumeration
66
+ value=\"Skp\" />\r\n </s:restriction>\r\n </s:simpleType>\r\n
67
+ \ <s:element name=\"ListHcpApprox3Result\" type=\"tns:ListHcpApproxResponse3\"
68
+ />\r\n <s:complexType name=\"ListHcpApproxResponse3\">\r\n <s:sequence>\r\n
69
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ListHcpApprox\"
70
+ type=\"tns:ArrayOfListHcpApprox3\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
71
+ \ <s:complexType name=\"ArrayOfListHcpApprox3\">\r\n <s:sequence>\r\n
72
+ \ <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"ListHcpApprox3\"
73
+ nillable=\"true\" type=\"tns:ListHcpApprox3\" />\r\n </s:sequence>\r\n
74
+ \ </s:complexType>\r\n <s:complexType name=\"ListHcpApprox3\">\r\n
75
+ \ <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
76
+ name=\"HcpNumber\" type=\"s:decimal\" />\r\n <s:element minOccurs=\"0\"
77
+ maxOccurs=\"1\" name=\"BirthSurname\" type=\"s:string\" />\r\n <s:element
78
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"MailingName\" type=\"s:string\" />\r\n
79
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Prefix\" type=\"s:string\"
80
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"PartnerName\"
81
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
82
+ name=\"PartnerNamePrefix\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
83
+ maxOccurs=\"1\" name=\"Initial\" type=\"s:string\" />\r\n <s:element
84
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Gender\" type=\"s:string\" />\r\n <s:element
85
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"WorkAddress1\" type=\"tns:Address\"
86
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"WorkAddress2\"
87
+ type=\"tns:Address\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
88
+ name=\"WorkAddress3\" type=\"tns:Address\" />\r\n <s:element minOccurs=\"0\"
89
+ maxOccurs=\"1\" name=\"ArticleRegistration\" type=\"tns:ArrayOfArticleRegistrationExtApp\"
90
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Specialism\"
91
+ type=\"tns:ArrayOfSpecialismExtApp\" />\r\n <s:element minOccurs=\"0\"
92
+ maxOccurs=\"1\" name=\"Mention\" type=\"tns:ArrayOfMentionExtApp\" />\r\n
93
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"JudgmentProvision\"
94
+ type=\"tns:ArrayOfJudgmentProvisionExtApp\" />\r\n <s:element minOccurs=\"0\"
95
+ maxOccurs=\"1\" name=\"Limitation\" type=\"tns:ArrayOfLimitationExtApp\" />\r\n
96
+ \ </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"Address\">\r\n
97
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
98
+ name=\"AddressTo\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
99
+ maxOccurs=\"1\" name=\"StreetName\" type=\"s:string\" />\r\n <s:element
100
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"HouseNumber\" type=\"s:string\" />\r\n
101
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"HouseNumberAddition\"
102
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
103
+ name=\"PostalCode\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
104
+ maxOccurs=\"1\" name=\"City\" type=\"s:string\" />\r\n <s:element
105
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"ForeignAddress\" type=\"s:string\"
106
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"CountryCode\"
107
+ nillable=\"true\" type=\"s:decimal\" />\r\n <s:element minOccurs=\"0\"
108
+ maxOccurs=\"1\" name=\"Email\" type=\"s:string\" />\r\n <s:element
109
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"TelephoneNumber\" type=\"s:string\"
110
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType
111
+ name=\"ArrayOfArticleRegistrationExtApp\">\r\n <s:sequence>\r\n <s:element
112
+ minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"ArticleRegistrationExtApp\"
113
+ nillable=\"true\" type=\"tns:ArticleRegistrationExtApp\" />\r\n </s:sequence>\r\n
114
+ \ </s:complexType>\r\n <s:complexType name=\"ArticleRegistrationExtApp\">\r\n
115
+ \ <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
116
+ name=\"ArticleRegistrationNumber\" type=\"s:decimal\" />\r\n <s:element
117
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"ArticleRegistrationStartDate\" type=\"s:dateTime\"
118
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"ArticleRegistrationEndDate\"
119
+ type=\"s:dateTime\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
120
+ name=\"ProfessionalGroupCode\" type=\"s:string\" />\r\n </s:sequence>\r\n
121
+ \ </s:complexType>\r\n <s:complexType name=\"ArrayOfSpecialismExtApp\">\r\n
122
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"unbounded\"
123
+ name=\"SpecialismExtApp\" nillable=\"true\" type=\"tns:SpecialismExtApp\"
124
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType
125
+ name=\"SpecialismExtApp\">\r\n <s:sequence>\r\n <s:element
126
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"SpecialismId\" type=\"s:decimal\" />\r\n
127
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"ArticleRegistrationNumber\"
128
+ type=\"s:decimal\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
129
+ name=\"StartDate\" type=\"s:dateTime\" />\r\n <s:element minOccurs=\"1\"
130
+ maxOccurs=\"1\" name=\"EndDate\" nillable=\"true\" type=\"s:dateTime\" />\r\n
131
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"TypeOfSpecialismId\"
132
+ type=\"s:decimal\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
133
+ \ <s:complexType name=\"ArrayOfMentionExtApp\">\r\n <s:sequence>\r\n
134
+ \ <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"MentionExtApp\"
135
+ nillable=\"true\" type=\"tns:MentionExtApp\" />\r\n </s:sequence>\r\n
136
+ \ </s:complexType>\r\n <s:complexType name=\"MentionExtApp\">\r\n
137
+ \ <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
138
+ name=\"MentionId\" type=\"s:decimal\" />\r\n <s:element minOccurs=\"1\"
139
+ maxOccurs=\"1\" name=\"ArticleRegistrationNumber\" type=\"s:decimal\" />\r\n
140
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"TypeOfMentionId\"
141
+ type=\"s:decimal\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
142
+ name=\"StartDate\" type=\"s:dateTime\" />\r\n <s:element minOccurs=\"1\"
143
+ maxOccurs=\"1\" name=\"EndDate\" nillable=\"true\" type=\"s:dateTime\" />\r\n
144
+ \ </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"ArrayOfJudgmentProvisionExtApp\">\r\n
145
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"unbounded\"
146
+ name=\"JudgmentProvisionExtApp\" nillable=\"true\" type=\"tns:JudgmentProvisionExtApp\"
147
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType
148
+ name=\"JudgmentProvisionExtApp\">\r\n <s:sequence>\r\n <s:element
149
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"ArticleNumber\" type=\"s:decimal\"
150
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Id\" type=\"s:decimal\"
151
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"StartDate\"
152
+ type=\"s:dateTime\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
153
+ name=\"PublicDescription\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\"
154
+ maxOccurs=\"1\" name=\"EndDate\" nillable=\"true\" type=\"s:dateTime\" />\r\n
155
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Public\" type=\"s:boolean\"
156
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType
157
+ name=\"ArrayOfLimitationExtApp\">\r\n <s:sequence>\r\n <s:element
158
+ minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"LimitationExtApp\" nillable=\"true\"
159
+ type=\"tns:LimitationExtApp\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
160
+ \ <s:complexType name=\"LimitationExtApp\">\r\n <s:sequence>\r\n
161
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"LimitationId\"
162
+ type=\"s:decimal\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
163
+ name=\"ArticleRegistrationNumber\" type=\"s:decimal\" />\r\n <s:element
164
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"CompetenceRegistrationId\" type=\"s:decimal\"
165
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"TypeLimitationId\"
166
+ type=\"s:decimal\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
167
+ name=\"Description\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\"
168
+ maxOccurs=\"1\" name=\"StartDate\" nillable=\"true\" type=\"s:dateTime\" />\r\n
169
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"EndDate\" nillable=\"true\"
170
+ type=\"s:dateTime\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
171
+ name=\"ExpirationEndDate\" nillable=\"true\" type=\"s:dateTime\" />\r\n <s:element
172
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"MonthsValid\" type=\"s:int\" />\r\n
173
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"YearsValid\" type=\"s:int\"
174
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:element
175
+ name=\"GetRibizReferenceData\">\r\n <s:complexType>\r\n <s:sequence>\r\n
176
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"getCibgReferenceDataRequest\"
177
+ type=\"tns:GetRibizReferenceDataRequest\" />\r\n </s:sequence>\r\n
178
+ \ </s:complexType>\r\n </s:element>\r\n <s:complexType name=\"GetRibizReferenceDataRequest\"
179
+ />\r\n <s:element name=\"GetRibizReferenceDataResponse\">\r\n <s:complexType>\r\n
180
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
181
+ name=\"GetRibizReferenceDataResult\" type=\"tns:GetRibizReferenceDataResponse\"
182
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
183
+ \ <s:complexType name=\"GetRibizReferenceDataResponse\">\r\n <s:sequence>\r\n
184
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ProfessionalGroups\"
185
+ type=\"tns:ArrayOfProfessionalGroup\" />\r\n <s:element minOccurs=\"0\"
186
+ maxOccurs=\"1\" name=\"TypeOfSpecialisms\" type=\"tns:ArrayOfTypeOfSpecialism\"
187
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType
188
+ name=\"ArrayOfProfessionalGroup\">\r\n <s:sequence>\r\n <s:element
189
+ minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"ProfessionalGroup\" nillable=\"true\"
190
+ type=\"tns:ProfessionalGroup\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
191
+ \ <s:complexType name=\"ProfessionalGroup\">\r\n <s:sequence>\r\n
192
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Code\" type=\"s:string\"
193
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Description\"
194
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
195
+ name=\"DescriptionEnglish\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
196
+ maxOccurs=\"1\" name=\"Title\" type=\"s:string\" />\r\n <s:element
197
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"Article3\" type=\"s:boolean\" />\r\n
198
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Article34\" type=\"s:boolean\"
199
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"BusinessOwner\"
200
+ type=\"s:decimal\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
201
+ name=\"RequiredHoursForReregistration\" type=\"s:int\" />\r\n </s:sequence>\r\n
202
+ \ </s:complexType>\r\n <s:complexType name=\"ArrayOfTypeOfSpecialism\">\r\n
203
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"unbounded\"
204
+ name=\"TypeOfSpecialism\" nillable=\"true\" type=\"tns:TypeOfSpecialism\"
205
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType
206
+ name=\"TypeOfSpecialism\">\r\n <s:sequence>\r\n <s:element
207
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"Code\" type=\"s:decimal\" />\r\n <s:element
208
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Description\" type=\"s:string\" />\r\n
209
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"DescriptionEn\"
210
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
211
+ name=\"TitleOfSpecialist\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
212
+ maxOccurs=\"1\" name=\"TitleOfSpecialistEn\" type=\"s:string\" />\r\n <s:element
213
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Register\" type=\"s:string\" />\r\n
214
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"EndDate\" nillable=\"true\"
215
+ type=\"s:dateTime\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
216
+ name=\"ProfessionalGroupCode\" type=\"s:string\" />\r\n </s:sequence>\r\n
217
+ \ </s:complexType>\r\n </s:schema>\r\n </wsdl:types>\r\n <wsdl:message
218
+ name=\"ListHcpApprox3SoapIn\">\r\n <wsdl:part name=\"listHcpApproxRequest\"
219
+ element=\"tns:listHcpApproxRequest\" />\r\n </wsdl:message>\r\n <wsdl:message
220
+ name=\"ListHcpApprox3SoapOut\">\r\n <wsdl:part name=\"ListHcpApprox3Result\"
221
+ element=\"tns:ListHcpApprox3Result\" />\r\n </wsdl:message>\r\n <wsdl:message
222
+ name=\"GetRibizReferenceDataSoapIn\">\r\n <wsdl:part name=\"parameters\"
223
+ element=\"tns:GetRibizReferenceData\" />\r\n </wsdl:message>\r\n <wsdl:message
224
+ name=\"GetRibizReferenceDataSoapOut\">\r\n <wsdl:part name=\"parameters\"
225
+ element=\"tns:GetRibizReferenceDataResponse\" />\r\n </wsdl:message>\r\n
226
+ \ <wsdl:portType name=\"PublicV3Soap\">\r\n <wsdl:operation name=\"ListHcpApprox3\">\r\n
227
+ \ <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Search
228
+ for health care professionals based on approx match</wsdl:documentation>\r\n
229
+ \ <wsdl:input message=\"tns:ListHcpApprox3SoapIn\" />\r\n <wsdl:output
230
+ message=\"tns:ListHcpApprox3SoapOut\" />\r\n </wsdl:operation>\r\n <wsdl:operation
231
+ name=\"GetRibizReferenceData\">\r\n <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Returns
232
+ the RIBIZ reference data</wsdl:documentation>\r\n <wsdl:input message=\"tns:GetRibizReferenceDataSoapIn\"
233
+ />\r\n <wsdl:output message=\"tns:GetRibizReferenceDataSoapOut\" />\r\n
234
+ \ </wsdl:operation>\r\n </wsdl:portType>\r\n <wsdl:binding name=\"PublicV3Soap\"
235
+ type=\"tns:PublicV3Soap\">\r\n <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\"
236
+ />\r\n <wsdl:operation name=\"ListHcpApprox3\">\r\n <soap:operation
237
+ soapAction=\"http://services.cibg.nl/ExternalUser/ListHcpApprox3\" style=\"document\"
238
+ />\r\n <wsdl:input>\r\n <soap:body use=\"literal\" />\r\n </wsdl:input>\r\n
239
+ \ <wsdl:output>\r\n <soap:body use=\"literal\" />\r\n </wsdl:output>\r\n
240
+ \ </wsdl:operation>\r\n <wsdl:operation name=\"GetRibizReferenceData\">\r\n
241
+ \ <soap:operation soapAction=\"http://services.cibg.nl/ExternalUser/GetRibizReferenceData\"
242
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
243
+ />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
244
+ />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
245
+ \ <wsdl:binding name=\"PublicV3Soap12\" type=\"tns:PublicV3Soap\">\r\n <soap12:binding
246
+ transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n <wsdl:operation
247
+ name=\"ListHcpApprox3\">\r\n <soap12:operation soapAction=\"http://services.cibg.nl/ExternalUser/ListHcpApprox3\"
248
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
249
+ />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
250
+ />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
251
+ name=\"GetRibizReferenceData\">\r\n <soap12:operation soapAction=\"http://services.cibg.nl/ExternalUser/GetRibizReferenceData\"
252
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
253
+ />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
254
+ />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
255
+ \ <wsdl:service name=\"PublicV3\">\r\n <wsdl:port name=\"PublicV3Soap\"
256
+ binding=\"tns:PublicV3Soap\">\r\n <soap:address location=\"http://webservices-acc.cibg.nl/Ribiz/OpenbaarV2.asmx\"
257
+ />\r\n </wsdl:port>\r\n <wsdl:port name=\"PublicV3Soap12\" binding=\"tns:PublicV3Soap12\">\r\n
258
+ \ <soap12:address location=\"http://webservices-acc.cibg.nl/Ribiz/OpenbaarV2.asmx\"
259
+ />\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
260
+ http_version:
261
+ recorded_at: Tue, 19 Feb 2013 12:33:46 GMT
262
+ - request:
263
+ method: post
264
+ uri: http://webservices-acc.cibg.nl/Ribiz/OpenbaarV2.asmx
265
+ body:
266
+ encoding: US-ASCII
267
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
268
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://services.cibg.nl/ExternalUser"
269
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:listHcpApproxRequest><tns:WebSite>Ribiz</tns:WebSite><tns:ProfessionalGroup>01</tns:ProfessionalGroup><tns:Initials>E.N.H.</tns:Initials><tns:Name>Jansen</tns:Name><tns:Gender>M</tns:Gender></tns:listHcpApproxRequest></env:Body></env:Envelope>
270
+ headers:
271
+ Soapaction:
272
+ - ! '"http://services.cibg.nl/ExternalUser/ListHcpApprox3"'
273
+ Content-Type:
274
+ - text/xml;charset=UTF-8
275
+ Content-Length:
276
+ - '512'
277
+ Accept:
278
+ - ! '*/*'
279
+ User-Agent:
280
+ - Ruby
281
+ response:
282
+ status:
283
+ code: 200
284
+ message: OK
285
+ headers:
286
+ Cache-Control:
287
+ - private, max-age=0
288
+ Content-Type:
289
+ - text/xml; charset=utf-8
290
+ Server:
291
+ - Microsoft-IIS/7.5
292
+ X-Aspnet-Version:
293
+ - 2.0.50727
294
+ X-Powered-By:
295
+ - ASP.NET
296
+ Date:
297
+ - Tue, 19 Feb 2013 12:33:48 GMT
298
+ Content-Length:
299
+ - '353'
300
+ Proxy-Connection:
301
+ - Keep-Alive
302
+ Connection:
303
+ - Keep-Alive
304
+ body:
305
+ encoding: US-ASCII
306
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
307
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListHcpApprox3Result
308
+ xmlns="http://services.cibg.nl/ExternalUser"><ListHcpApprox /></ListHcpApprox3Result></soap:Body></soap:Envelope>
309
+ http_version:
310
+ recorded_at: Tue, 19 Feb 2013 12:33:48 GMT
311
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+
3
+ module BIGRegister
4
+
5
+ describe Client do
6
+
7
+
8
+ before(:each) do
9
+ @client = Client.new
10
+ end
11
+
12
+ context "#list_hcp" do
13
+ it "should return a list of healthcare practitioners", :vcr => true do
14
+ # http://nl.wikipedia.org/wiki/Robert_Schoemacher
15
+ result = @client.list_hcp("R.", "Schoemacher", "M","")
16
+ result.size.should be > 0
17
+ end
18
+
19
+ it "should return an empty list", :vcr => true do
20
+ # http://www.bigregister.nl/ernstjansensteur.aspx
21
+ result = @client.list_hcp("E.N.H.", "Jansen", "M", "")
22
+ result.size.should be(0)
23
+ end
24
+
25
+ it "returns an array when size == 1", :vcr => true do
26
+ result = @client.list_hcp("R.", "Schoemacher", "M", "")
27
+ result.size.should be(1)
28
+ result.class.should eql Array
29
+ end
30
+
31
+ it "only returns doctors in the category 'Artsen' (code: 01)", :vcr => true do
32
+ result = @client.list_hcp("J.", "Janssen", "M", "")
33
+ result.each do |doctor|
34
+ doctor[:article_registration][:article_registration_ext_app][:professional_group_code].should eql "01"
35
+ end
36
+ end
37
+ end
38
+
39
+ context "#find_by_big_number", :vcr => true do
40
+ it "returns a health care practitioner with an existing big number (29021600101)" do
41
+ result = @client.find_by_big_number("29021600101")
42
+ result[:mailing_name].should eql "A.M. den Hollander"
43
+ end
44
+ end
45
+
46
+ end
47
+ end
@@ -0,0 +1,14 @@
1
+ require 'pry-nav'
2
+ require "big_register"
3
+ require 'vcr'
4
+ require 'webmock'
5
+
6
+ RSpec.configure do |config|
7
+ config.extend VCR::RSpec::Macros
8
+ end
9
+
10
+ VCR.configure do |c|
11
+ c.cassette_library_dir = 'spec/fixtures/cassettes'
12
+ c.hook_into :webmock
13
+ c.configure_rspec_metadata!
14
+ end
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: big_register
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Arie
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: savon
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.1.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: pry-nav
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.2.3
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.2.3
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.12.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.12.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: spec_coverage
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 0.0.5
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.0.5
78
+ - !ruby/object:Gem::Dependency
79
+ name: vcr
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 2.4.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.4.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: webmock
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ description: A gem to query the BIG register
111
+ email: rubygems@ariekanarie.nl
112
+ executables: []
113
+ extensions: []
114
+ extra_rdoc_files: []
115
+ files:
116
+ - .gitignore
117
+ - .rspec
118
+ - .travis.yml
119
+ - Gemfile
120
+ - Gemfile.lock
121
+ - README.md
122
+ - big_register.gemspec
123
+ - lib/big_register.rb
124
+ - lib/big_register/client.rb
125
+ - lib/big_register/version.rb
126
+ - script/bundler
127
+ - script/ci
128
+ - spec/fixtures/cassettes/BIGRegister_Client/_find_by_big_number/returns_a_health_care_practitioner_with_an_existing_big_number_29021600101_.yml
129
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/only_returns_doctors_in_the_category_Artsen_code_01_.yml
130
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/returns_an_array_when_size_1.yml
131
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/should_return_a_list_of_healthcare_practitioners.yml
132
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/should_return_an_empty_list.yml
133
+ - spec/lib/big_register/client_spec.rb
134
+ - spec/spec_helper.rb
135
+ homepage: http://github.com/finalist/big_register
136
+ licenses: []
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubyforge_project:
155
+ rubygems_version: 1.8.25
156
+ signing_key:
157
+ specification_version: 3
158
+ summary: A gem to query the BIG register
159
+ test_files:
160
+ - spec/fixtures/cassettes/BIGRegister_Client/_find_by_big_number/returns_a_health_care_practitioner_with_an_existing_big_number_29021600101_.yml
161
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/only_returns_doctors_in_the_category_Artsen_code_01_.yml
162
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/returns_an_array_when_size_1.yml
163
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/should_return_a_list_of_healthcare_practitioners.yml
164
+ - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/should_return_an_empty_list.yml
165
+ - spec/lib/big_register/client_spec.rb
166
+ - spec/spec_helper.rb
167
+ has_rdoc: