Changeset 847
- Timestamp:
- 08/22/03 00:16:41 (5 years ago)
- Files:
-
- trunk/bin/wsdl2ruby.rb (modified) (1 diff)
- trunk/install.rb (modified) (1 diff)
- trunk/sample/Exchange/exchange.rb (modified) (2 diffs)
- trunk/sample/GoogleSearch/GoogleSearchDriver.rb (modified) (5 diffs)
- trunk/sample/HelloWorld/hw_s.rb (modified) (1 diff)
- trunk/sample/RAA/iRAA.rb (modified) (8 diffs)
- trunk/sample/RAA/soap4r.rb (modified) (1 diff)
- trunk/sample/marshallingWithWSDL/marshal.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/wsdl2ruby.rb
r832 r847 2 2 3 3 require 'getoptlong' 4 require ' soap/qname'4 require 'xsd/qname' 5 5 require 'wsdl/parser' 6 6 require 'wsdl/soap/classDefCreator' trunk/install.rb
r832 r847 44 44 installDir(join(SRCPATH, 'lib', 'wsdl', 'soap'), 45 45 join(DSTPATH, 'wsdl', 'soap')) 46 installDir(join(SRCPATH, 'lib', 'xsd'), 47 join(DSTPATH, 'xsd')) 46 48 47 49 puts "install succeed!" trunk/sample/Exchange/exchange.rb
r832 r847 1 require 'soap/ driver'1 require 'soap/rpc/driver' 2 2 3 3 ExchangeServiceNamespace = 'http://tempuri.org/exchangeService' … … 6 6 ForeignServer = "http://services.xmethods.net/soap" 7 7 Namespace = "urn:xmethods-CurrencyExchange" 8 Proxy = nil9 8 10 9 def initialize 11 @drv = SOAP:: Driver.new(nil, nil, Namespace, ForeignServer, Proxy)10 @drv = SOAP::RPC::Driver.new(ForeignServer, Namespace) 12 11 @drv.add_method("getRate", "country1", "country2") 13 12 end trunk/sample/GoogleSearch/GoogleSearchDriver.rb
r837 r847 9 9 GoogleSearchResult, 10 10 ::SOAP::SOAPStruct, 11 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,11 ::SOAP::Mapping::Registry::TypedStructFactory, 12 12 { :type => XSD::QName.new("urn:GoogleSearch", "GoogleSearchResult") } 13 13 ) … … 15 15 ResultElementArray, 16 16 ::SOAP::SOAPArray, 17 ::SOAP:: RPCUtils::MappingRegistry::TypedArrayFactory,17 ::SOAP::Mapping::Registry::TypedArrayFactory, 18 18 { :type => XSD::QName.new("urn:GoogleSearch", "ResultElement") } 19 19 ) … … 21 21 DirectoryCategoryArray, 22 22 ::SOAP::SOAPArray, 23 ::SOAP:: RPCUtils::MappingRegistry::TypedArrayFactory,23 ::SOAP::Mapping::Registry::TypedArrayFactory, 24 24 { :type => XSD::QName.new("urn:GoogleSearch", "DirectoryCategory") } 25 25 ) … … 27 27 ResultElement, 28 28 ::SOAP::SOAPStruct, 29 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,29 ::SOAP::Mapping::Registry::TypedStructFactory, 30 30 { :type => XSD::QName.new("urn:GoogleSearch", "ResultElement") } 31 31 ) … … 33 33 DirectoryCategory, 34 34 ::SOAP::SOAPStruct, 35 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,35 ::SOAP::Mapping::Registry::TypedStructFactory, 36 36 { :type => XSD::QName.new("urn:GoogleSearch", "DirectoryCategory") } 37 37 ) trunk/sample/HelloWorld/hw_s.rb
r833 r847 1 require 'soap/ standaloneServer'1 require 'soap/rpc/standaloneServer' 2 2 3 class HelloWorldServer < SOAP:: StandaloneServer3 class HelloWorldServer < SOAP::RPC::StandaloneServer 4 4 def on_init 5 5 @log.sev_threshold = Devel::Logger::SEV_DEBUG trunk/sample/RAA/iRAA.rb
r832 r847 1 require 'soap/ rpcUtils'1 require 'soap/mapping' 2 2 3 3 … … 6 6 7 7 InterfaceNS = "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.1" 8 MappingRegistry = SOAP:: RPCUtils::MappingRegistry.new8 MappingRegistry = SOAP::Mapping::Registry.new 9 9 10 10 Methods = [ … … 48 48 ::RAA::Category, 49 49 ::SOAP::SOAPStruct, 50 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,50 ::SOAP::Mapping::Registry::TypedStructFactory, 51 51 { :type => XSD::QName.new(InterfaceNS, "Category") } 52 52 ) … … 76 76 ::RAA::Product, 77 77 ::SOAP::SOAPStruct, 78 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,78 ::SOAP::Mapping::Registry::TypedStructFactory, 79 79 { :type => XSD::QName.new(InterfaceNS, "Product") } 80 80 ) … … 99 99 ::RAA::Owner, 100 100 ::SOAP::SOAPStruct, 101 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,101 ::SOAP::Mapping::Registry::TypedStructFactory, 102 102 { :type => XSD::QName.new(InterfaceNS, "Owner") } 103 103 ) … … 130 130 ::RAA::Info, 131 131 ::SOAP::SOAPStruct, 132 ::SOAP:: RPCUtils::MappingRegistry::TypedStructFactory,132 ::SOAP::Mapping::Registry::TypedStructFactory, 133 133 { :type => XSD::QName.new(InterfaceNS, "Info") } 134 134 ) … … 138 138 ::RAA::StringArray, 139 139 ::SOAP::SOAPArray, 140 ::SOAP:: RPCUtils::MappingRegistry::TypedArrayFactory,140 ::SOAP::Mapping::Registry::TypedArrayFactory, 141 141 { :type => XSD::XSDString::Type } 142 142 ) … … 146 146 ::RAA::InfoArray, 147 147 ::SOAP::SOAPArray, 148 ::SOAP:: RPCUtils::MappingRegistry::TypedArrayFactory,148 ::SOAP::Mapping::Registry::TypedArrayFactory, 149 149 { :type => XSD::QName.new(InterfaceNS, 'Info') } 150 150 ) trunk/sample/RAA/soap4r.rb
r832 r847 2 2 3 3 require 'iRAA' 4 require 'soap/ driver'4 require 'soap/rpc/driver' 5 5 6 6 trunk/sample/marshallingWithWSDL/marshal.rb
r832 r847 5 5 include SOAP 6 6 7 def initialize(wsdl File)8 wsdl = WSDL::WSDLParser.create_parser.parse(File.open(wsdl File).read)7 def initialize(wsdlfile) 8 wsdl = WSDL::WSDLParser.create_parser.parse(File.open(wsdlfile).read) 9 9 types = wsdl.collect_complextypes 10 10 @opt = {