rubyjedi-soap4r 1.5.8.01 → 1.5.8.20100616125722
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/wsdl2ruby.rb +1 -0
- data/bin/xsd2ruby.rb +1 -1
- data/lib/soap/baseData.rb +1 -1
- data/lib/soap/element.rb +0 -2
- data/lib/soap/generator.rb +1 -2
- data/lib/soap/mapping/encodedregistry.rb +1 -0
- data/lib/soap/mapping/factory.rb +2 -2
- data/lib/soap/mapping/mapping.rb +3 -4
- data/lib/soap/mapping/registry.rb +0 -15
- data/lib/soap/mapping/rubytypeFactory.rb +0 -1
- data/lib/soap/mapping/wsdlencodedregistry.rb +1 -1
- data/lib/soap/mimemessage.rb +1 -0
- data/lib/soap/nestedexception.rb +1 -1
- data/lib/soap/netHttpClient.rb +4 -4
- data/lib/soap/ns.rb +4 -0
- data/lib/soap/property.rb +21 -15
- data/lib/soap/rpc/element.rb +1 -1
- data/lib/soap/rpc/standaloneServer.rb +1 -1
- data/lib/soap/soap.rb +4 -2
- data/lib/soap/streamHandler.rb +1 -1
- data/lib/soap/version.rb +8 -0
- data/lib/soap/wsdlDriver.rb +2 -2
- data/lib/wsdl/parser.rb +4 -4
- data/lib/wsdl/soap/classDefCreatorSupport.rb +1 -1
- data/lib/wsdl/soap/clientSkeltonCreator.rb +4 -2
- data/lib/wsdl/soap/driverCreator.rb +4 -2
- data/lib/wsdl/soap/methodDefCreator.rb +1 -1
- data/lib/wsdl/soap/servantSkeltonCreator.rb +4 -2
- data/lib/wsdl/soap/wsdl2ruby.rb +1 -1
- data/lib/wsdl/xmlSchema/parser.rb +4 -4
- data/lib/wsdl/xmlSchema/xsd2ruby.rb +1 -1
- data/lib/xsd/charset.rb +4 -3
- data/lib/xsd/codegen/gensupport.rb +8 -5
- data/lib/xsd/datatypes.rb +6 -6
- data/lib/xsd/ns.rb +1 -1
- data/lib/xsd/qname.rb +2 -2
- data/lib/xsd/xmlparser.rb +11 -17
- data/lib/xsd/xmlparser/libxmlparser.rb +6 -10
- data/test/helper.rb +6 -0
- data/test/soap/asp.net/test_aspdotnet.rb +3 -3
- data/test/soap/auth/test_basic.rb +2 -2
- data/test/soap/auth/test_digest.rb +2 -2
- data/test/soap/calc/server.cgi +2 -0
- data/test/soap/calc/test_calc.rb +3 -2
- data/test/soap/calc/test_calc2.rb +3 -2
- data/test/soap/calc/test_calc_cgi.rb +1 -1
- data/test/soap/case/test_mapping.rb +2 -2
- data/test/soap/fault/test_customfault.rb +1 -1
- data/test/soap/fault/test_fault.rb +1 -1
- data/test/soap/fault/test_soaparray.rb +1 -1
- data/test/soap/filter/test_filter.rb +1 -1
- data/test/soap/header/server.cgi +1 -0
- data/test/soap/header/test_authheader.rb +1 -1
- data/test/soap/header/test_authheader_cgi.rb +1 -1
- data/test/soap/header/test_simplehandler.rb +1 -1
- data/test/soap/helloworld/test_helloworld.rb +3 -2
- data/test/soap/literalArrayMapping/test_definedarray.rb +2 -2
- data/test/soap/marshal/marshaltestlib.rb +5 -2
- data/test/soap/marshal/test_digraph.rb +1 -1
- data/test/soap/marshal/test_marshal.rb +3 -2
- data/test/soap/marshal/test_struct.rb +1 -1
- data/test/soap/ssl/sslsvr.rb +1 -0
- data/test/soap/ssl/test_ssl.rb +1 -1
- data/test/soap/struct/test_struct.rb +2 -2
- data/test/soap/swa/test_file.rb +1 -1
- data/test/soap/test_basetype.rb +1 -1
- data/test/soap/test_cookie.rb +2 -2
- data/test/soap/test_custom_ns.rb +4 -4
- data/test/soap/test_custommap.rb +1 -1
- data/test/soap/test_empty.rb +6 -6
- data/test/soap/test_envelopenamespace.rb +2 -2
- data/test/soap/test_extraattr.rb +2 -2
- data/test/soap/test_generator.rb +5 -3
- data/test/soap/test_httpconfigloader.rb +1 -1
- data/test/soap/test_mapping.rb +1 -1
- data/test/soap/test_nestedexception.rb +28 -14
- data/test/soap/test_nil.rb +23 -28
- data/test/soap/test_no_indent.rb +3 -3
- data/test/soap/test_property.rb +2 -2
- data/test/soap/test_response_as_xml.rb +4 -4
- data/test/soap/test_soapelement.rb +1 -1
- data/test/soap/test_streamhandler.rb +2 -2
- data/test/soap/test_styleuse.rb +2 -2
- data/test/soap/wsdlDriver/test_calc.rb +2 -2
- data/test/soap/wsdlDriver/test_document.rb +2 -2
- data/test/soap/wsdlDriver/test_simpletype.rb +3 -2
- data/test/testutil.rb +4 -4
- data/test/wsdl/abstract/test_abstract.rb +2 -2
- data/test/wsdl/anonymous/test_anonymous.rb +2 -2
- data/test/wsdl/any/test_any.rb +2 -2
- data/test/wsdl/axisArray/test_axisarray.rb +2 -2
- data/test/wsdl/choice/test_choice.rb +2 -2
- data/test/wsdl/complexcontent/test_echo.rb +2 -2
- data/test/wsdl/datetime/test_datetime.rb +3 -2
- data/test/wsdl/document/array/test_array.rb +2 -2
- data/test/wsdl/document/test_nosoapaction.rb +2 -2
- data/test/wsdl/document/test_number.rb +2 -2
- data/test/wsdl/document/test_rpc.rb +2 -2
- data/test/wsdl/fault/multifault.wsdl +8 -8
- data/test/wsdl/fault/test_fault.rb +3 -3
- data/test/wsdl/fault/test_multifault.rb +13 -13
- data/test/wsdl/group/test_rpc.rb +2 -2
- data/test/wsdl/list/test_list.rb +2 -2
- data/test/wsdl/map/test_map.rb +1 -1
- data/test/wsdl/marshal/test_wsdlmarshal.rb +3 -4
- data/test/wsdl/oneway/test_oneway.rb +2 -2
- data/test/wsdl/overload/test_overload.rb +2 -2
- data/test/wsdl/qualified/test_qualified.rb +4 -4
- data/test/wsdl/qualified/test_unqualified.rb +4 -4
- data/test/wsdl/raa/test_raa.rb +4 -4
- data/test/wsdl/ref/test_ref.rb +2 -2
- data/test/wsdl/rpc/test_rpc.rb +2 -2
- data/test/wsdl/rpc/test_rpc_lit.rb +18 -18
- data/test/wsdl/simplecontent/test_simplecontent.rb +2 -2
- data/test/wsdl/simpletype/rpc/test_rpc.rb +2 -2
- data/test/wsdl/simpletype/test_simpletype.rb +2 -2
- data/test/wsdl/soap/test_soapbodyparts.rb +1 -1
- data/test/wsdl/soap/wsdl2ruby/section/test_section.rb +2 -2
- data/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb +2 -2
- data/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb +2 -2
- data/test/wsdl/soaptype/test_soaptype.rb +5 -5
- data/test/wsdl/test_emptycomplextype.rb +1 -1
- data/test/wsdl/test_fault.rb +1 -1
- data/test/wsdl/test_multiplefault.rb +1 -1
- data/test/xsd/codegen/test_classdef.rb +1 -1
- data/test/xsd/test_noencoding.rb +1 -1
- data/test/xsd/test_ns.rb +1 -1
- data/test/xsd/test_xmlschemaparser.rb +1 -1
- data/test/xsd/test_xsd.rb +1 -1
- data/test/xsd/xsd2ruby/test_xsd2ruby.rb +3 -3
- metadata +24 -33
- data/lib/soap/rpc/element.rb.orig +0 -378
- data/lib/soap/ruby18ext.rb +0 -13
- data/lib/xsd/xmlparser.rb.orig +0 -110
- data/test/results +0 -4810
- data/test/soap/header/session.pstoredb +0 -0
- data/test/wsdl/marshal/Person.rb +0 -1
- data/test/wsdl/simpletype/rpc/echo_version.rb +0 -1
- data/test/wsdl/simpletype/rpc/echo_versionDriver.rb +0 -10
- data/test/wsdl/simpletype/rpc/echo_versionMappingRegistry.rb +0 -4
- data/test/wsdl/simpletype/rpc/echo_versionServant.rb +0 -3
- data/test/wsdl/simpletype/rpc/echo_version_service.rb +0 -3
- data/test/wsdl/simpletype/rpc/echo_version_serviceClient.rb +0 -34
- data/test/wsdl/soap/wsdl2ruby/echo_version.rb +0 -1
- data/test/wsdl/soap/wsdl2ruby/echo_versionDriver.rb +0 -10
- data/test/wsdl/soap/wsdl2ruby/echo_versionMappingRegistry.rb +0 -4
- data/test/wsdl/soap/wsdl2ruby/echo_versionServant.rb +0 -3
- data/test/wsdl/soap/wsdl2ruby/echo_version_service.cgi +0 -3
- data/test/wsdl/soap/wsdl2ruby/echo_version_service.rb +0 -7
- data/test/wsdl/soap/wsdl2ruby/echo_version_serviceClient.rb +0 -34
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Abstract
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/soap/wsdl2ruby'
|
3
4
|
require 'soap/rpc/standaloneServer'
|
4
5
|
require 'soap/wsdlDriver'
|
5
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
6
6
|
|
7
7
|
|
8
8
|
if defined?(HTTPClient)
|
data/test/wsdl/any/test_any.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Any
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'soap/processor'
|
3
4
|
require 'soap/mapping'
|
4
5
|
require 'soap/rpc/element'
|
5
6
|
require 'wsdl/importer'
|
6
7
|
require 'wsdl/soap/wsdl2ruby'
|
7
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
8
8
|
|
9
9
|
|
10
10
|
module WSDL
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Choice
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module ComplexContent
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Document
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
7
|
require 'soap/rpc/driver'
|
7
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
8
8
|
|
9
9
|
|
10
10
|
module WSDL; module Document
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Document
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Document
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<definitions name="
|
2
|
+
<definitions name="AddMulti"
|
3
3
|
targetNamespace="http://fault.test/Faulttest"
|
4
4
|
xmlns:tns="http://fault.test/Faulttest"
|
5
5
|
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
@@ -24,7 +24,7 @@
|
|
24
24
|
</complexType>
|
25
25
|
</element>
|
26
26
|
|
27
|
-
<element name="
|
27
|
+
<element name="AddMultiFault">
|
28
28
|
<complexType>
|
29
29
|
<sequence>
|
30
30
|
<element name="Reason" type="string"/>
|
@@ -51,8 +51,8 @@
|
|
51
51
|
<message name="AddResponseMessage">
|
52
52
|
<part name="response" element="tns:AddResponse"/>
|
53
53
|
</message>
|
54
|
-
<message name="
|
55
|
-
<part name="fault" element="tns:
|
54
|
+
<message name="AddMultiFaultMessage">
|
55
|
+
<part name="fault" element="tns:AddMultiFault"/>
|
56
56
|
</message>
|
57
57
|
<message name="NegativeValueFaultMessage">
|
58
58
|
<part name="fault" element="tns:NegativeValueFault"/>
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<operation name="Add">
|
64
64
|
<input name="Add" message="tns:AddMessage"/>
|
65
65
|
<output name="AddResponse" message="tns:AddResponseMessage"/>
|
66
|
-
<fault name="
|
66
|
+
<fault name="AddMultiFault" message="tns:AddMultiFaultMessage"/>
|
67
67
|
<fault name="NegativeValueFault" message="tns:NegativeValueFaultMessage"/>
|
68
68
|
</operation>
|
69
69
|
</portType>
|
@@ -78,8 +78,8 @@
|
|
78
78
|
<output>
|
79
79
|
<soap:body use="literal"/>
|
80
80
|
</output>
|
81
|
-
<fault name="
|
82
|
-
<soap:fault name="
|
81
|
+
<fault name="AddMultiFault">
|
82
|
+
<soap:fault name="AddMultiFault"/>
|
83
83
|
</fault>
|
84
84
|
<fault name="NegativeValueFault">
|
85
85
|
<soap:fault name="NegativeValueFault"/>
|
@@ -87,7 +87,7 @@
|
|
87
87
|
</operation>
|
88
88
|
</binding>
|
89
89
|
|
90
|
-
<service name="
|
90
|
+
<service name="AddMultiService">
|
91
91
|
<port name="AddPort" binding="tns:AddSOAPBinding">
|
92
92
|
<soap:address location="http://localhost:8080/"/>
|
93
93
|
</port>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/soap/wsdl2ruby'
|
3
4
|
require 'soap/wsdlDriver'
|
4
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
5
5
|
|
6
6
|
|
7
7
|
module WSDL; module Fault
|
@@ -18,7 +18,7 @@ class TestFault < Test::Unit::TestCase
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def teardown
|
21
|
-
teardown_server if @server
|
21
|
+
teardown_server if defined?(@server)
|
22
22
|
unless $DEBUG
|
23
23
|
File.unlink(pathname('Add.rb'))
|
24
24
|
File.unlink(pathname('AddMappingRegistry.rb'))
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/soap/wsdl2ruby'
|
3
4
|
require 'soap/wsdlDriver'
|
4
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
5
5
|
|
6
6
|
|
7
7
|
module WSDL; module Fault
|
@@ -18,12 +18,12 @@ class TestMultiFault < Test::Unit::TestCase
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def teardown
|
21
|
-
teardown_server if @server
|
21
|
+
teardown_server if defined?(@server)
|
22
22
|
unless $DEBUG
|
23
|
-
File.unlink(pathname('
|
24
|
-
File.unlink(pathname('
|
25
|
-
File.unlink(pathname('
|
26
|
-
File.unlink(pathname('
|
23
|
+
File.unlink(pathname('AddMulti.rb'))
|
24
|
+
File.unlink(pathname('AddMultiMappingRegistry.rb'))
|
25
|
+
File.unlink(pathname('AddMultiServant.rb'))
|
26
|
+
File.unlink(pathname('AddMultiService.rb'))
|
27
27
|
end
|
28
28
|
@client.reset_stream if @client
|
29
29
|
end
|
@@ -33,7 +33,7 @@ class TestMultiFault < Test::Unit::TestCase
|
|
33
33
|
define_method(:add) do |request|
|
34
34
|
@sum ||= 0
|
35
35
|
if (request.value > 100)
|
36
|
-
fault =
|
36
|
+
fault = AddMultiFault.new("Value #{request.value} is too large", "Critical")
|
37
37
|
raise fault
|
38
38
|
end
|
39
39
|
|
@@ -65,7 +65,7 @@ class TestMultiFault < Test::Unit::TestCase
|
|
65
65
|
TestUtil.silent do
|
66
66
|
gen.run
|
67
67
|
end
|
68
|
-
TestUtil.require(DIR, '
|
68
|
+
TestUtil.require(DIR, 'AddMulti.rb', 'AddMultiMappingRegistry.rb', 'AddMultiServant.rb', 'AddMultiService.rb')
|
69
69
|
end
|
70
70
|
|
71
71
|
def teardown_server
|
@@ -89,7 +89,7 @@ class TestMultiFault < Test::Unit::TestCase
|
|
89
89
|
[:out, "response", ["::SOAP::SOAPElement", "http://fault.test/Faulttest", "AddResponse"]] ],
|
90
90
|
{ :request_style => :document, :request_use => :literal,
|
91
91
|
:response_style => :document, :response_use => :literal,
|
92
|
-
:faults => {"
|
92
|
+
:faults => {"AddMultiFault"=>{:namespace=>nil, :name=>"AddMultiFault", :use=>"literal", :encodingstyle=>"document", :ns=>"http://fault.test/Faulttest"}} }
|
93
93
|
)
|
94
94
|
@client.wiredump_dev = STDOUT if $DEBUG
|
95
95
|
do_test(@client)
|
@@ -114,9 +114,9 @@ class TestMultiFault < Test::Unit::TestCase
|
|
114
114
|
assert(false)
|
115
115
|
rescue Exception => e
|
116
116
|
assert_equal(::SOAP::FaultError, e.class)
|
117
|
-
assert_equal("WSDL::Fault::
|
118
|
-
assert_equal("Value 101 is too large", e.detail.
|
119
|
-
assert_equal("Critical", e.detail.
|
117
|
+
assert_equal("WSDL::Fault::AddMultiFault", e.faultstring.data)
|
118
|
+
assert_equal("Value 101 is too large", e.detail.addMultiFault.reason)
|
119
|
+
assert_equal("Critical", e.detail.addMultiFault.severity)
|
120
120
|
end
|
121
121
|
begin
|
122
122
|
client.add(Add.new(-50))
|
data/test/wsdl/group/test_rpc.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Group
|
data/test/wsdl/list/test_list.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module List
|
data/test/wsdl/map/test_map.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'soap/mapping/wsdlencodedregistry'
|
4
5
|
require 'soap/marshal'
|
5
6
|
require 'wsdl/soap/wsdl2ruby'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
class WSDLMarshaller
|
@@ -30,8 +30,7 @@ class WSDLMarshaller
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
require File.join(File.dirname(__FILE__), 'person_org')
|
33
|
+
TestUtil.require(File.dirname(__FILE__), 'person_org')
|
35
34
|
|
36
35
|
class Person
|
37
36
|
def ==(rhs)
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'soap/rpc/standaloneServer'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/wsdlDriver'
|
5
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
6
6
|
|
7
7
|
|
8
8
|
module WSDL
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/parser'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
5
|
require 'soap/rpc/standaloneServer'
|
5
6
|
require 'soap/wsdlDriver'
|
6
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
7
7
|
|
8
8
|
|
9
9
|
module WSDL; module Overload
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/soap/wsdl2ruby'
|
3
4
|
require 'soap/rpc/standaloneServer'
|
4
5
|
require 'soap/wsdlDriver'
|
5
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
6
6
|
|
7
7
|
|
8
8
|
if defined?(HTTPClient)
|
@@ -111,7 +111,7 @@ class TestQualified < Test::Unit::TestCase
|
|
111
111
|
@client.endpoint_url = "http://localhost:#{Port}/"
|
112
112
|
@client.wiredump_dev = str = ''
|
113
113
|
@client.GetPrimeNumbers(:Min => 2, :Max => 10)
|
114
|
-
|
114
|
+
assert_xml_equal(LOGIN_REQUEST_QUALIFIED, parse_requestxml(str),
|
115
115
|
[LOGIN_REQUEST_QUALIFIED, parse_requestxml(str)].join("\n\n"))
|
116
116
|
end
|
117
117
|
|
@@ -122,7 +122,7 @@ class TestQualified < Test::Unit::TestCase
|
|
122
122
|
|
123
123
|
@client.wiredump_dev = str = ''
|
124
124
|
@client.getPrimeNumbers(GetPrimeNumbers.new(2, 10))
|
125
|
-
|
125
|
+
assert_xml_equal(LOGIN_REQUEST_QUALIFIED, parse_requestxml(str),
|
126
126
|
[LOGIN_REQUEST_QUALIFIED, parse_requestxml(str)].join("\n\n"))
|
127
127
|
end
|
128
128
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'wsdl/soap/wsdl2ruby'
|
3
4
|
require 'soap/rpc/standaloneServer'
|
4
5
|
require 'soap/wsdlDriver'
|
5
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
6
6
|
|
7
7
|
|
8
8
|
if defined?(HTTPClient)
|
@@ -114,7 +114,7 @@ class TestUnqualified < Test::Unit::TestCase
|
|
114
114
|
@client.login(:timezone => 'JST', :password => 'passwd',
|
115
115
|
:username => 'NaHi')
|
116
116
|
# untyped because of passing a Hash
|
117
|
-
|
117
|
+
assert_xml_equal(LOGIN_REQUEST_QUALIFIED_UNTYPED, parse_requestxml(str))
|
118
118
|
end
|
119
119
|
|
120
120
|
include ::SOAP
|
@@ -124,7 +124,7 @@ class TestUnqualified < Test::Unit::TestCase
|
|
124
124
|
|
125
125
|
@client.wiredump_dev = str = ''
|
126
126
|
@client.login(Login.new('NaHi', 'passwd', 'JST'))
|
127
|
-
|
127
|
+
assert_xml_equal(LOGIN_REQUEST_QUALIFIED_UNTYPED, parse_requestxml(str))
|
128
128
|
end
|
129
129
|
|
130
130
|
def parse_requestxml(str)
|
data/test/wsdl/raa/test_raa.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'soap/wsdlDriver'
|
3
4
|
require 'wsdl/soap/wsdl2ruby'
|
4
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
5
5
|
|
6
6
|
|
7
7
|
module WSDL
|
@@ -53,8 +53,8 @@ class TestRAA < Test::Unit::TestCase
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def teardown
|
56
|
-
teardown_server if @server
|
57
|
-
teardown_client if @client
|
56
|
+
teardown_server if defined?(@server)
|
57
|
+
teardown_client if defined?(@client)
|
58
58
|
unless $DEBUG
|
59
59
|
File.unlink(pathname('RAA.rb'))
|
60
60
|
File.unlink(pathname('RAAMappingRegistry.rb'))
|
data/test/wsdl/ref/test_ref.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require '
|
1
|
+
require 'helper'
|
2
|
+
require 'testutil'
|
2
3
|
require 'soap/rpc/standaloneServer'
|
3
4
|
require 'soap/wsdlDriver'
|
4
5
|
require 'wsdl/soap/wsdl2ruby'
|
5
|
-
require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb')
|
6
6
|
|
7
7
|
|
8
8
|
module WSDL
|