Sha256: 7810dad675dd2950c0e3f082076dd1ce26bd65bcfdfaa2792849cacf75e50832
Contents?: true
Size: 1.87 KB
Versions: 4
Compression:
Stored size: 1.87 KB
Contents
#!/usr/bin/env ruby require 'echo_versionServant.rb' require 'echo_versionMappingRegistry.rb' require 'soap/rpc/standaloneServer' class Echo_version_port_type Methods = [ [ XSD::QName.new("urn:example.com:simpletype-rpc", "echo_version"), "urn:example.com:simpletype-rpc", "echo_version", [ ["in", "version", [nil, "urn:example.com:simpletype-rpc-type", "version"]], ["retval", "version_struct", ["Version_struct", "urn:example.com:simpletype-rpc-type", "version_struct"]] ], { :request_style => :rpc, :request_use => :encoded, :response_style => :rpc, :response_use => :encoded, :faults => {} } ], [ XSD::QName.new("urn:example.com:simpletype-rpc", "echo_version_r"), "urn:example.com:simpletype-rpc", "echo_version_r", [ ["in", "version_struct", ["Version_struct", "urn:example.com:simpletype-rpc-type", "version_struct"]], ["retval", "version", [nil, "urn:example.com:simpletype-rpc-type", "version"]] ], { :request_style => :rpc, :request_use => :encoded, :response_style => :rpc, :response_use => :encoded, :faults => {} } ] ] end class Echo_version_port_typeApp < ::SOAP::RPC::StandaloneServer def initialize(*arg) super(*arg) servant = Echo_version_port_type.new Echo_version_port_type::Methods.each do |definitions| opt = definitions.last if opt[:request_style] == :document @router.add_document_operation(servant, *definitions) else @router.add_rpc_operation(servant, *definitions) end end self.mapping_registry = Echo_versionMappingRegistry::EncodedRegistry self.literal_mapping_registry = Echo_versionMappingRegistry::LiteralRegistry end end if $0 == __FILE__ # Change listen port. server = Echo_version_port_typeApp.new('app', nil, '0.0.0.0', 10080) trap(:INT) do server.shutdown end server.start end
Version data entries
4 entries across 2 versions & 1 rubygems