Skip to content

Commit 8b5059a

Browse files
authored
Also validate and lint all wsdl files (#172)
1 parent b8d08f5 commit 8b5059a

File tree

7 files changed

+1966
-1966
lines changed

7 files changed

+1966
-1966
lines changed

.github/scripts/validate-and-lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ while IFS= read -r -d $'\0' filename; do
2525
fi
2626
# Remove temp file
2727
rm "${filename}.pretty"
28-
done < <(/usr/bin/find . -type f \( -name "*.xsd" -or -name "*.xml" \) -not -path "./.git/*" -print0)
28+
done < <(/usr/bin/find . -type f \( -name "*.xsd" -or -name "*.xml" -or -name "*.wsdl" \) -not -path "./.git/*" -print0)
2929

3030
if [ ${PARSING_ERROR} -ne 0 ]; then
3131
exit ${PARSING_ERROR}

xsd/siri_wsConsumer-Document.wsdl

Lines changed: 185 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,189 +1,189 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- ======== All the structures are comming from siri.xsd ========= -->
33
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:siriWS="http://wsdl.siri.org.uk" xmlns:siri="http://www.siri.org.uk/siri" xmlns:ns="http://datex2.eu/schema/1_0/1_0" xmlns:ns1="http://www.ifopt.org.uk/acsb" xmlns:ns2="http://www.ifopt.org.uk/ifopt" xmlns:ns3="http://datex2.eu/schema/2_0RC1/2_0" targetNamespace="http://wsdl.siri.org.uk">
4-
<types>
5-
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://wsdl.siri.org.uk">
6-
<xsd:include schemaLocation="wsdl_model/siri_wsConsumer-Framework.xsd"/>
7-
<xsd:include schemaLocation="wsdl_model/siri_wsConsumer-Services.xsd"/>
8-
</xsd:schema>
9-
</types>
10-
<message name="HeartbeatNotify">
11-
<part name="HeartbeatNotifyParameters" element="siriWS:NotifyHeartbeat"/>
12-
</message>
13-
<message name="DataReadyNotify">
14-
<part name="DataReadyNotifyParameters" element="siriWS:NotifyDataReady"/>
15-
</message>
16-
<message name="SubscriptionTerminatedNotify">
17-
<part name="SubscriptionTerminatedNotifyParameters" element="siriWS:NotifySubscriptionTerminated"/>
18-
</message>
19-
<message name="ProductionTimetableNotify">
20-
<part name="ProductionTimetableNotifyParameters" element="siriWS:NotifyProductionTimetable"/>
21-
</message>
22-
<message name="EstimatedTimetableNotify">
23-
<part name="EstimatedTimetableNotifyParameters" element="siriWS:NotifyEstimatedTimetable"/>
24-
</message>
25-
<message name="StopTimetableNotify">
26-
<part name="StopTimetableNotifyParameters" element="siriWS:NotifyStopTimetable"/>
27-
</message>
28-
<message name="StopMonitoringNotify">
29-
<part name="StopMonitoringNotifyParameters" element="siriWS:NotifyStopMonitoring"/>
30-
</message>
31-
<message name="VehicleMonitoringNotify">
32-
<part name="VehicleMonitoringNotifyParameters" element="siriWS:NotifyVehicleMonitoring"/>
33-
</message>
34-
<message name="ConnectionTimetableNotify">
35-
<part name="ConnectionTimetableNotifyParameters" element="siriWS:NotifyConnectionTimetable"/>
36-
</message>
37-
<message name="ConnectionMonitoringNotify">
38-
<part name="ConnectionMonitoringNotifyParameters" element="siriWS:NotifyConnectionMonitoring"/>
39-
</message>
40-
<message name="GeneralMessageNotify">
41-
<part name="GeneralMessageNotifyParameters" element="siriWS:NotifyGeneralMessage"/>
42-
</message>
43-
<message name="FacilityMonitoringNotify">
44-
<part name="FacilityMonitoringNotifyParameters" element="siriWS:NotifyFacilityMonitoring"/>
45-
</message>
46-
<message name="SituationExchangeNotify">
47-
<part name="SituationExchangeNotifyParameters" element="siriWS:NotifySituationExchange"/>
48-
</message>
49-
<message name="ControlActionNotify">
50-
<part name="ControlActionNotifyParameters" element="siriWS:NotifyControlAction"/>
51-
</message>
52-
<portType name="SiriConsumerDocPort">
53-
<operation name="NotifyDataReady">
54-
<input message="siriWS:DataReadyNotify"/>
55-
</operation>
56-
<operation name="NotifyHeartbeat">
57-
<input message="siriWS:HeartbeatNotify"/>
58-
</operation>
59-
<!-- == Service Specific == -->
60-
<operation name="NotifySubscriptionTerminated">
61-
<input message="siriWS:SubscriptionTerminatedNotify"/>
62-
</operation>
63-
<operation name="NotifyProductionTimetable">
64-
<input message="siriWS:ProductionTimetableNotify"/>
65-
</operation>
66-
<operation name="NotifyEstimatedTimetable">
67-
<input message="siriWS:EstimatedTimetableNotify"/>
68-
</operation>
69-
<operation name="NotifyStopTimetable">
70-
<input message="siriWS:StopTimetableNotify"/>
71-
</operation>
72-
<operation name="NotifyStopMonitoring">
73-
<input message="siriWS:StopMonitoringNotify"/>
74-
</operation>
75-
<operation name="NotifyVehicleMonitoring">
76-
<input message="siriWS:VehicleMonitoringNotify"/>
77-
</operation>
78-
<operation name="NotifyConnectionTimetable">
79-
<input message="siriWS:ConnectionTimetableNotify"/>
80-
</operation>
81-
<operation name="NotifyConnectionMonitoring">
82-
<input message="siriWS:ConnectionMonitoringNotify"/>
83-
</operation>
84-
<operation name="NotifyGeneralMessage">
85-
<input message="siriWS:GeneralMessageNotify"/>
86-
</operation>
87-
<operation name="NotifyFacilityMonitoring">
88-
<input message="siriWS:FacilityMonitoringNotify"/>
89-
</operation>
90-
<operation name="NotifySituationExchange">
91-
<input message="siriWS:SituationExchangeNotify"/>
92-
</operation>
93-
<operation name="NotifyControlAction">
94-
<input message="siriWS:ControlActionNotify"/>
95-
</operation>
96-
</portType>
97-
<binding name="SiriConsumerDocBinding" type="siriWS:SiriConsumerDocPort">
98-
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
99-
<operation name="NotifySubscriptionTerminated">
100-
<soap:operation soapAction="NotifySubscriptionTerminated"/>
101-
<input>
102-
<soap:body use="literal"/>
103-
</input>
104-
</operation>
105-
<operation name="NotifyDataReady">
106-
<soap:operation soapAction="NotifyDataReady"/>
107-
<input>
108-
<soap:body use="literal"/>
109-
</input>
110-
</operation>
111-
<operation name="NotifyHeartbeat">
112-
<soap:operation soapAction="NotifyHeartbeat"/>
113-
<input>
114-
<soap:body use="literal"/>
115-
</input>
116-
</operation>
117-
<operation name="NotifyProductionTimetable">
118-
<soap:operation soapAction="GetProductionTimetable"/>
119-
<input>
120-
<soap:body use="literal"/>
121-
</input>
122-
</operation>
123-
<operation name="NotifyEstimatedTimetable">
124-
<soap:operation soapAction="GetEstimatedTimetable"/>
125-
<input>
126-
<soap:body use="literal"/>
127-
</input>
128-
</operation>
129-
<operation name="NotifyStopTimetable">
130-
<soap:operation soapAction="GetStopTimetable"/>
131-
<input>
132-
<soap:body use="literal"/>
133-
</input>
134-
</operation>
135-
<operation name="NotifyStopMonitoring">
136-
<soap:operation soapAction="GetStopMonitoring"/>
137-
<input>
138-
<soap:body use="literal"/>
139-
</input>
140-
</operation>
141-
<operation name="NotifyVehicleMonitoring">
142-
<soap:operation soapAction="GetVehicleMonitoring"/>
143-
<input>
144-
<soap:body use="literal"/>
145-
</input>
146-
</operation>
147-
<operation name="NotifyConnectionTimetable">
148-
<soap:operation soapAction="GetConnectionTimetable"/>
149-
<input>
150-
<soap:body use="literal"/>
151-
</input>
152-
</operation>
153-
<operation name="NotifyConnectionMonitoring">
154-
<soap:operation soapAction="GetConnectionMonitoring"/>
155-
<input>
156-
<soap:body use="literal"/>
157-
</input>
158-
</operation>
159-
<operation name="NotifyGeneralMessage">
160-
<soap:operation soapAction="GetGeneralMessage"/>
161-
<input>
162-
<soap:body use="literal"/>
163-
</input>
164-
</operation>
165-
<operation name="NotifyFacilityMonitoring">
166-
<soap:operation soapAction="GetFacilityMonitoring"/>
167-
<input>
168-
<soap:body use="literal"/>
169-
</input>
170-
</operation>
171-
<operation name="NotifySituationExchange">
172-
<soap:operation soapAction="GetSituationExchange"/>
173-
<input>
174-
<soap:body use="literal"/>
175-
</input>
176-
</operation>
177-
<operation name="NotifyControlAction">
178-
<soap:operation soapAction="GetControlAction"/>
179-
<input>
180-
<soap:body use="literal"/>
181-
</input>
182-
</operation>
183-
</binding>
184-
<service name="SiriConsumerDocServices">
185-
<port name="SiriWSPort" binding="siriWS:SiriConsumerDocBinding">
186-
<soap:address location="http://www.siri-service-location.com"/>
187-
</port>
188-
</service>
4+
<types>
5+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://wsdl.siri.org.uk">
6+
<xsd:include schemaLocation="wsdl_model/siri_wsConsumer-Framework.xsd"/>
7+
<xsd:include schemaLocation="wsdl_model/siri_wsConsumer-Services.xsd"/>
8+
</xsd:schema>
9+
</types>
10+
<message name="HeartbeatNotify">
11+
<part name="HeartbeatNotifyParameters" element="siriWS:NotifyHeartbeat"/>
12+
</message>
13+
<message name="DataReadyNotify">
14+
<part name="DataReadyNotifyParameters" element="siriWS:NotifyDataReady"/>
15+
</message>
16+
<message name="SubscriptionTerminatedNotify">
17+
<part name="SubscriptionTerminatedNotifyParameters" element="siriWS:NotifySubscriptionTerminated"/>
18+
</message>
19+
<message name="ProductionTimetableNotify">
20+
<part name="ProductionTimetableNotifyParameters" element="siriWS:NotifyProductionTimetable"/>
21+
</message>
22+
<message name="EstimatedTimetableNotify">
23+
<part name="EstimatedTimetableNotifyParameters" element="siriWS:NotifyEstimatedTimetable"/>
24+
</message>
25+
<message name="StopTimetableNotify">
26+
<part name="StopTimetableNotifyParameters" element="siriWS:NotifyStopTimetable"/>
27+
</message>
28+
<message name="StopMonitoringNotify">
29+
<part name="StopMonitoringNotifyParameters" element="siriWS:NotifyStopMonitoring"/>
30+
</message>
31+
<message name="VehicleMonitoringNotify">
32+
<part name="VehicleMonitoringNotifyParameters" element="siriWS:NotifyVehicleMonitoring"/>
33+
</message>
34+
<message name="ConnectionTimetableNotify">
35+
<part name="ConnectionTimetableNotifyParameters" element="siriWS:NotifyConnectionTimetable"/>
36+
</message>
37+
<message name="ConnectionMonitoringNotify">
38+
<part name="ConnectionMonitoringNotifyParameters" element="siriWS:NotifyConnectionMonitoring"/>
39+
</message>
40+
<message name="GeneralMessageNotify">
41+
<part name="GeneralMessageNotifyParameters" element="siriWS:NotifyGeneralMessage"/>
42+
</message>
43+
<message name="FacilityMonitoringNotify">
44+
<part name="FacilityMonitoringNotifyParameters" element="siriWS:NotifyFacilityMonitoring"/>
45+
</message>
46+
<message name="SituationExchangeNotify">
47+
<part name="SituationExchangeNotifyParameters" element="siriWS:NotifySituationExchange"/>
48+
</message>
49+
<message name="ControlActionNotify">
50+
<part name="ControlActionNotifyParameters" element="siriWS:NotifyControlAction"/>
51+
</message>
52+
<portType name="SiriConsumerDocPort">
53+
<operation name="NotifyDataReady">
54+
<input message="siriWS:DataReadyNotify"/>
55+
</operation>
56+
<operation name="NotifyHeartbeat">
57+
<input message="siriWS:HeartbeatNotify"/>
58+
</operation>
59+
<!-- == Service Specific == -->
60+
<operation name="NotifySubscriptionTerminated">
61+
<input message="siriWS:SubscriptionTerminatedNotify"/>
62+
</operation>
63+
<operation name="NotifyProductionTimetable">
64+
<input message="siriWS:ProductionTimetableNotify"/>
65+
</operation>
66+
<operation name="NotifyEstimatedTimetable">
67+
<input message="siriWS:EstimatedTimetableNotify"/>
68+
</operation>
69+
<operation name="NotifyStopTimetable">
70+
<input message="siriWS:StopTimetableNotify"/>
71+
</operation>
72+
<operation name="NotifyStopMonitoring">
73+
<input message="siriWS:StopMonitoringNotify"/>
74+
</operation>
75+
<operation name="NotifyVehicleMonitoring">
76+
<input message="siriWS:VehicleMonitoringNotify"/>
77+
</operation>
78+
<operation name="NotifyConnectionTimetable">
79+
<input message="siriWS:ConnectionTimetableNotify"/>
80+
</operation>
81+
<operation name="NotifyConnectionMonitoring">
82+
<input message="siriWS:ConnectionMonitoringNotify"/>
83+
</operation>
84+
<operation name="NotifyGeneralMessage">
85+
<input message="siriWS:GeneralMessageNotify"/>
86+
</operation>
87+
<operation name="NotifyFacilityMonitoring">
88+
<input message="siriWS:FacilityMonitoringNotify"/>
89+
</operation>
90+
<operation name="NotifySituationExchange">
91+
<input message="siriWS:SituationExchangeNotify"/>
92+
</operation>
93+
<operation name="NotifyControlAction">
94+
<input message="siriWS:ControlActionNotify"/>
95+
</operation>
96+
</portType>
97+
<binding name="SiriConsumerDocBinding" type="siriWS:SiriConsumerDocPort">
98+
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
99+
<operation name="NotifySubscriptionTerminated">
100+
<soap:operation soapAction="NotifySubscriptionTerminated"/>
101+
<input>
102+
<soap:body use="literal"/>
103+
</input>
104+
</operation>
105+
<operation name="NotifyDataReady">
106+
<soap:operation soapAction="NotifyDataReady"/>
107+
<input>
108+
<soap:body use="literal"/>
109+
</input>
110+
</operation>
111+
<operation name="NotifyHeartbeat">
112+
<soap:operation soapAction="NotifyHeartbeat"/>
113+
<input>
114+
<soap:body use="literal"/>
115+
</input>
116+
</operation>
117+
<operation name="NotifyProductionTimetable">
118+
<soap:operation soapAction="GetProductionTimetable"/>
119+
<input>
120+
<soap:body use="literal"/>
121+
</input>
122+
</operation>
123+
<operation name="NotifyEstimatedTimetable">
124+
<soap:operation soapAction="GetEstimatedTimetable"/>
125+
<input>
126+
<soap:body use="literal"/>
127+
</input>
128+
</operation>
129+
<operation name="NotifyStopTimetable">
130+
<soap:operation soapAction="GetStopTimetable"/>
131+
<input>
132+
<soap:body use="literal"/>
133+
</input>
134+
</operation>
135+
<operation name="NotifyStopMonitoring">
136+
<soap:operation soapAction="GetStopMonitoring"/>
137+
<input>
138+
<soap:body use="literal"/>
139+
</input>
140+
</operation>
141+
<operation name="NotifyVehicleMonitoring">
142+
<soap:operation soapAction="GetVehicleMonitoring"/>
143+
<input>
144+
<soap:body use="literal"/>
145+
</input>
146+
</operation>
147+
<operation name="NotifyConnectionTimetable">
148+
<soap:operation soapAction="GetConnectionTimetable"/>
149+
<input>
150+
<soap:body use="literal"/>
151+
</input>
152+
</operation>
153+
<operation name="NotifyConnectionMonitoring">
154+
<soap:operation soapAction="GetConnectionMonitoring"/>
155+
<input>
156+
<soap:body use="literal"/>
157+
</input>
158+
</operation>
159+
<operation name="NotifyGeneralMessage">
160+
<soap:operation soapAction="GetGeneralMessage"/>
161+
<input>
162+
<soap:body use="literal"/>
163+
</input>
164+
</operation>
165+
<operation name="NotifyFacilityMonitoring">
166+
<soap:operation soapAction="GetFacilityMonitoring"/>
167+
<input>
168+
<soap:body use="literal"/>
169+
</input>
170+
</operation>
171+
<operation name="NotifySituationExchange">
172+
<soap:operation soapAction="GetSituationExchange"/>
173+
<input>
174+
<soap:body use="literal"/>
175+
</input>
176+
</operation>
177+
<operation name="NotifyControlAction">
178+
<soap:operation soapAction="GetControlAction"/>
179+
<input>
180+
<soap:body use="literal"/>
181+
</input>
182+
</operation>
183+
</binding>
184+
<service name="SiriConsumerDocServices">
185+
<port name="SiriWSPort" binding="siriWS:SiriConsumerDocBinding">
186+
<soap:address location="http://www.siri-service-location.com"/>
187+
</port>
188+
</service>
189189
</definitions>

0 commit comments

Comments
 (0)