Skip to content

Commit ae14669

Browse files
committed
Made all wsdl imports local, speeding up service startup
1 parent dce5f3d commit ae14669

13 files changed

+35
-18611
lines changed

RPOS.njsproj

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@
3737
<Compile Include="server.js" />
3838
<Content Include="LICENSE" />
3939
<Content Include="package.json" />
40+
<None Include="wsdl\www.w3.org.2005.08.addressing.ws-addr.xsd" />
4041
<None Include="wsdl\device_service.wsdl" />
4142
<None Include="wsdl\media_service.wsdl" />
4243
<Content Include="web\snapshot.jpg" />
43-
<Content Include="wsdl\www.w3.org.2004.08.xop.include.cs" />
44-
<None Include="wsdl\www.w3.org.XML.1998.namespace.xsd" />
45-
<None Include="wsdl\www.w3.org.2005.08.addressing.xsd" />
44+
<None Include="wsdl\www.w3.org.2001.xml.xsd" />
4645
<None Include="wsdl\www.w3.org.2005.05.xmlmime.xsd" />
4746
<None Include="wsdl\www.w3.org.2004.08.xop.include.xsd" />
4847
<None Include="wsdl\www.w3.org.2003.05.soap-envelope.xsd" />

package.json

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2-
"name": "rpos",
3-
"version": "0.0.0",
4-
"description": "rpos",
5-
"main": "server.js",
6-
"author": {
7-
"name": "Jeroen Versteege",
8-
"email": "[email protected]"
9-
},
10-
"dependencies": {
11-
"soap" : "BreeeZe/node-soap"
12-
}
2+
"name": "rpos",
3+
"version": "0.0.1",
4+
"description": "rpos",
5+
"main": "server.js",
6+
"author": {
7+
"name": "Jeroen Versteege",
8+
"email": "[email protected]"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/BreeeZe/rpos.git"
13+
},
14+
"dependencies": {
15+
"soap": "BreeeZe/node-soap"
16+
}
1317
}

wsdl/device_service.wsdl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
3-
<wsdl:import namespace="http://www.onvif.org/ver10/device/wsdl" location="http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl"/>
3+
<wsdl:import namespace="http://www.onvif.org/ver10/device/wsdl" location="./www.onvif.org.ver10.device.wsdl"/>
44
<wsdl:types>
5-
<s:schema targetNamespace="http://tempuri.org/">
6-
<s:import schemaLocation="http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl" namespace="http://www.onvif.org/ver10/device/wsdl"/>
5+
<s:schema targetNamespace="http://versteege.com/rpos">
6+
<s:import schemaLocation="./www.onvif.org.ver10.device.wsdl" namespace="http://www.onvif.org/ver10/device/wsdl"/>
77
</s:schema>
88
</wsdl:types>
99
<wsdl:service name="DeviceService">

wsdl/docs.oasis-open.org.wsn.b-2.xsd

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<xsd:schema xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsa="http://www.w3.org/2005/08/addressing" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://docs.oasis-open.org/wsn/b-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3-
<xsd:import schemaLocation="http://www.w3.org/2005/08/addressing/ws-addr.xsd" namespace="http://www.w3.org/2005/08/addressing" />
4-
<xsd:import schemaLocation="http://docs.oasis-open.org/wsrf/bf-2.xsd" namespace="http://docs.oasis-open.org/wsrf/bf-2" />
5-
<xsd:import schemaLocation="http://docs.oasis-open.org/wsn/t-1.xsd" namespace="http://docs.oasis-open.org/wsn/t-1" />
3+
<xsd:import schemaLocation="./www.w3.org.2005.08.addressing.ws-addr.xsd" namespace="http://www.w3.org/2005/08/addressing" />
4+
<xsd:import schemaLocation="./docs.oasis-open.org.wsrf.bf-2.xsd" namespace="http://docs.oasis-open.org/wsrf/bf-2" />
5+
<xsd:import schemaLocation="./docs.oasis-open.org.wsn.t-1.xsd" namespace="http://docs.oasis-open.org/wsn/t-1" />
66
<xsd:complexType name="QueryExpressionType" mixed="true">
77
<xsd:sequence>
88
<xsd:any minOccurs="0" maxOccurs="1" processContents="lax" />

wsdl/docs.oasis-open.org.wsrf.bf-2.xsd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<xsd:schema xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://docs.oasis-open.org/wsrf/bf-2">
3-
<import schemaLocation="http://www.w3.org/2005/08/addressing/ws-addr.xsd" namespace="http://www.w3.org/2005/08/addressing" />
4-
<import schemaLocation="http://www.w3.org/2001/xml.xsd" namespace="http://www.w3.org/XML/1998/namespace">
3+
<import schemaLocation="./www.w3.org.2005.08.addressing.ws-addr.xsd" namespace="http://www.w3.org/2005/08/addressing" />
4+
<import schemaLocation="./www.w3.org.2001.xml.xsd" namespace="http://www.w3.org/XML/1998/namespace">
55
<annotation>
66
<documentation>
77
Get access to the xml: attribute groups for xml:lang as declared on 'schema'

