soap4r_es 0.0.8 → 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: 2d8e6db4dddcf9833251edef3bf6e286711b905b
4
- data.tar.gz: ef31e617f675226adc54e04c596ffce5934c8fb8
2
+ SHA256:
3
+ metadata.gz: 85f79c0dfc36ff1e92f59a298a779dc15651b8ff425a0547e169332509baa91e
4
+ data.tar.gz: caa7bc8e470f3c32b62888143836d31968b81c26465dfac234512d06e940006b
5
5
  SHA512:
6
- metadata.gz: eeafef75cb6b355422bfb6fd8264abf66875c79826a488a40e0e2a542be999bb952cc5003d28c8bb26b4132b4ed76b2a8dad57b9ca6e754b4bf0c1f738a1c80d
7
- data.tar.gz: 1615a75da15627ffbad27b47dc1920bbbb023dba1bae27458cf3d86ea713dd0870800c3c70f9fbe6588ca8e5cc7fb33ea5b5a29807514463061d6581edec1e19
6
+ metadata.gz: 027a82c9aeb99bffdaf791128bdad18758c1e56c17e30bdf1eb4d47e2e9fdf4b0e9e1e91fdc5558249876c4c007947e0bc2d518f000e251ac38c370b47602308
7
+ data.tar.gz: 8473e8b37044a9ee8b6d160734f7b9ce165db85d3a9366283f677704b75d89af08d89fc44278c5c67728cd6e8df292c9564b81309079c2f0c6b815c99d8bc920
@@ -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)
@@ -224,6 +224,7 @@ private
224
224
  # element name next
225
225
  definition ||= schema_definition_from_elename(node.elename)
226
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
227
228
  if obj_class
228
229
  definition ||= schema_definition_from_class(obj_class)
229
230
  end
@@ -249,6 +250,7 @@ private
249
250
  elsif obj_class < ::String and node.respond_to?(:text)
250
251
  obj = obj_class.new(node.text)
251
252
  else
253
+ #Qui crea l'istanza dell'oggetto e poi va ad aggiungere gli elementi alla classe
252
254
  obj = Mapping.create_empty_object(obj_class)
253
255
  add_elesoap2stubobj(node, obj, definition)
254
256
  end
@@ -277,6 +279,7 @@ private
277
279
 
278
280
  def add_elesoap2stubobj(node, obj, definition)
279
281
  vars = {}
282
+ #Cicla su ogni elemento del nodo nella SOAP::Mapping::LiteralRegistry
280
283
  node.each do |name, value|
281
284
  item = definition.elements.find_element(value.elename)
282
285
  if item
@@ -301,6 +304,8 @@ private
301
304
  end
302
305
 
303
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
304
309
  if eledef.mapped_class
305
310
  if eledef.mapped_class.include?(::SOAP::SOAPBasetype)
306
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|
@@ -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 = 8
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.8
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