jruby-cxf 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,18 +7,18 @@ describe CXF::WebServiceServlet do
|
|
|
7
7
|
subject(:wsdl) { @web_service.wsdl }
|
|
8
8
|
|
|
9
9
|
before(:all) do
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
@web_service = WebServiceWithExposedMethodsHavingResponseWrapperNameSet.new
|
|
11
|
+
@web_service.publish
|
|
12
|
+
end
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
after(:all) do
|
|
15
|
+
@web_service.teardown
|
|
16
|
+
end
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
it "gives a WSDL with response wrapper elements named according to given response wrapper names" do
|
|
19
|
+
wsdl['definitions']['types']['schema']['complexType'][1]['name'].should eq 'GiveAgeResponseWrapper'
|
|
20
|
+
wsdl['definitions']['types']['schema']['complexType'][3]['name'].should eq 'SayHelloResponseWrapper'
|
|
21
|
+
end
|
|
22
22
|
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -26,18 +26,18 @@ describe CXF::WebServiceServlet do
|
|
|
26
26
|
subject(:wsdl) { @web_service.wsdl }
|
|
27
27
|
|
|
28
28
|
before(:all) do
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
@web_service = WebServiceWithExposedMethodsHavingOutParameterNameSet.new
|
|
30
|
+
@web_service.publish
|
|
31
|
+
end
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
after(:all) do
|
|
34
|
+
@web_service.teardown
|
|
35
|
+
end
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
it "gives a WSDL with return value elements named according to given out parameter names" do
|
|
38
|
+
wsdl['definitions']['types']['schema']['complexType'][1]['sequence']['element']['name'].should eq 'OutGiveAge'
|
|
39
|
+
wsdl['definitions']['types']['schema']['complexType'][3]['sequence']['element']['name'].should eq 'OutSayHello'
|
|
40
|
+
end
|
|
41
41
|
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -65,72 +65,72 @@ describe CXF::WebServiceServlet do
|
|
|
65
65
|
|
|
66
66
|
before(:all) do
|
|
67
67
|
@web_service = WebServiceWithExposedMethods.new
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
@web_service.publish
|
|
69
|
+
end
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
after(:all) do
|
|
72
|
+
@web_service.teardown
|
|
73
|
+
end
|
|
74
74
|
|
|
75
75
|
it "gives a WSDL with declared methods exposed" do
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
wsdl['definitions']['types']['schema']['complexType'][0]['sequence']['element']['type'].should eq 'xsd:int'
|
|
77
|
+
wsdl['definitions']['types']['schema']['complexType'][1]['sequence']['element']['type'].should eq 'xsd:int'
|
|
78
|
+
wsdl['definitions']['types']['schema']['complexType'][2]['sequence']['element']['type'].should eq 'xsd:string'
|
|
79
|
+
wsdl['definitions']['types']['schema']['complexType'][3]['sequence']['element']['type'].should eq 'xsd:string'
|
|
80
|
+
wsdl['definitions']['binding']['operation'][0]['name'].should eq 'give_age'
|
|
81
|
+
wsdl['definitions']['binding']['operation'][1]['name'].should eq 'say_hello'
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
context WebServiceWithServiceNameSet do
|
|
86
|
-
|
|
86
|
+
subject(:wsdl) { @web_service.wsdl }
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
before(:all) do
|
|
89
|
+
@web_service = WebServiceWithServiceNameSet.new
|
|
90
|
+
@web_service.publish
|
|
91
|
+
end
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
after(:all) do
|
|
94
|
+
@web_service.teardown
|
|
95
|
+
end
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
it "gives a WSDL with the configured service name" do
|
|
98
|
+
wsdl['definitions']['service']['name'].should eq 'FooService'
|
|
99
|
+
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
context WebServiceWithEndpointNameSet do
|
|
103
|
-
|
|
103
|
+
subject(:wsdl) { @web_service.wsdl }
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
before(:all) do
|
|
106
|
+
@web_service = WebServiceWithEndpointNameSet.new
|
|
107
|
+
@web_service.publish
|
|
108
|
+
end
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
after(:all) do
|
|
111
|
+
@web_service.teardown
|
|
112
|
+
end
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
end
|
|
114
|
+
it "gives a WSDL with the port name matching the configured endpoint name" do
|
|
115
|
+
wsdl['definitions']['service']['port']['name'].should eq 'FooPort'
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
118
|
|
|
119
119
|
context WebServiceWithServiceNamespaceSet do
|
|
120
|
-
|
|
120
|
+
subject(:wsdl) { @web_service.wsdl }
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
before(:all) do
|
|
123
|
+
@web_service = WebServiceWithServiceNamespaceSet.new
|
|
124
|
+
@web_service.publish
|
|
125
|
+
end
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
after(:all) do
|
|
128
|
+
@web_service.teardown
|
|
129
|
+
end
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
end
|
|
131
|
+
it "gives a WSDL with the service target namespace matching the configured service namespace" do
|
|
132
|
+
wsdl['definitions']['targetNamespace'].should eq 'http://jruby-cxf.org'
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
135
|
|
|
136
136
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jruby-cxf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,10 +9,10 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: JRuby CXF is a JRuby gem that wraps the Apache CXF framework to provide
|
|
15
|
-
a friendlier API for publishing Web Services.
|
|
15
|
+
a friendlier API for publishing SOAP Web Services.
|
|
16
16
|
email: claude.mamo@gmail.com
|
|
17
17
|
executables: []
|
|
18
18
|
extensions: []
|