comparison pkg/soap/ifaf/service.go @ 1662:d8ca44615bfc

Implemented first version of fairway availability import.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 21 Dec 2018 15:56:28 +0100
parents
children d3fe20a13339
comparison
equal deleted inserted replaced
1661:51a0ba4ede41 1662:d8ca44615bfc
1 // This is Free Software under GNU Affero General Public License v >= 3.0
2 // without warranty, see README.md and license for details.
3 //
4 // SPDX-License-Identifier: AGPL-3.0-or-later
5 // License-Filename: LICENSES/AGPL-3.0.txt
6 //
7 // Copyright (C) 2018 by via donau
8 // – Österreichische Wasserstraßen-Gesellschaft mbH
9 // Software engineering by Intevation GmbH
10 //
11 // Author(s):
12 // * Raimund Renkert <raimund.renkert@intevation.de>
13
14 package ifaf
15
16 import (
17 "crypto/tls"
18 "encoding/xml"
19 "time"
20
21 "github.com/jackc/pgx/pgtype"
22
23 "gemma.intevation.de/gemma/pkg/soap"
24 )
25
26 // against "unused imports"
27 var _ time.Time
28 var _ xml.Name
29
30 type Get_bottleneck_fa struct {
31 XMLName xml.Name `xml:"http://www.ris.eu/fairwayavailability/3.0 get_bottleneck_fa"`
32
33 Bottleneck_id *ArrayOfString `xml:"bottleneck_id,omitempty"`
34
35 Period *RequestedPeriod `xml:"period,omitempty"`
36 }
37
38 type Get_bottleneck_faResponse struct {
39 XMLName xml.Name `xml:"http://www.ris.eu/fairwayavailability/3.0 get_bottleneck_faResponse"`
40
41 Get_bottleneck_faResult *ArrayOfFairwayAvailability `xml:"get_bottleneck_faResult,omitempty"`
42 }
43
44 type Get_stretch_fa struct {
45 XMLName xml.Name `xml:"http://www.ris.eu/fairwayavailability/3.0 get_stretch_fa"`
46
47 ISRS *ArrayOfISRSPair `xml:"ISRS,omitempty"`
48
49 Period *RequestedPeriod `xml:"period,omitempty"`
50 }
51
52 type Get_stretch_faResponse struct {
53 XMLName xml.Name `xml:"http://www.ris.eu/fairwayavailability/3.0 get_stretch_faResponse"`
54
55 Get_stretch_faResult *ArrayOfFairwayAvailability `xml:"get_stretch_faResult,omitempty"`
56 }
57
58 type ArrayOfFairwayAvailability struct {
59 FairwayAvailability []*FairwayAvailability `xml:"FairwayAvailability,omitempty"`
60 }
61
62 type FairwayAvailability struct {
63 Bottleneck_id string `xml:"bottleneck_id,omitempty"`
64
65 SURDAT time.Time `xml:"SURDAT,omitempty"`
66
67 POSITION *PositionEnum `xml:"POSITION,omitempty"`
68
69 Reference_values *ArrayOfReferenceValue `xml:"Reference_values,omitempty"`
70
71 AdditionalData *ArrayOfKeyValuePair `xml:"AdditionalData,omitempty"`
72
73 Critical bool `xml:"Critical,omitempty"`
74
75 Bottleneck_PDFs *ArrayOfPdfInfo `xml:"Bottleneck_PDFs,omitempty"`
76
77 Effective_fairway_availability *ArrayOfEffectiveFairwayAvailability `xml:"Effective_fairway_availability,omitempty"`
78
79 Date_Info time.Time `xml:"Date_Info,omitempty"`
80
81 Source string `xml:"Source,omitempty"`
82 }
83
84 type ArrayOfPdfInfo struct {
85 PdfInfo []*PdfInfo `xml:"PdfInfo,omitempty"`
86 }
87
88 type PdfInfo struct {
89 ProfilePdfFilename string `xml:"ProfilePdfFilename,omitempty"`
90
91 ProfilePdfURL string `xml:"ProfilePdfURL,omitempty"`
92
93 PDF_Generation_Date time.Time `xml:"PDF_Generation_Date,omitempty"`
94
95 Source string `xml:"Source,omitempty"`
96 }
97
98 type ArrayOfEffectiveFairwayAvailability struct {
99 EffectiveFairwayAvailability []*EffectiveFairwayAvailability `xml:"EffectiveFairwayAvailability,omitempty"`
100 }
101
102 type EffectiveFairwayAvailability struct {
103 Available_depth_value int32 `xml:"Available_depth_value,omitempty"`
104
105 Available_width_value int32 `xml:"Available_width_value,omitempty"`
106
107 Water_level_value int32 `xml:"Water_level_value,omitempty"`
108
109 Measure_date time.Time `xml:"Measure_date,omitempty"`
110
111 Measure_type *MeasureType `xml:"Measure_type,omitempty"`
112
113 Source string `xml:"Source,omitempty"`
114
115 Level_of_Service *LosEnum `xml:"Level_of_Service,omitempty"`
116
117 Forecast_generation_time pgtype.Timestamp `xml:"Forecast_generation_time,omitempty"`
118
119 Value_lifetime time.Time `xml:"Value_lifetime,omitempty"`
120 }
121
122 type ArrayOfReferenceValue struct {
123 ReferenceValue []*ReferenceValue `xml:"ReferenceValue,omitempty"`
124 }
125
126 type ReferenceValue struct {
127 Fairway_depth int32 `xml:"fairway_depth,omitempty"`
128
129 Fairway_width int32 `xml:"fairway_width,omitempty"`
130
131 Fairway_radius int32 `xml:"fairway_radius,omitempty"`
132
133 Shallowest_spot_Lat float64 `xml:"Shallowest_spot_Lat,omitempty"`
134
135 Shallowest_spot_Lon float64 `xml:"Shallowest_spot_Lon,omitempty"`
136
137 Level_of_Service *LosEnum `xml:"Level_of_Service,omitempty"`
138 }
139
140 type ErrorCode string
141
142 const (
143
144 // <summary> Description: message type not supported, Explanation:
145 // web service does not support the requested message type
146 // </summary>
147 ErrorCodeE010 ErrorCode = "e010"
148
149 // <summary> Description: syntax error in request, Explanation:
150 // request violates the schema for requests </summary>
151 ErrorCodeE100 ErrorCode = "e100"
152
153 // <summary> Description: incorrect message type, Explanation: given
154 // message type is not known </summary>
155 ErrorCodeE110 ErrorCode = "e110"
156
157 // <summary> Description: incorrect type-specific parameters,
158 // Explanation: type-specific parameters are erroneous </summary>
159 ErrorCodeE120 ErrorCode = "e120"
160
161 // <summary> Description: operation not known, Explanation: the
162 // requested operation is unknown </summary>
163 ErrorCodeE200 ErrorCode = "e200"
164
165 // <summary> Description: requested method or operation is not
166 // implemented </summary>
167 ErrorCodeE210 ErrorCode = "e210"
168
169 // <summary> Description: data source unavailable, Explanation: data
170 // source of the web service for is temporarily unavailable
171 // </summary>
172 ErrorCodeE300 ErrorCode = "e300"
173
174 // <summary> Description: too many results for request, Explanation:
175 // server is unable to handle number of results </summary>
176 ErrorCodeE310 ErrorCode = "e310"
177
178 // <summary> Description: unexpected or other error
179 // </summary>
180 ErrorCodeE999 ErrorCode = "e999"
181 )
182
183 type CountryCode string
184
185 const (
186 CountryCodeAF CountryCode = "AF"
187
188 CountryCodeAX CountryCode = "AX"
189
190 CountryCodeAL CountryCode = "AL"
191
192 CountryCodeDZ CountryCode = "DZ"
193
194 CountryCodeAS CountryCode = "AS"
195
196 CountryCodeAD CountryCode = "AD"
197
198 CountryCodeAO CountryCode = "AO"
199
200 CountryCodeAI CountryCode = "AI"
201
202 CountryCodeAQ CountryCode = "AQ"
203
204 CountryCodeAG CountryCode = "AG"
205
206 CountryCodeAR CountryCode = "AR"
207
208 CountryCodeAM CountryCode = "AM"
209
210 CountryCodeAW CountryCode = "AW"
211
212 CountryCodeAU CountryCode = "AU"
213
214 CountryCodeAT CountryCode = "AT"
215
216 CountryCodeAZ CountryCode = "AZ"
217
218 CountryCodeBS CountryCode = "BS"
219
220 CountryCodeBH CountryCode = "BH"
221
222 CountryCodeBD CountryCode = "BD"
223
224 CountryCodeBB CountryCode = "BB"
225
226 CountryCodeBY CountryCode = "BY"
227
228 CountryCodeBE CountryCode = "BE"
229
230 CountryCodeBZ CountryCode = "BZ"
231
232 CountryCodeBJ CountryCode = "BJ"
233
234 CountryCodeBM CountryCode = "BM"
235
236 CountryCodeBT CountryCode = "BT"
237
238 CountryCodeBO CountryCode = "BO"
239
240 CountryCodeBQ CountryCode = "BQ"
241
242 CountryCodeBA CountryCode = "BA"
243
244 CountryCodeBW CountryCode = "BW"
245
246 CountryCodeBV CountryCode = "BV"
247
248 CountryCodeBR CountryCode = "BR"
249
250 CountryCodeIO CountryCode = "IO"
251
252 CountryCodeBN CountryCode = "BN"
253
254 CountryCodeBG CountryCode = "BG"
255
256 CountryCodeBF CountryCode = "BF"
257
258 CountryCodeBI CountryCode = "BI"
259
260 CountryCodeCV CountryCode = "CV"
261
262 CountryCodeKH CountryCode = "KH"
263
264 CountryCodeCM CountryCode = "CM"
265
266 CountryCodeCA CountryCode = "CA"
267
268 CountryCodeKY CountryCode = "KY"
269
270 CountryCodeCF CountryCode = "CF"
271
272 CountryCodeTD CountryCode = "TD"
273
274 CountryCodeCL CountryCode = "CL"
275
276 CountryCodeCN CountryCode = "CN"
277
278 CountryCodeCX CountryCode = "CX"
279
280 CountryCodeCC CountryCode = "CC"
281
282 CountryCodeCO CountryCode = "CO"
283
284 CountryCodeKM CountryCode = "KM"
285
286 CountryCodeCG CountryCode = "CG"
287
288 CountryCodeCD CountryCode = "CD"
289
290 CountryCodeCK CountryCode = "CK"
291
292 CountryCodeCR CountryCode = "CR"
293
294 CountryCodeCI CountryCode = "CI"
295
296 CountryCodeHR CountryCode = "HR"
297
298 CountryCodeCU CountryCode = "CU"
299
300 CountryCodeCW CountryCode = "CW"
301
302 CountryCodeCY CountryCode = "CY"
303
304 CountryCodeCZ CountryCode = "CZ"
305
306 CountryCodeDK CountryCode = "DK"
307
308 CountryCodeDJ CountryCode = "DJ"
309
310 CountryCodeDM CountryCode = "DM"
311
312 CountryCodeDO CountryCode = "DO"
313
314 CountryCodeEC CountryCode = "EC"
315
316 CountryCodeEG CountryCode = "EG"
317
318 CountryCodeSV CountryCode = "SV"
319
320 CountryCodeGQ CountryCode = "GQ"
321
322 CountryCodeER CountryCode = "ER"
323
324 CountryCodeEE CountryCode = "EE"
325
326 CountryCodeET CountryCode = "ET"
327
328 CountryCodeFK CountryCode = "FK"
329
330 CountryCodeFO CountryCode = "FO"
331
332 CountryCodeFJ CountryCode = "FJ"
333
334 CountryCodeFI CountryCode = "FI"
335
336 CountryCodeFR CountryCode = "FR"
337
338 CountryCodeGF CountryCode = "GF"
339
340 CountryCodePF CountryCode = "PF"
341
342 CountryCodeTF CountryCode = "TF"
343
344 CountryCodeGA CountryCode = "GA"
345
346 CountryCodeGM CountryCode = "GM"
347
348 CountryCodeGE CountryCode = "GE"
349
350 CountryCodeDE CountryCode = "DE"
351
352 CountryCodeGH CountryCode = "GH"
353
354 CountryCodeGI CountryCode = "GI"
355
356 CountryCodeGR CountryCode = "GR"
357
358 CountryCodeGL CountryCode = "GL"
359
360 CountryCodeGD CountryCode = "GD"
361
362 CountryCodeGP CountryCode = "GP"
363
364 CountryCodeGU CountryCode = "GU"
365
366 CountryCodeGT CountryCode = "GT"
367
368 CountryCodeGG CountryCode = "GG"
369
370 CountryCodeGN CountryCode = "GN"
371
372 CountryCodeGW CountryCode = "GW"
373
374 CountryCodeGY CountryCode = "GY"
375
376 CountryCodeHT CountryCode = "HT"
377
378 CountryCodeHM CountryCode = "HM"
379
380 CountryCodeVA CountryCode = "VA"
381
382 CountryCodeHN CountryCode = "HN"
383
384 CountryCodeHK CountryCode = "HK"
385
386 CountryCodeHU CountryCode = "HU"
387
388 CountryCodeIS CountryCode = "IS"
389
390 CountryCodeIN CountryCode = "IN"
391
392 CountryCodeID CountryCode = "ID"
393
394 CountryCodeIR CountryCode = "IR"
395
396 CountryCodeIQ CountryCode = "IQ"
397
398 CountryCodeIE CountryCode = "IE"
399
400 CountryCodeIM CountryCode = "IM"
401
402 CountryCodeIL CountryCode = "IL"
403
404 CountryCodeIT CountryCode = "IT"
405
406 CountryCodeJM CountryCode = "JM"
407
408 CountryCodeJP CountryCode = "JP"
409
410 CountryCodeJE CountryCode = "JE"
411
412 CountryCodeJO CountryCode = "JO"
413
414 CountryCodeKZ CountryCode = "KZ"
415
416 CountryCodeKE CountryCode = "KE"
417
418 CountryCodeKI CountryCode = "KI"
419
420 CountryCodeKP CountryCode = "KP"
421
422 CountryCodeKR CountryCode = "KR"
423
424 CountryCodeKW CountryCode = "KW"
425
426 CountryCodeKG CountryCode = "KG"
427
428 CountryCodeLA CountryCode = "LA"
429
430 CountryCodeLV CountryCode = "LV"
431
432 CountryCodeLB CountryCode = "LB"
433
434 CountryCodeLS CountryCode = "LS"
435
436 CountryCodeLR CountryCode = "LR"
437
438 CountryCodeLY CountryCode = "LY"
439
440 CountryCodeLI CountryCode = "LI"
441
442 CountryCodeLT CountryCode = "LT"
443
444 CountryCodeLU CountryCode = "LU"
445
446 CountryCodeMO CountryCode = "MO"
447
448 CountryCodeMK CountryCode = "MK"
449
450 CountryCodeMG CountryCode = "MG"
451
452 CountryCodeMW CountryCode = "MW"
453
454 CountryCodeMY CountryCode = "MY"
455
456 CountryCodeMV CountryCode = "MV"
457
458 CountryCodeML CountryCode = "ML"
459
460 CountryCodeMT CountryCode = "MT"
461
462 CountryCodeMH CountryCode = "MH"
463
464 CountryCodeMQ CountryCode = "MQ"
465
466 CountryCodeMR CountryCode = "MR"
467
468 CountryCodeMU CountryCode = "MU"
469
470 CountryCodeYT CountryCode = "YT"
471
472 CountryCodeMX CountryCode = "MX"
473
474 CountryCodeFM CountryCode = "FM"
475
476 CountryCodeMD CountryCode = "MD"
477
478 CountryCodeMC CountryCode = "MC"
479
480 CountryCodeMN CountryCode = "MN"
481
482 CountryCodeME CountryCode = "ME"
483
484 CountryCodeMS CountryCode = "MS"
485
486 CountryCodeMA CountryCode = "MA"
487
488 CountryCodeMZ CountryCode = "MZ"
489
490 CountryCodeMM CountryCode = "MM"
491
492 CountryCodeNA CountryCode = "NA"
493
494 CountryCodeNR CountryCode = "NR"
495
496 CountryCodeNP CountryCode = "NP"
497
498 CountryCodeNL CountryCode = "NL"
499
500 CountryCodeNC CountryCode = "NC"
501
502 CountryCodeNZ CountryCode = "NZ"
503
504 CountryCodeNI CountryCode = "NI"
505
506 CountryCodeNE CountryCode = "NE"
507
508 CountryCodeNG CountryCode = "NG"
509
510 CountryCodeNU CountryCode = "NU"
511
512 CountryCodeNF CountryCode = "NF"
513
514 CountryCodeMP CountryCode = "MP"
515
516 CountryCodeNO CountryCode = "NO"
517
518 CountryCodeOM CountryCode = "OM"
519
520 CountryCodePK CountryCode = "PK"
521
522 CountryCodePW CountryCode = "PW"
523
524 CountryCodePS CountryCode = "PS"
525
526 CountryCodePA CountryCode = "PA"
527
528 CountryCodePG CountryCode = "PG"
529
530 CountryCodePY CountryCode = "PY"
531
532 CountryCodePE CountryCode = "PE"
533
534 CountryCodePH CountryCode = "PH"
535
536 CountryCodePN CountryCode = "PN"
537
538 CountryCodePL CountryCode = "PL"
539
540 CountryCodePT CountryCode = "PT"
541
542 CountryCodePR CountryCode = "PR"
543
544 CountryCodeQA CountryCode = "QA"
545
546 CountryCodeRE CountryCode = "RE"
547
548 CountryCodeRO CountryCode = "RO"
549
550 CountryCodeRU CountryCode = "RU"
551
552 CountryCodeRW CountryCode = "RW"
553
554 CountryCodeBL CountryCode = "BL"
555
556 CountryCodeSH CountryCode = "SH"
557
558 CountryCodeKN CountryCode = "KN"
559
560 CountryCodeLC CountryCode = "LC"
561
562 CountryCodeMF CountryCode = "MF"
563
564 CountryCodePM CountryCode = "PM"
565
566 CountryCodeVC CountryCode = "VC"
567
568 CountryCodeWS CountryCode = "WS"
569
570 CountryCodeSM CountryCode = "SM"
571
572 CountryCodeST CountryCode = "ST"
573
574 CountryCodeSA CountryCode = "SA"
575
576 CountryCodeSN CountryCode = "SN"
577
578 CountryCodeRS CountryCode = "RS"
579
580 CountryCodeSC CountryCode = "SC"
581
582 CountryCodeSL CountryCode = "SL"
583
584 CountryCodeSG CountryCode = "SG"
585
586 CountryCodeSX CountryCode = "SX"
587
588 CountryCodeSK CountryCode = "SK"
589
590 CountryCodeSI CountryCode = "SI"
591
592 CountryCodeSB CountryCode = "SB"
593
594 CountryCodeSO CountryCode = "SO"
595
596 CountryCodeZA CountryCode = "ZA"
597
598 CountryCodeGS CountryCode = "GS"
599
600 CountryCodeSS CountryCode = "SS"
601
602 CountryCodeES CountryCode = "ES"
603
604 CountryCodeLK CountryCode = "LK"
605
606 CountryCodeSD CountryCode = "SD"
607
608 CountryCodeSR CountryCode = "SR"
609
610 CountryCodeSJ CountryCode = "SJ"
611
612 CountryCodeSZ CountryCode = "SZ"
613
614 CountryCodeSE CountryCode = "SE"
615
616 CountryCodeCH CountryCode = "CH"
617
618 CountryCodeSY CountryCode = "SY"
619
620 CountryCodeTW CountryCode = "TW"
621
622 CountryCodeTJ CountryCode = "TJ"
623
624 CountryCodeTZ CountryCode = "TZ"
625
626 CountryCodeTH CountryCode = "TH"
627
628 CountryCodeTL CountryCode = "TL"
629
630 CountryCodeTG CountryCode = "TG"
631
632 CountryCodeTK CountryCode = "TK"
633
634 CountryCodeTO CountryCode = "TO"
635
636 CountryCodeTT CountryCode = "TT"
637
638 CountryCodeTN CountryCode = "TN"
639
640 CountryCodeTR CountryCode = "TR"
641
642 CountryCodeTM CountryCode = "TM"
643
644 CountryCodeTC CountryCode = "TC"
645
646 CountryCodeTV CountryCode = "TV"
647
648 CountryCodeUG CountryCode = "UG"
649
650 CountryCodeUA CountryCode = "UA"
651
652 CountryCodeAE CountryCode = "AE"
653
654 CountryCodeGB CountryCode = "GB"
655
656 CountryCodeUS CountryCode = "US"
657
658 CountryCodeUM CountryCode = "UM"
659
660 CountryCodeUY CountryCode = "UY"
661
662 CountryCodeUZ CountryCode = "UZ"
663
664 CountryCodeVU CountryCode = "VU"
665
666 CountryCodeVE CountryCode = "VE"
667
668 CountryCodeVN CountryCode = "VN"
669
670 CountryCodeVG CountryCode = "VG"
671
672 CountryCodeVI CountryCode = "VI"
673
674 CountryCodeWF CountryCode = "WF"
675
676 CountryCodeEH CountryCode = "EH"
677
678 CountryCodeYE CountryCode = "YE"
679
680 CountryCodeZM CountryCode = "ZM"
681
682 CountryCodeZW CountryCode = "ZW"
683 )
684
685 type CoverageEnum string
686
687 const (
688 CoverageEnumCrossProfiles CoverageEnum = "CrossProfiles"
689
690 CoverageEnumLongitudinalProfiles CoverageEnum = "LongitudinalProfiles"
691
692 CoverageEnumFairway CoverageEnum = "Fairway"
693
694 CoverageEnumRiver CoverageEnum = "River"
695
696 CoverageEnumRiverBanks CoverageEnum = "RiverBanks"
697 )
698
699 type DepthReferenceEnum string
700
701 const (
702 DepthReferenceEnumNAP DepthReferenceEnum = "NAP"
703
704 DepthReferenceEnumKP DepthReferenceEnum = "KP"
705
706 DepthReferenceEnumFZP DepthReferenceEnum = "FZP"
707
708 DepthReferenceEnumADR DepthReferenceEnum = "ADR"
709
710 DepthReferenceEnumTAW DepthReferenceEnum = "TAW"
711
712 DepthReferenceEnumPUL DepthReferenceEnum = "PUL"
713
714 DepthReferenceEnumNGM DepthReferenceEnum = "NGM"
715
716 DepthReferenceEnumETRS DepthReferenceEnum = "ETRS"
717
718 DepthReferenceEnumPOT DepthReferenceEnum = "POT"
719
720 DepthReferenceEnumLDC DepthReferenceEnum = "LDC"
721
722 DepthReferenceEnumHDC DepthReferenceEnum = "HDC"
723
724 DepthReferenceEnumZPG DepthReferenceEnum = "ZPG"
725
726 DepthReferenceEnumGLW DepthReferenceEnum = "GLW"
727
728 DepthReferenceEnumHSW DepthReferenceEnum = "HSW"
729
730 DepthReferenceEnumLNW DepthReferenceEnum = "LNW"
731
732 DepthReferenceEnumHNW DepthReferenceEnum = "HNW"
733
734 DepthReferenceEnumIGN DepthReferenceEnum = "IGN"
735
736 DepthReferenceEnumWGS DepthReferenceEnum = "WGS"
737
738 DepthReferenceEnumRN DepthReferenceEnum = "RN"
739
740 DepthReferenceEnumHBO DepthReferenceEnum = "HBO"
741 )
742
743 type LimitingFactorEnum string
744
745 const (
746 LimitingFactorEnumDepth LimitingFactorEnum = "depth"
747
748 LimitingFactorEnumWidth LimitingFactorEnum = "width"
749
750 LimitingFactorEnumCurveRadius LimitingFactorEnum = "curveRadius"
751 )
752
753 type LosEnum string
754
755 const (
756 LosEnumNotAvailable LosEnum = "NotAvailable"
757
758 LosEnumLOS1 LosEnum = "LOS1"
759
760 LosEnumLOS2 LosEnum = "LOS2"
761
762 LosEnumLOS3 LosEnum = "LOS3"
763 )
764
765 type MaterialEnum string
766
767 const (
768 MaterialEnumGravel MaterialEnum = "Gravel"
769
770 MaterialEnumRocky MaterialEnum = "Rocky"
771
772 MaterialEnumStone MaterialEnum = "Stone"
773
774 MaterialEnumAndesite MaterialEnum = "Andesite"
775
776 MaterialEnumSleazyAndesite MaterialEnum = "SleazyAndesite"
777
778 MaterialEnumSandyGravel MaterialEnum = "SandyGravel"
779
780 MaterialEnumMarl MaterialEnum = "Marl"
781
782 MaterialEnumSand MaterialEnum = "Sand"
783
784 MaterialEnumSarmatianLimestone MaterialEnum = "SarmatianLimestone"
785
786 MaterialEnumSandstonePeaks MaterialEnum = "SandstonePeaks"
787
788 MaterialEnumRoughSandyGravel MaterialEnum = "RoughSandyGravel"
789 )
790
791 type MeasureType string
792
793 const (
794 MeasureTypeMeasured MeasureType = "Measured"
795
796 MeasureTypeForecasted MeasureType = "Forecasted"
797
798 MeasureTypeMinimumGuaranteed MeasureType = "MinimumGuaranteed"
799 )
800
801 type PositionEnum string
802
803 const (
804 PositionEnumRedBuoy PositionEnum = "RedBuoy"
805
806 PositionEnumGreenBuoy PositionEnum = "GreenBuoy"
807
808 PositionEnumRightBank PositionEnum = "RightBank"
809
810 PositionEnumLeftBank PositionEnum = "LeftBank"
811
812 PositionEnumMiddle PositionEnum = "Middle"
813
814 PositionEnumAll PositionEnum = "All"
815 )
816
817 type SurtypEnum string
818
819 const (
820 SurtypEnumMultibeam SurtypEnum = "Multibeam"
821
822 SurtypEnumSinglebeam SurtypEnum = "Singlebeam"
823
824 SurtypEnumADCP SurtypEnum = "ADCP"
825
826 SurtypEnumInspectionTour SurtypEnum = "InspectionTour"
827 )
828
829 type Error struct {
830 Detail string `xml:"detail,omitempty"`
831
832 Error_code *ErrorCode `xml:"error_code,omitempty"`
833 }
834
835 type ArrayOfMaterial struct {
836 Material []*MaterialEnum `xml:"Material,omitempty"`
837 }
838
839 type ArrayOfKeyValuePair struct {
840 KeyValuePair []*KeyValuePair `xml:"KeyValuePair,omitempty"`
841 }
842
843 type KeyValuePair struct {
844 Key string `xml:"Key,omitempty"`
845
846 Value string `xml:"Value,omitempty"`
847 }
848
849 type ArrayOfISRSPair struct {
850 ISRSPair []*ISRSPair `xml:"ISRSPair,omitempty"`
851 }
852
853 type ISRSPair struct {
854 FromISRS string `xml:"fromISRS,omitempty"`
855
856 ToISRS string `xml:"toISRS,omitempty"`
857 }
858
859 type RequestedPeriod struct {
860 Date_start time.Time `xml:"Date_start,omitempty"`
861
862 Date_end time.Time `xml:"Date_end,omitempty"`
863
864 Value_interval int32 `xml:"Value_interval,omitempty"`
865 }
866
867 type ArrayOfString struct {
868 String []string `xml:"http://www.ris.eu/wamos/common/3.0 string,omitempty"`
869 }
870
871 type Char int32
872
873 type Duration *Duration
874
875 type Guid string
876
877 type IFairwayAvailabilityService interface {
878
879 // Error can be either of the following types:
880 //
881 // - ErrorFault
882
883 Get_bottleneck_fa(request *Get_bottleneck_fa) (*Get_bottleneck_faResponse, error)
884
885 // Error can be either of the following types:
886 //
887 // - ErrorFault
888
889 Get_stretch_fa(request *Get_stretch_fa) (*Get_stretch_faResponse, error)
890 }
891
892 type FairwayAvailabilityService struct {
893 client *soap.SOAPClient
894 }
895
896 func NewFairwayAvailabilityService(url string, tls bool, auth *soap.BasicAuth) *FairwayAvailabilityService {
897 if url == "" {
898 url = ""
899 }
900 client := soap.NewSOAPClient(url, tls, auth)
901 return &FairwayAvailabilityService{
902 client: client,
903 }
904 }
905
906 func NewFairwayAvailabilityServiceWithTLS(url string, tlsCfg *tls.Config, auth *soap.BasicAuth) *FairwayAvailabilityService {
907 if url == "" {
908 url = ""
909 }
910 client := soap.NewSOAPClientWithTLSConfig(url, tlsCfg, auth)
911
912 return &FairwayAvailabilityService{
913 client: client,
914 }
915 }
916
917 func (service *FairwayAvailabilityService) Get_bottleneck_fa(request *Get_bottleneck_fa) (*Get_bottleneck_faResponse, error) {
918 response := new(Get_bottleneck_faResponse)
919 err := service.client.Call("http://www.ris.eu/fairwayavailability/3.0/IFairwayAvailabilityService/get_bottleneck_fa", request, response)
920 if err != nil {
921 return nil, err
922 }
923
924 return response, nil
925 }
926
927 func (service *FairwayAvailabilityService) Get_stretch_fa(request *Get_stretch_fa) (*Get_stretch_faResponse, error) {
928 response := new(Get_stretch_faResponse)
929 err := service.client.Call("http://www.ris.eu/fairwayavailability/3.0/IFairwayAvailabilityService/get_stretch_fa", request, response)
930 if err != nil {
931 return nil, err
932 }
933
934 return response, nil
935 }