2
require 'RAAServant.rb'
4
require 'soap/rpc/standaloneServer'
6
class RAABaseServicePortType
7
MappingRegistry = SOAP::Mapping::Registry.new
12
::SOAP::Mapping::Registry::TypedArrayFactory,
13
{ :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") }
18
::SOAP::Mapping::Registry::TypedArrayFactory,
19
{ :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "anyType") }
24
::SOAP::Mapping::Registry::TypedStructFactory,
25
{ :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Category") }
30
::SOAP::Mapping::Registry::TypedArrayFactory,
31
{ :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info") }
36
::SOAP::Mapping::Registry::TypedStructFactory,
37
{ :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info") }
42
::SOAP::Mapping::Registry::TypedStructFactory,
43
{ :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Product") }
48
::SOAP::Mapping::Registry::TypedStructFactory,
49
{ :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Owner") }
54
["getAllListings", "getAllListings", [
56
[::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]]], "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
57
["getProductTree", "getProductTree", [
59
[::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "anyType"]]], "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
60
["getInfoFromCategory", "getInfoFromCategory", [
62
[::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Category"]],
64
[::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]], "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
65
["getModifiedInfoSince", "getModifiedInfoSince", [
67
[SOAP::SOAPDateTime]],
69
[::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]], "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
70
["getInfoFromName", "getInfoFromName", [
74
[::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]], "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
75
["getInfoFromOwnerId", "getInfoFromOwnerId", [
79
[::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]], "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"]
83
class App < SOAP::RPC::StandaloneServer
87
servant = RAABaseServicePortType.new
88
RAABaseServicePortType::Methods.each do |name_as, name, params, soapaction, namespace|
89
qname = XSD::QName.new(namespace, name_as)
90
@router.add_method(servant, qname, soapaction, name, params)
93
self.mapping_registry = RAABaseServicePortType::MappingRegistry
99
App.new('app', nil, '0.0.0.0', 10080).start