[BioRuby-cvs] bioruby/lib/bio/io soapwsdl.rb,1.2,1.3

Mitsuteru C. Nakao nakao at pub.open-bio.org
Sun Dec 18 11:51:20 EST 2005


Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory pub.open-bio.org:/tmp/cvs-serv29367/lib/bio/io

Modified Files:
	soapwsdl.rb 
Log Message:
* Added RDoc.


Index: soapwsdl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/soapwsdl.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** soapwsdl.rb	23 Oct 2005 10:41:00 -0000	1.2
--- soapwsdl.rb	18 Dec 2005 16:51:18 -0000	1.3
***************
*** 1,6 ****
  #
! # bio/io/soapwsdl.rb - SOAP/WSDL interface class
  #
! #   Copyright (C) 2004 KATAYAMA Toshiaki <k at bioruby.org>
  #
  #  This library is free software; you can redistribute it and/or
--- 1,41 ----
  #
! # = bio/io/soapwsdl.rb - SOAP/WSDL interface class
  #
! # Copyright::   Copyright (C) 2004 
! #               KATAYAMA Toshiaki <k at bioruby.org>
! # License::     LGPL
! #
! # $Id$
! #
! # SOAP/WSDL 
! #
! #
! # == Examples
! # 
! # class API < Bio::SOAPWSDL
! #   def initialize
! #     @wsdl = 'http://example.com/example.wsdl'
! #     @log = File.new("soap_log", 'w')
! #     create_driver
! #   end
! # end
! #
! # == Use HTTP proxy
! #
! # You need to set following two environmental variables
! # (case might be insensitive) as required by SOAP4R.
! #
! # --- soap_use_proxy
! # Set the value of this variable to 'on'.
! #
! # --- http_proxy
! # Set the URL of your proxy server (http://myproxy.com:8080 etc.).
! #
! # === Example
! # 
! # % export soap_use_proxy=on
! # % export http_proxy=http://localhost:8080
! #
! #--
  #
  #  This library is free software; you can redistribute it and/or
***************
*** 18,22 ****
  #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
  #
! #  $Id$
  #
  
--- 53,57 ----
  #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
  #
! #++
  #
  
***************
*** 30,33 ****
--- 65,75 ----
  class SOAPWSDL
  
+   # WSDL URL
+   attr_reader :wsdl
+ 
+   # log IO
+   attr_reader :log
+ 
+ 
    def initialize(wsdl = nil)
      @wsdl = wsdl
***************
*** 35,39 ****
      create_driver
    end
!   attr_reader :wsdl, :log
  
    def create_driver
--- 77,81 ----
      create_driver
    end
! 
  
    def create_driver
***************
*** 45,49 ****
--- 87,94 ----
      @driver.generate_explicit_type = true	# Ruby obj <-> SOAP obj
    end
+   private :create_driver
+ 
  
+   # Set a WSDL URL.
    def wsdl=(url)
      @wsdl = url
***************
*** 51,54 ****
--- 96,101 ----
    end
  
+ 
+   # Set log IO
    def log=(io)
      @log = io
***************
*** 56,80 ****
    end
  
    def method_missing(*arg)
      @driver.send(*arg)
    end
  
  end # SOAP
  
  end # Bio
- 
- =begin
- 
- To use HTTP proxy, you need to set following two environmental variables
- (case might be insensitive) as required by SOAP4R.
- 
- --- soap_use_proxy
- 
- Set the value of this variable to 'on'.
- 
- --- http_proxy
- 
- Set the URL of your proxy server (http://myproxy.com:8080 etc.).
- 
- =end
  
--- 103,114 ----
    end
  
+ 
    def method_missing(*arg)
      @driver.send(*arg)
    end
+   private :method_missing
  
  end # SOAP
  
  end # Bio
  



More information about the bioruby-cvs mailing list