Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 847

Show
Ignore:
Timestamp:
08/22/03 00:16:41 (5 years ago)
Author:
nahi
Message:

Follow module structure change.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/wsdl2ruby.rb

    r832 r847  
    22 
    33require 'getoptlong' 
    4 require 'soap/qname' 
     4require 'xsd/qname' 
    55require 'wsdl/parser' 
    66require 'wsdl/soap/classDefCreator' 
  • trunk/install.rb

    r832 r847  
    4444  installDir(join(SRCPATH, 'lib', 'wsdl', 'soap'), 
    4545    join(DSTPATH, 'wsdl', 'soap')) 
     46  installDir(join(SRCPATH, 'lib', 'xsd'), 
     47    join(DSTPATH, 'xsd')) 
    4648 
    4749  puts "install succeed!" 
  • trunk/sample/Exchange/exchange.rb

    r832 r847  
    1 require 'soap/driver' 
     1require 'soap/rpc/driver' 
    22 
    33ExchangeServiceNamespace = 'http://tempuri.org/exchangeService' 
     
    66  ForeignServer = "http://services.xmethods.net/soap" 
    77  Namespace = "urn:xmethods-CurrencyExchange" 
    8   Proxy = nil 
    98 
    109  def initialize 
    11     @drv = SOAP::Driver.new(nil, nil, Namespace, ForeignServer, Proxy
     10    @drv = SOAP::RPC::Driver.new(ForeignServer, Namespace
    1211    @drv.add_method("getRate", "country1", "country2") 
    1312  end 
  • trunk/sample/GoogleSearch/GoogleSearchDriver.rb

    r837 r847  
    99    GoogleSearchResult, 
    1010    ::SOAP::SOAPStruct, 
    11     ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     11    ::SOAP::Mapping::Registry::TypedStructFactory, 
    1212    { :type => XSD::QName.new("urn:GoogleSearch", "GoogleSearchResult") } 
    1313  ) 
     
    1515    ResultElementArray, 
    1616    ::SOAP::SOAPArray, 
    17     ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, 
     17    ::SOAP::Mapping::Registry::TypedArrayFactory, 
    1818    { :type => XSD::QName.new("urn:GoogleSearch", "ResultElement") } 
    1919  ) 
     
    2121    DirectoryCategoryArray, 
    2222    ::SOAP::SOAPArray, 
    23     ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, 
     23    ::SOAP::Mapping::Registry::TypedArrayFactory, 
    2424    { :type => XSD::QName.new("urn:GoogleSearch", "DirectoryCategory") } 
    2525  ) 
     
    2727    ResultElement, 
    2828    ::SOAP::SOAPStruct, 
    29     ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     29    ::SOAP::Mapping::Registry::TypedStructFactory, 
    3030    { :type => XSD::QName.new("urn:GoogleSearch", "ResultElement") } 
    3131  ) 
     
    3333    DirectoryCategory, 
    3434    ::SOAP::SOAPStruct, 
    35     ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     35    ::SOAP::Mapping::Registry::TypedStructFactory, 
    3636    { :type => XSD::QName.new("urn:GoogleSearch", "DirectoryCategory") } 
    3737  ) 
  • trunk/sample/HelloWorld/hw_s.rb

    r833 r847  
    1 require 'soap/standaloneServer' 
     1require 'soap/rpc/standaloneServer' 
    22 
    3 class HelloWorldServer < SOAP::StandaloneServer 
     3class HelloWorldServer < SOAP::RPC::StandaloneServer 
    44  def on_init 
    55    @log.sev_threshold = Devel::Logger::SEV_DEBUG 
  • trunk/sample/RAA/iRAA.rb

    r832 r847  
    1 require 'soap/rpcUtils
     1require 'soap/mapping
    22 
    33 
     
    66 
    77InterfaceNS = "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.1" 
    8 MappingRegistry = SOAP::RPCUtils::MappingRegistry.new 
     8MappingRegistry = SOAP::Mapping::Registry.new 
    99 
    1010Methods = [ 
     
    4848  ::RAA::Category, 
    4949  ::SOAP::SOAPStruct, 
    50   ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     50  ::SOAP::Mapping::Registry::TypedStructFactory, 
    5151  { :type => XSD::QName.new(InterfaceNS, "Category") } 
    5252) 
     
    7676  ::RAA::Product, 
    7777  ::SOAP::SOAPStruct, 
    78   ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     78  ::SOAP::Mapping::Registry::TypedStructFactory, 
    7979  { :type => XSD::QName.new(InterfaceNS, "Product") } 
    8080) 
     
    9999  ::RAA::Owner, 
    100100  ::SOAP::SOAPStruct, 
    101   ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     101  ::SOAP::Mapping::Registry::TypedStructFactory, 
    102102  { :type => XSD::QName.new(InterfaceNS, "Owner") } 
    103103) 
     
    130130  ::RAA::Info, 
    131131  ::SOAP::SOAPStruct, 
    132   ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, 
     132  ::SOAP::Mapping::Registry::TypedStructFactory, 
    133133  { :type => XSD::QName.new(InterfaceNS, "Info") } 
    134134) 
     
    138138  ::RAA::StringArray, 
    139139  ::SOAP::SOAPArray, 
    140   ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, 
     140  ::SOAP::Mapping::Registry::TypedArrayFactory, 
    141141  { :type => XSD::XSDString::Type } 
    142142) 
     
    146146  ::RAA::InfoArray, 
    147147  ::SOAP::SOAPArray, 
    148   ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, 
     148  ::SOAP::Mapping::Registry::TypedArrayFactory, 
    149149  { :type => XSD::QName.new(InterfaceNS, 'Info') } 
    150150) 
  • trunk/sample/RAA/soap4r.rb

    r832 r847  
    22 
    33require 'iRAA' 
    4 require 'soap/driver' 
     4require 'soap/rpc/driver' 
    55 
    66 
  • trunk/sample/marshallingWithWSDL/marshal.rb

    r832 r847  
    55  include SOAP 
    66 
    7   def initialize(wsdlFile) 
    8     wsdl = WSDL::WSDLParser.create_parser.parse(File.open(wsdlFile).read) 
     7  def initialize(wsdlfile) 
     8    wsdl = WSDL::WSDLParser.create_parser.parse(File.open(wsdlfile).read) 
    99    types = wsdl.collect_complextypes 
    1010    @opt = {