wsdl/media_service.wsdl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
3-
<wsdl:import namespace="http://www.onvif.org/ver10/media/wsdl" location="http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl"/>
3+
<wsdl:import namespace="http://www.onvif.org/ver10/media/wsdl" location="./www.onvif.org.ver10.media.wsdl"/>
44
<wsdl:types>
5-
<s:schema targetNamespace="http://tempuri.org/">
6-
<s:import schemaLocation="http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl" namespace="http://www.onvif.org/ver10/media/wsdl"/>
5+
<s:schema targetNamespace="http://versteege.com/rpos">
6+
<s:import schemaLocation="./www.onvif.org.ver10.media.wsdl" namespace="http://www.onvif.org/ver10/media/wsdl"/>
77
</s:schema>
88
</wsdl:types>
99
<wsdl:service name="MediaService">

wsdl/www.onvif.org.ver10.device.wsdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:tds="http://www.onvif.org/ver10/device/wsdl" targetNamespace="http://www.onvif.org/ver10/device/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
44
<wsdl:types>
55
<xs:schema xmlns:tt="http://www.onvif.org/ver10/schema" elementFormDefault="qualified" targetNamespace="http://www.onvif.org/ver10/device/wsdl" version="2.5">
6-
<xs:import schemaLocation="http://www.onvif.org/onvif/ver10/schema/onvif.xsd" namespace="http://www.onvif.org/ver10/schema" />
6+
<xs:import schemaLocation="./www.onvif.org.ver10.schema.xsd" namespace="http://www.onvif.org/ver10/schema" />
77
<xs:element name="GetServices">
88
<xs:complexType>
99
<xs:sequence>

wsdl/www.onvif.org.ver10.media.wsdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" targetNamespace="http://www.onvif.org/ver10/media/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
33
<wsdl:types>
44
<xs:schema xmlns:tt="http://www.onvif.org/ver10/schema" elementFormDefault="qualified" targetNamespace="http://www.onvif.org/ver10/media/wsdl" version="2.4.1">
5-
<xs:import schemaLocation="http://www.onvif.org/onvif/ver10/schema/onvif.xsd" namespace="http://www.onvif.org/ver10/schema" />
5+
<xs:import schemaLocation="./www.onvif.org.ver10.schema.xsd" namespace="http://www.onvif.org/ver10/schema" />
66
<xs:element name="GetServiceCapabilities">
77
<xs:complexType>
88
<xs:sequence />

wsdl/www.onvif.org.ver10.schema.xsd

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<xs:schema xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" elementFormDefault="qualified" targetNamespace="http://www.onvif.org/ver10/schema" version="2.5" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3-
<xs:import schemaLocation="http://www.w3.org/2005/05/xmlmime" namespace="http://www.w3.org/2005/05/xmlmime" />
4-
<xs:import schemaLocation="http://www.w3.org/2003/05/soap-envelope" namespace="http://www.w3.org/2003/05/soap-envelope" />
5-
<xs:import schemaLocation="http://docs.oasis-open.org/wsn/b-2.xsd" namespace="http://docs.oasis-open.org/wsn/b-2" />
6-
<xs:import schemaLocation="http://www.w3.org/2004/08/xop/include" namespace="http://www.w3.org/2004/08/xop/include" />
3+
<xs:import schemaLocation="./www.w3.org.2005.05.xmlmime.xsd" namespace="http://www.w3.org/2005/05/xmlmime" />
4+
<xs:import schemaLocation="./www.w3.org.2003.05.soap-envelope.xsd" namespace="http://www.w3.org/2003/05/soap-envelope" />
5+
<xs:import schemaLocation="./docs.oasis-open.org.wsn.b-2.xsd" namespace="http://docs.oasis-open.org/wsn/b-2" />
6+
<xs:import schemaLocation="./www.w3.org.2004.08.xop.include.xsd" namespace="http://www.w3.org/2004/08/xop/include" />
77
<xs:complexType name="DeviceEntity">
88
<xs:annotation>
99
<xs:documentation>Base class for physical entities like inputs and outputs.</xs:documentation>
File renamed without changes.

wsdl/www.w3.org.2003.05.soap-envelope.xsd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<xs:schema xmlns:tns="http://www.w3.org/2003/05/soap-envelope" elementFormDefault="qualified" targetNamespace="http://www.w3.org/2003/05/soap-envelope" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3-
<xs:import schemaLocation="http://www.w3.org/2001/xml.xsd" namespace="http://www.w3.org/XML/1998/namespace" />
3+
<xs:import schemaLocation="./www.w3.org.2001.xml.xsd" namespace="http://www.w3.org/XML/1998/namespace" />
44
<xs:element name="Envelope" type="tns:Envelope" />
55
<xs:complexType name="Envelope">
66
<xs:sequence>

0 commit comments

Comments
 (0)