ezags-xsd 2.2.0.4 → 2.2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/mappers/security_with_signature_mapper.rb +12 -0
- data/bin/ezags-xsd +1 -0
- data/lib/ezags-xsd/version.rb +1 -1
- data/spec/mappers/security_with_signature_mapper_spec.rb +17 -0
- data/vendor/ezags-protocols/retro/GetResultsService.xsd +23 -23
- data/vendor/ezags-protocols/retro/SecurityWithSignature.xsd +1 -1
- metadata +4 -1
@@ -0,0 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
class SecurityWithSignatureMapper
|
4
|
+
include XmlSchemaMapper
|
5
|
+
schema File.expand_path('../../vendor/ezags-protocols/retro/SecurityWithSignature.xsd', File.dirname(__FILE__))
|
6
|
+
type 'SecurityWithSignature'
|
7
|
+
|
8
|
+
# @return [SignatureTypeMapper]
|
9
|
+
# minOccurs: 1, maxOccurs: 1
|
10
|
+
attr_accessor :signature
|
11
|
+
|
12
|
+
end
|
data/bin/ezags-xsd
CHANGED
data/lib/ezags-xsd/version.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require "xml_schema_mapper/test_builder"
|
3
|
+
|
4
|
+
# @attr Signature [SignatureType]
|
5
|
+
|
6
|
+
|
7
|
+
describe SecurityWithSignatureMapper do
|
8
|
+
|
9
|
+
include XmlSchemaMapper::TestBuilder::Helper
|
10
|
+
|
11
|
+
subject { build_described_mapper }
|
12
|
+
|
13
|
+
it "should be self-compatible xml <-> object" do
|
14
|
+
described_class.parse(subject.to_xml).to_xml.should eql subject.to_xml
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -1,27 +1,27 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<
|
2
|
+
<xsd:schema targetNamespace="http://ezags.rt.ru/fzags/GetResultsService/"
|
3
3
|
xmlns:tns="http://ezags.rt.ru/fzags/GetResultsService/"
|
4
4
|
xmlns:doc="http://ezags.rt.ru/type/document/"
|
5
|
-
xmlns:
|
5
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
6
6
|
elementFormDefault="qualified" attributeFormDefault="unqualified">
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
</
|
12
|
-
</
|
13
|
-
<
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
<
|
20
|
-
<
|
21
|
-
<
|
22
|
-
<
|
23
|
-
</
|
24
|
-
</
|
25
|
-
<
|
26
|
-
<
|
27
|
-
</
|
7
|
+
<xsd:import namespace="http://ezags.rt.ru/type/document/" schemaLocation="../documents.xsd"/>
|
8
|
+
<xsd:complexType name="GetActRecordsRequest">
|
9
|
+
<xsd:sequence minOccurs="1">
|
10
|
+
<xsd:element name="taskId" type="xsd:string" minOccurs="1"/>
|
11
|
+
</xsd:sequence>
|
12
|
+
</xsd:complexType>
|
13
|
+
<xsd:complexType name="GetActRecordsResponse">
|
14
|
+
<xsd:choice minOccurs="1">
|
15
|
+
<xsd:element ref="doc:signedActRecordBirth" minOccurs="0" maxOccurs="unbounded"/>
|
16
|
+
<xsd:element ref="doc:signedActRecordMarriage" minOccurs="0" maxOccurs="unbounded"/>
|
17
|
+
<xsd:element ref="doc:signedActRecordDivorce" minOccurs="0" maxOccurs="unbounded"/>
|
18
|
+
<xsd:element ref="doc:signedActRecordAdoption" minOccurs="0" maxOccurs="unbounded"/>
|
19
|
+
<xsd:element ref="doc:signedActRecordFiliation" minOccurs="0" maxOccurs="unbounded"/>
|
20
|
+
<xsd:element ref="doc:signedActRecordNameChange" minOccurs="0" maxOccurs="unbounded"/>
|
21
|
+
<xsd:element ref="doc:signedActRecordDeath" minOccurs="0" maxOccurs="unbounded"/>
|
22
|
+
<xsd:element name="faultMessage" type="xsd:string" minOccurs="0"/>
|
23
|
+
</xsd:choice>
|
24
|
+
</xsd:complexType>
|
25
|
+
<xsd:element name="getActRecordsRequest" type="tns:GetActRecordsRequest"/>
|
26
|
+
<xsd:element name="getActRecordsResponse" type="tns:GetActRecordsResponse"/>
|
27
|
+
</xsd:schema>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
xmlns:tns="http://schemas.xmlsoap.org/ws/2002/04/secext"
|
4
4
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
5
5
|
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
-
<xsd:import namespace="http://
|
6
|
+
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="../xmldsig-core-schema.xsd"/>
|
7
7
|
<xsd:complexType name="SecurityWithSignature">
|
8
8
|
<xsd:sequence>
|
9
9
|
<xsd:element ref="ds:Signature"/>
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ezags-xsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.2.0.
|
5
|
+
version: 2.2.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Anton Sozontov
|
@@ -287,6 +287,7 @@ files:
|
|
287
287
|
- app/mappers/requisites_statement_of_person_attented_at_birth_mapper.rb
|
288
288
|
- app/mappers/retrieval_method_type_mapper.rb
|
289
289
|
- app/mappers/rsa_key_value_type_mapper.rb
|
290
|
+
- app/mappers/security_with_signature_mapper.rb
|
290
291
|
- app/mappers/send_service_of_birth_request_mapper.rb
|
291
292
|
- app/mappers/send_service_of_birth_request_obj_mapper.rb
|
292
293
|
- app/mappers/send_service_of_death_request_mapper.rb
|
@@ -636,6 +637,7 @@ files:
|
|
636
637
|
- spec/mappers/requisites_statement_of_person_attented_at_birth_mapper_spec.rb
|
637
638
|
- spec/mappers/retrieval_method_type_mapper_spec.rb
|
638
639
|
- spec/mappers/rsa_key_value_type_mapper_spec.rb
|
640
|
+
- spec/mappers/security_with_signature_mapper_spec.rb
|
639
641
|
- spec/mappers/send_service_of_birth_request_mapper_spec.rb
|
640
642
|
- spec/mappers/send_service_of_birth_request_obj_mapper_spec.rb
|
641
643
|
- spec/mappers/send_service_of_death_request_mapper_spec.rb
|
@@ -1080,6 +1082,7 @@ test_files:
|
|
1080
1082
|
- spec/mappers/requisites_statement_of_person_attented_at_birth_mapper_spec.rb
|
1081
1083
|
- spec/mappers/retrieval_method_type_mapper_spec.rb
|
1082
1084
|
- spec/mappers/rsa_key_value_type_mapper_spec.rb
|
1085
|
+
- spec/mappers/security_with_signature_mapper_spec.rb
|
1083
1086
|
- spec/mappers/send_service_of_birth_request_mapper_spec.rb
|
1084
1087
|
- spec/mappers/send_service_of_birth_request_obj_mapper_spec.rb
|
1085
1088
|
- spec/mappers/send_service_of_death_request_mapper_spec.rb
|