Sha256: 61d816fbd7bacd153f0e7228ca216cd585b449c08006c01fceae7730ac4da112

Contents?: true

Size: 1.67 KB

Versions: 29

Compression:

Stored size: 1.67 KB

Contents

require 'lp.rb'
require 'lpMappingRegistry.rb'
require 'soap/rpc/driver'

module WSDL::Anonymous

class Lp_porttype < ::SOAP::RPC::Driver
  DefaultEndpointUrl = "http://localhost:17171/"

  Methods = [
    [ "urn:lp:login",
      "login",
      [ [:in, "parameters", ["::SOAP::SOAPElement", "urn:lp", "login"]],
        [:out, "parameters", ["::SOAP::SOAPElement", "urn:lp", "loginResponse"]] ],
      { :request_style =>  :document, :request_use =>  :literal,
        :response_style => :document, :response_use => :literal,
        :faults => {} }
    ],
    [ "urn:lp:echo",
      "echo",
      [ [:in, "parameters", ["::SOAP::SOAPElement", "urn:lp", "Pack"]],
        [:out, "parameters", ["::SOAP::SOAPElement", "urn:lp", "Envelope"]] ],
      { :request_style =>  :document, :request_use =>  :literal,
        :response_style => :document, :response_use => :literal,
        :faults => {} }
    ]
  ]

  def initialize(endpoint_url = nil)
    endpoint_url ||= DefaultEndpointUrl
    super(endpoint_url, nil)
    self.mapping_registry = LpMappingRegistry::EncodedRegistry
    self.literal_mapping_registry = LpMappingRegistry::LiteralRegistry
    init_methods
  end

private

  def init_methods
    Methods.each do |definitions|
      opt = definitions.last
      if opt[:request_style] == :document
        add_document_operation(*definitions)
      else
        add_rpc_operation(*definitions)
        qname = definitions[0]
        name = definitions[2]
        if qname.name != name and qname.name.capitalize == name.capitalize
          ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
            __send__(name, *arg)
          end
        end
      end
    end
  end
end


end

Version data entries

29 entries across 29 versions & 11 rubygems

Version Path
mumboe-soap4r-1.6.0.pre.beta test/wsdl/anonymous/expectedDriver.rb
DefV-soap4r-1.5.8.2 test/wsdl/anonymous/expectedDriver.rb
mumboe-soap4r-1.5.8.7 test/wsdl/anonymous/expectedDriver.rb
teo-soap4r-1.5.9b test/wsdl/anonymous/expectedDriver.rb
mumboe-soap4r-1.5.8.6 test/wsdl/anonymous/expectedDriver.rb
soap4r-spox-1.6.0 test/wsdl/anonymous/expectedDriver.rb
soap4r-r19-1.5.9 test/wsdl/anonymous/expectedDriver.rb
mumboe-soap4r-1.5.8.5 test/wsdl/anonymous/expectedDriver.rb
soap4r-ruby1.9-2.0.5 test/wsdl/anonymous/expectedDriver.rb
soap4r-sgonyea-1.6.0 test/wsdl/anonymous/expectedDriver.rb
soap4r-straightjacket-1.5.9 test/wsdl/anonymous/expectedDriver.rb
soap4r-straightjacket-1.5.8 test/wsdl/anonymous/expectedDriver.rb
soap4r-ruby1.9-2.0.3 test/wsdl/anonymous/expectedDriver.rb
soap4r-ruby1.9-2.0.2 test/wsdl/anonymous/expectedDriver.rb
soap4r-ruby1.9-2.0.1 test/wsdl/anonymous/expectedDriver.rb
mumboe-soap4r-1.5.8.4 test/wsdl/anonymous/expectedDriver.rb
soap4r-ruby1.9-2.0.0 test/wsdl/anonymous/expectedDriver.rb
hands-soap4r-1.5.8.4 test/wsdl/anonymous/expectedDriver.rb
soap4r-ruby1.9-1.0.0 test/wsdl/anonymous/expectedDriver.rb
rubyjedi-soap4r-1.5.8.20100616125722 test/wsdl/anonymous/expectedDriver.rb