ezags-xsd 2.2.0.4 → 2.2.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -34,6 +34,7 @@ class CLI < Thor
34
34
 
35
35
  def update_retro
36
36
  @script.generate(xsd_path 'retro/GetResultsService.xsd')
37
+ @script.generate(xsd_path 'retro/SecurityWithSignature.xsd')
37
38
  end
38
39
 
39
40
  def update_upload
@@ -1,5 +1,5 @@
1
1
  module Ezags
2
2
  module Xsd
3
- VERSION = '2.2.0.4'
3
+ VERSION = '2.2.0.5'
4
4
  end
5
5
  end
@@ -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
- <xs:schema targetNamespace="http://ezags.rt.ru/fzags/GetResultsService/"
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:xs="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6
6
  elementFormDefault="qualified" attributeFormDefault="unqualified">
7
- <xs:import namespace="http://ezags.rt.ru/type/document/" schemaLocation="../documents.xsd"/>
8
- <xs:complexType name="GetActRecordsRequest">
9
- <xs:sequence minOccurs="1">
10
- <xs:element name="taskId" type="xs:string" minOccurs="1"/>
11
- </xs:sequence>
12
- </xs:complexType>
13
- <xs:complexType name="GetActRecordsResponse">
14
- <xs:choice minOccurs="1">
15
- <xs:element ref="doc:signedActRecordBirth" minOccurs="0" maxOccurs="unbounded"/>
16
- <xs:element ref="doc:signedActRecordMarriage" minOccurs="0" maxOccurs="unbounded"/>
17
- <xs:element ref="doc:signedActRecordDivorce" minOccurs="0" maxOccurs="unbounded"/>
18
- <xs:element ref="doc:signedActRecordAdoption" minOccurs="0" maxOccurs="unbounded"/>
19
- <xs:element ref="doc:signedActRecordFiliation" minOccurs="0" maxOccurs="unbounded"/>
20
- <xs:element ref="doc:signedActRecordNameChange" minOccurs="0" maxOccurs="unbounded"/>
21
- <xs:element ref="doc:signedActRecordDeath" minOccurs="0" maxOccurs="unbounded"/>
22
- <xs:element name="faultMessage" type="xs:string" minOccurs="0"/>
23
- </xs:choice>
24
- </xs:complexType>
25
- <xs:element name="getActRecordsRequest" type="tns:GetActRecordsRequest"/>
26
- <xs:element name="getActRecordsResponse" type="tns:GetActRecordsResponse"/>
27
- </xs:schema>
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://schemas.xmlsoap.org/ws/2002/04/secext" schemaLocation="http://schemas.xmlsoap.org/ws/2002/04/secext/secext.xsd"/>
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.4
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