2 require 'soap/rpc/standaloneServer'
5 class RAABaseServicePortType
6 MappingRegistry = SOAP::Mapping::Registry.new
11 ::SOAP::Mapping::Registry::TypedArrayFactory,
12 { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") }
17 ::SOAP::Mapping::Registry::TypedStructFactory,
18 { :type => XSD::QName.new("http://xml.apache.org/xml-soap", "Map") }
23 ::SOAP::Mapping::Registry::TypedStructFactory,
24 { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Category") }
29 ::SOAP::Mapping::Registry::TypedArrayFactory,
30 { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info") }
35 ::SOAP::Mapping::Registry::TypedStructFactory,
36 { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info") }
41 ::SOAP::Mapping::Registry::TypedStructFactory,
42 { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Product") }
47 ::SOAP::Mapping::Registry::TypedStructFactory,
48 { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Owner") }
52 ["getAllListings", "getAllListings", [
54 [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]]],
55 "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
56 ["getProductTree", "getProductTree", [
58 [::SOAP::SOAPStruct, "http://xml.apache.org/xml-soap", "Map"]]],
59 "", "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"]]],
65 "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
66 ["getModifiedInfoSince", "getModifiedInfoSince", [
68 [SOAP::SOAPDateTime]],
70 [::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]],
71 "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
72 ["getInfoFromName", "getInfoFromName", [
76 [::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]],
77 "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"],
78 ["getInfoFromOwnerId", "getInfoFromOwnerId", [
82 [::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]]],
83 "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/"]
91 class RAABaseServiceServer < SOAP::RPC::StandaloneServer
95 servant = RAABaseServicePortType.new
96 RAABaseServicePortType::Methods.each do |name_as, name, params, soapaction, namespace|
97 qname = XSD::QName.new(namespace, name_as)
98 @router.add_method(servant, qname, soapaction, name, params)
101 self.mapping_registry = RAABaseServicePortType::MappingRegistry