[ruby-dev:26251] Re: many errors with soap/wsdl test on mswin32
From:
"H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date:
2005-05-31 10:41:39 UTC
List:
ruby-dev #26251
山本です。
>// file:// スキーマを明示的に追加してみた(全エラーがこれで直るかは確かめてません)
適宜 file:// を足すことでエラーが全滅したので、全てドライブレター問題のようです。
Index: test/wsdl/axisArray/test_axisarray.rb
===================================================================
RCS file: /src/ruby/test/wsdl/axisArray/test_axisarray.rb,v
retrieving revision 1.2
diff -u -w -b -p -r1.2 test_axisarray.rb
--- test/wsdl/axisArray/test_axisarray.rb 29 Jan 2004 13:22:27 -0000 1.2
+++ test/wsdl/axisArray/test_axisarray.rb 31 May 2005 10:39:33 -0000
@@ -47,7 +47,7 @@ __EOX__
end
def test_by_wsdl
- wsdlfile = File.join(File.dirname(File.expand_path(__FILE__)), 'axisArray.wsdl')
+ wsdlfile = "file://" + File.join(File.dirname(File.expand_path(__FILE__)), 'axisArray.wsdl')
wsdl = WSDL::Importer.import(wsdlfile)
service = wsdl.services[0]
port = service.ports[0]
Index: test/wsdl/datetime/test_datetime.rb
===================================================================
RCS file: /src/ruby/test/wsdl/datetime/test_datetime.rb,v
retrieving revision 1.6
diff -u -w -b -p -r1.6 test_datetime.rb
--- test/wsdl/datetime/test_datetime.rb 22 May 2005 13:03:34 -0000 1.6
+++ test/wsdl/datetime/test_datetime.rb 31 May 2005 10:26:17 -0000
@@ -27,7 +27,7 @@ class TestDatetime < Test::Unit::TestCas
end
def setup_client
- wsdl = File.join(DIR, 'datetime.wsdl')
+ wsdl = "file://" + File.join(DIR, 'datetime.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.generate_explicit_type = true
Index: test/wsdl/document/test_nosoapaction.rb
===================================================================
RCS file: /src/ruby/test/wsdl/document/test_nosoapaction.rb,v
retrieving revision 1.1
diff -u -w -b -p -r1.1 test_nosoapaction.rb
--- test/wsdl/document/test_nosoapaction.rb 22 May 2005 13:03:35 -0000 1.1
+++ test/wsdl/document/test_nosoapaction.rb 31 May 2005 10:24:51 -0000
@@ -79,7 +79,7 @@ class TestNoSOAPAction < Test::Unit::Tes
end
def test_with_soapaction
- wsdl = File.join(DIR, 'ping_nosoapaction.wsdl')
+ wsdl = "file://" + File.join(DIR, 'ping_nosoapaction.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.wiredump_dev = STDOUT if $DEBUG
Index: test/wsdl/document/test_number.rb
===================================================================
RCS file: /src/ruby/test/wsdl/document/test_number.rb,v
retrieving revision 1.1
diff -u -w -b -p -r1.1 test_number.rb
--- test/wsdl/document/test_number.rb 22 May 2005 13:03:35 -0000 1.1
+++ test/wsdl/document/test_number.rb 31 May 2005 10:38:49 -0000
@@ -50,7 +50,7 @@ class TestNumber < Test::Unit::TestCase
def setup_classdef
gen = WSDL::SOAP::WSDL2Ruby.new
- gen.location = pathname("number.wsdl")
+ gen.location = "file://" + pathname("number.wsdl")
gen.basedir = DIR
gen.logger.level = Logger::FATAL
gen.opt['classdef'] = nil
@@ -78,7 +78,7 @@ class TestNumber < Test::Unit::TestCase
end
def test_wsdl
- wsdl = File.join(DIR, 'number.wsdl')
+ wsdl = "file://" + File.join(DIR, 'number.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.wiredump_dev = STDOUT if $DEBUG
Index: test/wsdl/document/test_rpc.rb
===================================================================
RCS file: /src/ruby/test/wsdl/document/test_rpc.rb,v
retrieving revision 1.2
diff -u -w -b -p -r1.2 test_rpc.rb
--- test/wsdl/document/test_rpc.rb 23 May 2005 15:40:01 -0000 1.2
+++ test/wsdl/document/test_rpc.rb 31 May 2005 10:36:40 -0000
@@ -63,7 +63,7 @@ class TestRPC < Test::Unit::TestCase
def setup_classdef
gen = WSDL::SOAP::WSDL2Ruby.new
- gen.location = pathname("document.wsdl")
+ gen.location = "file://" + pathname("document.wsdl")
gen.basedir = DIR
gen.logger.level = Logger::FATAL
gen.opt['classdef'] = nil
@@ -91,7 +91,7 @@ class TestRPC < Test::Unit::TestCase
end
def test_wsdl
- wsdl = File.join(DIR, 'document.wsdl')
+ wsdl = "file://" + File.join(DIR, 'document.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.wiredump_dev = STDOUT if $DEBUG
Index: test/wsdl/map/test_map.rb
===================================================================
RCS file: /src/ruby/test/wsdl/map/test_map.rb,v
retrieving revision 1.3
diff -u -w -b -p -r1.3 test_map.rb
--- test/wsdl/map/test_map.rb 22 May 2005 13:03:35 -0000 1.3
+++ test/wsdl/map/test_map.rb 31 May 2005 10:35:28 -0000
@@ -45,7 +45,7 @@ class TestMap < Test::Unit::TestCase
end
def setup_client
- wsdl = File.join(DIR, 'map.wsdl')
+ wsdl = "file://" + File.join(DIR, 'map.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.generate_explicit_type = true
@@ -69,7 +69,7 @@ class TestMap < Test::Unit::TestCase
def test_by_wsdl
dir = File.dirname(File.expand_path(__FILE__))
- wsdlfile = File.join(dir, 'map.wsdl')
+ wsdlfile = "file://" + File.join(dir, 'map.wsdl')
xml = File.open(File.join(dir, 'map.xml')) { |f| f.read }
wsdl = WSDL::Importer.import(wsdlfile)
service = wsdl.services[0]
Index: test/wsdl/marshal/test_wsdlmarshal.rb
===================================================================
RCS file: /src/ruby/test/wsdl/marshal/test_wsdlmarshal.rb,v
retrieving revision 1.1
diff -u -w -b -p -r1.1 test_wsdlmarshal.rb
--- test/wsdl/marshal/test_wsdlmarshal.rb 22 May 2005 13:03:36 -0000 1.1
+++ test/wsdl/marshal/test_wsdlmarshal.rb 31 May 2005 10:33:58 -0000
@@ -56,7 +56,7 @@ class TestWSDLMarshal < Test::Unit::Test
def test_classdef
gen = WSDL::SOAP::WSDL2Ruby.new
- gen.location = pathname("person.wsdl")
+ gen.location = "file://" + pathname("person.wsdl")
gen.basedir = DIR
gen.logger.level = Logger::FATAL
gen.opt['classdef'] = nil
Index: test/wsdl/raa/test_raa.rb
===================================================================
RCS file: /src/ruby/test/wsdl/raa/test_raa.rb,v
retrieving revision 1.5
diff -u -w -b -p -r1.5 test_raa.rb
--- test/wsdl/raa/test_raa.rb 22 May 2005 13:03:36 -0000 1.5
+++ test/wsdl/raa/test_raa.rb 31 May 2005 10:32:46 -0000
@@ -29,7 +29,7 @@ class TestRAA < Test::Unit::TestCase
end
def setup_client
- wsdl = File.join(DIR, 'raa.wsdl')
+ wsdl = "file://" + File.join(DIR, 'raa.wsdl')
@raa = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@raa.endpoint_url = "http://localhost:#{Port}/"
end
Index: test/wsdl/rpc/test_rpc.rb
===================================================================
RCS file: /src/ruby/test/wsdl/rpc/test_rpc.rb,v
retrieving revision 1.1
diff -u -w -b -p -r1.1 test_rpc.rb
--- test/wsdl/rpc/test_rpc.rb 22 May 2005 13:03:37 -0000 1.1
+++ test/wsdl/rpc/test_rpc.rb 31 May 2005 10:31:53 -0000
@@ -61,7 +61,7 @@ class TestRPC < Test::Unit::TestCase
def setup_classdef
gen = WSDL::SOAP::WSDL2Ruby.new
- gen.location = pathname("rpc.wsdl")
+ gen.location = "file://" + pathname("rpc.wsdl")
gen.basedir = DIR
gen.logger.level = Logger::FATAL
gen.opt['classdef'] = nil
@@ -89,7 +89,7 @@ class TestRPC < Test::Unit::TestCase
end
def test_wsdl
- wsdl = File.join(DIR, 'rpc.wsdl')
+ wsdl = "file://" + File.join(DIR, 'rpc.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.wiredump_dev = STDOUT if $DEBUG
Index: test/wsdl/simpletype/test_simpletype.rb
===================================================================
RCS file: /src/ruby/test/wsdl/simpletype/test_simpletype.rb,v
retrieving revision 1.2
diff -u -w -b -p -r1.2 test_simpletype.rb
--- test/wsdl/simpletype/test_simpletype.rb 22 May 2005 13:03:37 -0000 1.2
+++ test/wsdl/simpletype/test_simpletype.rb 31 May 2005 10:29:04 -0000
@@ -45,7 +45,7 @@ class TestSimpleType < Test::Unit::TestC
end
def setup_client
- wsdl = File.join(DIR, 'simpletype.wsdl')
+ wsdl = "file://" + File.join(DIR, 'simpletype.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.generate_explicit_type = false
Index: test/wsdl/soap/test_soapbodyparts.rb
===================================================================
RCS file: /src/ruby/test/wsdl/soap/test_soapbodyparts.rb,v
retrieving revision 1.2
diff -u -w -b -p -r1.2 test_soapbodyparts.rb
--- test/wsdl/soap/test_soapbodyparts.rb 22 May 2005 13:03:37 -0000 1.2
+++ test/wsdl/soap/test_soapbodyparts.rb 31 May 2005 10:25:30 -0000
@@ -45,7 +45,7 @@ class TestSOAPBodyParts < Test::Unit::Te
end
def setup_client
- wsdl = File.join(DIR, 'soapbodyparts.wsdl')
+ wsdl = "file://" + File.join(DIR, 'soapbodyparts.wsdl')
@client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
@client.endpoint_url = "http://localhost:#{Port}/"
@client.wiredump_dev = STDERR if $DEBUG