soap4r_es 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9f2769361239faff0601a7e51c714a33ef809b8e
4
- data.tar.gz: 0f5e71b2233c270432bf205bbb6d1258b085d120
2
+ SHA256:
3
+ metadata.gz: 85f79c0dfc36ff1e92f59a298a779dc15651b8ff425a0547e169332509baa91e
4
+ data.tar.gz: caa7bc8e470f3c32b62888143836d31968b81c26465dfac234512d06e940006b
5
5
  SHA512:
6
- metadata.gz: 9f1dc520423045952508cae077b573244a231fb1b3fd9daf849b87aa7fb0180f9e2879c605f5c4aa881323f64cfab35b6121f3ad6bee9f2d374091eee6d9bccd
7
- data.tar.gz: a67af1aef24b5371ebea8d0ec5cf3ace9e83c4d45e0f057d5977dacb1d162ff0f10f74ebc1e13726386c0d30e5f515aefda20892ccbbf3834ae9690f6d83cc4d
6
+ metadata.gz: 027a82c9aeb99bffdaf791128bdad18758c1e56c17e30bdf1eb4d47e2e9fdf4b0e9e1e91fdc5558249876c4c007947e0bc2d518f000e251ac38c370b47602308
7
+ data.tar.gz: 8473e8b37044a9ee8b6d160734f7b9ce165db85d3a9366283f677704b75d89af08d89fc44278c5c67728cd6e8df292c9564b81309079c2f0c6b815c99d8bc920
@@ -51,7 +51,7 @@ class Handler
51
51
 
52
52
  def initialize(charset)
53
53
  @charset = charset
54
- @generate_explicit_type = true
54
+ @generate_explicit_type = false
55
55
  @decode_typemap = nil
56
56
  end
57
57
 
@@ -77,7 +77,7 @@ class EncodedRegistry
77
77
  end
78
78
  nil
79
79
  end
80
-
80
+ #estrae i dati dall'XML di origine
81
81
  def soap2obj(node, klass = nil)
82
82
  if map = @soap2obj[node.class]
83
83
  map.each do |obj_class, factory, info|
@@ -375,6 +375,7 @@ private
375
375
  conv, obj = @rubytype_factory.soap2obj(nil, node, nil, self)
376
376
  return obj if conv
377
377
  end
378
+ #recupera il dato dall'xml in "obj" mentre con restituisce un boolean
378
379
  conv, obj = @map.soap2obj(node)
379
380
  return obj if conv
380
381
  conv, obj = @default_factory.soap2obj(nil, node, nil, self)
@@ -13,7 +13,6 @@ require 'soap/mapping/typeMap'
13
13
  require 'xsd/codegen/gensupport'
14
14
  require 'xsd/namedelements'
15
15
 
16
-
17
16
  module SOAP
18
17
  module Mapping
19
18
 
@@ -141,7 +140,7 @@ private
141
140
  ele.type = definition.type
142
141
  if definition.basetype or Mapping.root_type_hint
143
142
  Mapping.reset_root_type_hint
144
- ele.force_typed = true
143
+ ele.force_typed = false
145
144
  end
146
145
  end
147
146
  if qname.nil? and definition.elename
@@ -225,6 +224,7 @@ private
225
224
  # element name next
226
225
  definition ||= schema_definition_from_elename(node.elename)
227
226
  # class defined in parent type last
227
+ #Qui entra se obj_class non è nil e non è uno di quelli sopra... o meglio se definition non è vuota allora assegnerà gli elementi
228
228
  if obj_class
229
229
  definition ||= schema_definition_from_class(obj_class)
230
230
  end
@@ -250,6 +250,7 @@ private
250
250
  elsif obj_class < ::String and node.respond_to?(:text)
251
251
  obj = obj_class.new(node.text)
252
252
  else
253
+ #Qui crea l'istanza dell'oggetto e poi va ad aggiungere gli elementi alla classe
253
254
  obj = Mapping.create_empty_object(obj_class)
