Changeset 1552
- Timestamp:
- 05/18/05 23:36:11 (4 years ago)
- Files:
-
- trunk/lib/soap/rpc/soaplet.rb (modified) (1 diff)
- trunk/lib/soap/soap.rb (modified) (1 diff)
- trunk/lib/soap/streamHandler.rb (modified) (2 diffs)
- trunk/lib/soap/wsdlDriver.rb (modified) (1 diff)
- trunk/lib/wsdl/parser.rb (modified) (2 diffs)
- trunk/lib/wsdl/soap/cgiStubCreator.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/standaloneServerStubCreator.rb (modified) (1 diff)
- trunk/lib/wsdl/xmlSchema/importer.rb (modified) (2 diffs)
- trunk/lib/wsdl/xmlSchema/parser.rb (modified) (2 diffs)
- trunk/lib/xsd/charset.rb (modified) (1 diff)
- trunk/lib/xsd/iconvcharset.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/rpc/soaplet.rb
r1520 r1552 15 15 require 'zlib' 16 16 rescue LoadError 17 STDERR.puts "Loading stringio or zlib failed. No gzipped response supported."if $DEBUG17 warn("Loading stringio or zlib failed. No gzipped response supported.") if $DEBUG 18 18 end 19 19 trunk/lib/soap/soap.rb
r1529 r1552 129 129 end 130 130 end 131 132 133 unless Kernel.respond_to?(:warn) 134 module Kernel 135 def warn(msg) 136 STDERR.puts(msg + "\n") unless $VERBOSE.nil? 137 end 138 end 139 end trunk/lib/soap/streamHandler.rb
r1520 r1552 13 13 require 'zlib' 14 14 rescue LoadError 15 STDERR.puts "Loading stringio or zlib failed. No gzipped response support."if $DEBUG15 warn("Loading stringio or zlib failed. No gzipped response support.") if $DEBUG 16 16 end 17 17 … … 28 28 HTTPAccess2::Client 29 29 rescue LoadError 30 STDERR.puts "Loading http-access2 failed. Net/http is used."if $DEBUG30 warn("Loading http-access2 failed. Net/http is used.") if $DEBUG 31 31 require 'soap/netHttpClient' 32 32 SOAP::NetHttpClient trunk/lib/soap/wsdlDriver.rb
r1537 r1552 44 44 # depricated old interface 45 45 def create_driver(servicename = nil, portname = nil) 46 STDERR.puts "WSDLDriverFactory#create_driver is depricated." + 47 " Use create_rpc_driver instead." 46 warn("WSDLDriverFactory#create_driver is depricated. Use create_rpc_driver instead.") 48 47 port = find_port(servicename, portname) 49 48 WSDLDriver.new(@wsdl, port, @logdev) trunk/lib/wsdl/parser.rb
r1534 r1552 128 128 unless o 129 129 unless @ignored.key?(elename) 130 STDERR.puts("ignored element: #{elename}")130 warn("ignored element: #{elename}") 131 131 @ignored[elename] = elename 132 132 end … … 143 143 unless o.parse_attr(attr_ele, value_ele) 144 144 unless @ignored.key?(attr_ele) 145 STDERR.puts("ignored attr: #{attr_ele}")145 warn("ignored attr: #{attr_ele}") 146 146 @ignored[attr_ele] = attr_ele 147 147 end trunk/lib/wsdl/soap/cgiStubCreator.rb
r1520 r1552 27 27 28 28 def dump(service_name) 29 STDERR.puts "!!! IMPORTANT !!!" 30 STDERR.puts "- CGI stub can have only 1 port. Creating stub for the first port... Rests are ignored." 31 STDERR.puts "!!! IMPORTANT !!!" 29 warn("CGI stub can have only 1 port. Creating stub for the first port... Rests are ignored.") 32 30 port = @definitions.service(service_name).ports[0] 33 31 dump_porttype(port.porttype.name) trunk/lib/wsdl/soap/standaloneServerStubCreator.rb
r1520 r1552 27 27 28 28 def dump(service_name) 29 STDERR.puts "!!! IMPORTANT !!!" 30 STDERR.puts "- Standalone stub can have only 1 port for now. So creating stub for the first port and rests are ignored." 31 STDERR.puts "- Standalone server stub ignores port location defined in WSDL. Location is http://localhost:10080/ by default. Generated client from WSDL must be configured to point this endpoint manually." 32 STDERR.puts "!!! IMPORTANT !!!" 29 warn("- Standalone stub can have only 1 port for now. So creating stub for the first port and rests are ignored.") 30 warn("- Standalone server stub ignores port location defined in WSDL. Location is http://localhost:10080/ by default. Generated client from WSDL must be configured to point this endpoint manually.") 33 31 port = @definitions.service(service_name).ports[0] 34 32 dump_porttype(port.porttype.name) trunk/lib/wsdl/xmlSchema/importer.rb
r1534 r1552 44 44 45 45 def fetch(location) 46 STDERR.puts("importing: #{location}") if $DEBUG46 warn("importing: #{location}") if $DEBUG 47 47 content = nil 48 48 if location.scheme == 'file' or … … 69 69 HTTPAccess2::Client 70 70 rescue LoadError 71 STDERR.puts "Loading http-access2 failed. Net/http is used."if $DEBUG71 warn("Loading http-access2 failed. Net/http is used.") if $DEBUG 72 72 require 'soap/netHttpClient' 73 73 ::SOAP::NetHttpClient trunk/lib/wsdl/xmlSchema/parser.rb
r1534 r1552 126 126 unless o 127 127 unless @ignored.key?(elename) 128 STDERR.puts("ignored element: #{elename} of #{parent.class}")128 warn("ignored element: #{elename} of #{parent.class}") 129 129 @ignored[elename] = elename 130 130 end … … 144 144 unless o.parse_attr(attr_ele, value_ele) 145 145 unless @ignored.key?(attr_ele) 146 STDERR.puts("ignored attr: #{attr_ele}")146 warn("ignored attr: #{attr_ele}") 147 147 @ignored[attr_ele] = attr_ele 148 148 end trunk/lib/xsd/charset.rb
r1520 r1552 72 72 73 73 def Charset.encoding=(encoding) 74 STDERR.puts("xsd charset is set to #{encoding}") if $DEBUG74 warn("xsd charset is set to #{encoding}") if $DEBUG 75 75 @encoding = encoding 76 76 end trunk/lib/xsd/iconvcharset.rb
r1520 r1552 23 23 ch, str = e.failed.split(//, 2) 24 24 out << '?' 25 STDERR.puts("Failed to convert #{ch}")25 warn("Failed to convert #{ch}") 26 26 retry 27 27 end