soap4r_es 0.0.7 → 0.0.9
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.
- checksums.yaml +5 -5
- data/lib/soap/encodingstyle/handler.rb +1 -1
- data/lib/soap/mapping/encodedregistry.rb +2 -1
- data/lib/soap/mapping/literalregistry.rb +6 -2
- data/lib/soap/mapping/mapping.rb +1 -0
- data/lib/soap/rpc/httpserver.rb +1 -1
- data/lib/soap/rpc/router.rb +4 -0
- data/lib/soap/version.rb +1 -1
- data/lib/xsd/datatypes.rb +0 -1
- metadata +3 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: 85f79c0dfc36ff1e92f59a298a779dc15651b8ff425a0547e169332509baa91e
         | 
| 4 | 
            +
              data.tar.gz: caa7bc8e470f3c32b62888143836d31968b81c26465dfac234512d06e940006b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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)
         | 
| @@ -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 =  | 
| 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)
         | 
    
        data/lib/soap/mapping/mapping.rb
    CHANGED
    
    
    
        data/lib/soap/rpc/httpserver.rb
    CHANGED
    
    | @@ -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,  | 
| 30 | 
            +
              attr_proxy :generate_explicit_type, false
         | 
| 31 31 | 
             
              attr_proxy :use_default_namespace, true
         | 
| 32 32 |  | 
| 33 33 | 
             
              def initialize(config)
         | 
    
        data/lib/soap/rpc/router.rb
    CHANGED
    
    | @@ -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
    
    
    
        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. | 
| 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:  | 
| 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 | 
            -
             | 
| 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
         |