254
255
  add_elesoap2stubobj(node, obj, definition)
255
256
  end
@@ -278,6 +279,7 @@ private
278
279
 
279
280
  def add_elesoap2stubobj(node, obj, definition)
280
281
  vars = {}
282
+ #Cicla su ogni elemento del nodo nella SOAP::Mapping::LiteralRegistry
281
283
  node.each do |name, value|
282
284
  item = definition.elements.find_element(value.elename)
283
285
  if item
@@ -302,6 +304,8 @@ private
302
304
  end
303
305
 
304
306
  def elesoapchild2obj(value, eledef)
307
+ #Se è definita la proprità mapped_class allora entra qui dentro
308
+ #altrimenti se è un elemento singolo dovrebbe andare nell'Else
305
309
  if eledef.mapped_class
306
310
  if eledef.mapped_class.include?(::SOAP::SOAPBasetype)
307
311
  base2obj(value, eledef.mapped_class)
@@ -325,6 +325,7 @@ module Mapping
325
325
  end
326
326
 
327
327
  def self.set_attributes(obj, values)
328
+ #Qui dovrebbe impostare l'istanza di classe di un elemento
328
329
  case obj
329
330
  when ::SOAP::Mapping::Object
330
331
  values.each do |attr_name, value|
@@ -27,7 +27,7 @@ class HTTPServer < Logger::Application
27
27
 
28
28
  attr_proxy :mapping_registry, true
29
29
  attr_proxy :literal_mapping_registry, true
30
- attr_proxy :generate_explicit_type, true
30
+ attr_proxy :generate_explicit_type, false
31
31
  attr_proxy :use_default_namespace, true
32
32
 
33
33
  def initialize(config)
@@ -33,6 +33,7 @@ class Router
33
33
  attr_accessor :use_default_namespace
34
34
  attr_accessor :external_ces
35
35
  attr_reader :filterchain
36
+ attr_reader :original_request
36
37
 
37
38
  def initialize(actor)
38
39
  @actor = actor
@@ -46,6 +47,7 @@ class Router
46
47
  @operation_by_qname = {}
47
48
  @headerhandlerfactory = []
48
49
  @filterchain = Filter::FilterChain.new
50
+ @original_request = nil
49
51
  end
50
52
 
51
53
  ###
@@ -163,6 +165,8 @@ require 'soap/mapping/mapping'
163
165
  if env.nil?
164
166
  raise ArgumentError.new("illegal SOAP marshal format")
165
167
  end
168
+ #Qui ho inserito il raw_post che arriva
169
+ @original_request = conn_data.receive_string
166
170
  op = lookup_operation(conn_data.soapaction, env)
167
171
  #add_request_headerhandler(ServerAuthHeaderHandler)
168
172
 
data/lib/soap/version.rb CHANGED
@@ -3,7 +3,7 @@ module SOAP
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- TINY = 7
6
+ TINY = 9
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
9
9
  FORK = "SOAP4R-NG"
data/lib/xsd/datatypes.rb CHANGED
@@ -609,7 +609,6 @@ class XSDDateTime < XSDAnySimpleType
609
609
  private
610
610
 
611
611
  def screen_data_str(t)
612
- debugger
613
612
  /^([+\-]?\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d(?:\.(\d*))?)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip
614
613
  unless Regexp.last_match
615
614
  raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soap4r_es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurence A. Lee, Hiroshi NAKAMURA, Fabiano Pavan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-21 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -231,8 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  requirements:
233
233
  - none
234
- rubyforge_project:
235
- rubygems_version: 2.4.6
234
+ rubygems_version: 3.2.3
236
235
  signing_key:
237
236
  specification_version: 4
238
237
  summary: Soap4R-ng - Soap4R (as maintained by RubyJedi) for Ruby 1.8 thru 2.1 and