uddi4r 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uddi4r.rb +7 -0
- data/lib/{client.rb → uddi4r/client.rb} +121 -3
- data/lib/{connection.rb → uddi4r/connection.rb} +0 -1
- data/lib/{models.rb → uddi4r/models.rb} +94 -5
- data/lib/{soap_builder.rb → uddi4r/soap_builder.rb} +0 -0
- data/lib/uddi4r/try.rb +46 -0
- data/test/test_client.rb +5 -4
- data/test/test_connection.rb +4 -1
- data/test/test_model.rb +4 -1
- metadata +23 -78
- data/doc/classes/Uddi4r.html +0 -190
- data/doc/classes/Uddi4r/BindingDetail.html +0 -172
- data/doc/classes/Uddi4r/BindingTemplate.html +0 -187
- data/doc/classes/Uddi4r/BusinessDetail.html +0 -167
- data/doc/classes/Uddi4r/BusinessEntity.html +0 -167
- data/doc/classes/Uddi4r/BusinessInfo.html +0 -177
- data/doc/classes/Uddi4r/BusinessList.html +0 -172
- data/doc/classes/Uddi4r/BusinessService.html +0 -167
- data/doc/classes/Uddi4r/CategoryBag.html +0 -167
- data/doc/classes/Uddi4r/Client.html +0 -744
- data/doc/classes/Uddi4r/Connection.html +0 -365
- data/doc/classes/Uddi4r/DiscoveryURLs.html +0 -191
- data/doc/classes/Uddi4r/FindQualifiers.html +0 -191
- data/doc/classes/Uddi4r/IdentifierBag.html +0 -167
- data/doc/classes/Uddi4r/KeyedReference.html +0 -192
- data/doc/classes/Uddi4r/Model.html +0 -333
- data/doc/classes/Uddi4r/OverviewDoc.html +0 -154
- data/doc/classes/Uddi4r/RelatedBusinessesList.html +0 -167
- data/doc/classes/Uddi4r/ServiceDetail.html +0 -172
- data/doc/classes/Uddi4r/ServiceInfo.html +0 -172
- data/doc/classes/Uddi4r/ServiceList.html +0 -172
- data/doc/classes/Uddi4r/SoapBuilder.html +0 -390
- data/doc/classes/Uddi4r/TModel.html +0 -187
- data/doc/classes/Uddi4r/TModelBag.html +0 -189
- data/doc/classes/Uddi4r/TModelDetail.html +0 -167
- data/doc/classes/Uddi4r/TModelInfo.html +0 -167
- data/doc/classes/Uddi4r/TModelInstanceInfo.html +0 -172
- data/doc/classes/Uddi4r/TModelList.html +0 -167
- data/doc/created.rid +0 -1
- data/doc/dot/f_0.dot +0 -14
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +0 -386
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_2.dot +0 -386
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/f_3.dot +0 -386
- data/doc/dot/f_3.png +0 -0
- data/doc/dot/f_4.dot +0 -386
- data/doc/dot/f_4.png +0 -0
- data/doc/dot/m_1_0.dot +0 -386
- data/doc/dot/m_1_0.png +0 -0
- data/doc/dot/m_2_0.dot +0 -386
- data/doc/dot/m_2_0.png +0 -0
- data/doc/dot/m_3_0.dot +0 -386
- data/doc/dot/m_3_0.png +0 -0
- data/doc/dot/m_4_0.dot +0 -386
- data/doc/dot/m_4_0.png +0 -0
- data/doc/files/README.html +0 -152
- data/doc/files/lib/client_rb.html +0 -151
- data/doc/files/lib/connection_rb.html +0 -153
- data/doc/files/lib/models_rb.html +0 -149
- data/doc/files/lib/soap_builder_rb.html +0 -142
- data/doc/fr_class_index.html +0 -54
- data/doc/fr_file_index.html +0 -31
- data/doc/fr_method_index.html +0 -55
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,172 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Uddi4r::ServiceList</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Uddi4r::ServiceList</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/models_rb.html">
|
59
|
-
lib/models.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Model.html">
|
69
|
-
Model
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
<div id="diagram">
|
83
|
-
<map id="map" name="map">
|
84
|
-
<area shape="RECT" coords="1378,135,1450,183" href="Model.html" alt="Model">
|
85
|
-
<area shape="RECT" coords="27,234,118,282" href="BindingDetail.html" alt="BindingDetail">
|
86
|
-
<area shape="RECT" coords="142,234,222,282" href="ServiceList.html" alt="ServiceList">
|
87
|
-
<area shape="RECT" coords="246,234,336,282" href="BusinessList.html" alt="BusinessList">
|
88
|
-
<area shape="RECT" coords="360,234,456,282" href="FindQualifiers.html" alt="FindQualifiers">
|
89
|
-
<area shape="RECT" coords="480,234,568,282" href="IdentifierBag.html" alt="IdentifierBag">
|
90
|
-
<area shape="RECT" coords="592,234,683,282" href="OverviewDoc.html" alt="OverviewDoc">
|
91
|
-
<area shape="RECT" coords="707,234,814,282" href="KeyedReference.html" alt="KeyedReference">
|
92
|
-
<area shape="RECT" coords="838,234,944,282" href="BindingTemplate.html" alt="BindingTemplate">
|
93
|
-
<area shape="RECT" coords="968,234,1091,282" href="TModelInstanceInfo.html" alt="TModelInstanceInfo">
|
94
|
-
<area shape="RECT" coords="1115,234,1214,282" href="BusinessEntity.html" alt="BusinessEntity">
|
95
|
-
<area shape="RECT" coords="1238,234,1344,282" href="BusinessService.html" alt="BusinessService">
|
96
|
-
<area shape="RECT" coords="1368,234,1459,282" href="BusinessInfo.html" alt="BusinessInfo">
|
97
|
-
<area shape="RECT" coords="1483,234,1566,282" href="ServiceInfo.html" alt="ServiceInfo">
|
98
|
-
<area shape="RECT" coords="1590,234,1726,282" href="RelatedBusinessesList.html" alt="RelatedBusinessesList">
|
99
|
-
<area shape="RECT" coords="1750,234,1840,282" href="ServiceDetail.html" alt="ServiceDetail">
|
100
|
-
<area shape="RECT" coords="1864,234,1955,282" href="TModelDetail.html" alt="TModelDetail">
|
101
|
-
<area shape="RECT" coords="1979,234,2062,282" href="TModelInfo.html" alt="TModelInfo">
|
102
|
-
<area shape="RECT" coords="2086,234,2168,282" href="TModelList.html" alt="TModelList">
|
103
|
-
<area shape="RECT" coords="2192,234,2275,282" href="TModelBag.html" alt="TModelBag">
|
104
|
-
<area shape="RECT" coords="2299,234,2400,282" href="DiscoveryURLs.html" alt="DiscoveryURLs">
|
105
|
-
<area shape="RECT" coords="2424,234,2496,282" href="TModel.html" alt="TModel">
|
106
|
-
<area shape="RECT" coords="2520,234,2611,282" href="CategoryBag.html" alt="CategoryBag">
|
107
|
-
<area shape="RECT" coords="2635,234,2734,282" href="BusinessDetail.html" alt="BusinessDetail">
|
108
|
-
<area shape="RECT" coords="1378,6,1450,54" href="../ROXML.html" alt="ROXML">
|
109
|
-
<area shape="RECT" coords="2758,234,2840,282" href="Connection.html" alt="Connection">
|
110
|
-
<area shape="RECT" coords="335,135,407,183" href="Client.html" alt="Client">
|
111
|
-
<area shape="RECT" coords="2747,124,2840,171" href="SoapBuilder.html" alt="SoapBuilder">
|
112
|
-
<area shape="RECT" coords="16,91,2851,292" href="../Uddi4r.html" alt="Uddi4r">
|
113
|
-
</map>
|
114
|
-
<img src="../../dot/m_4_0.png" usemap="#map" border=0 alt="Module: Uddi4r">
|
115
|
-
</div>
|
116
|
-
|
117
|
-
<div id="description">
|
118
|
-
<p>
|
119
|
-
UDDI <a href="ServiceList.html">ServiceList</a>, for more information, see
|
120
|
-
<a href="Model.html">Uddi4r::Model</a>.
|
121
|
-
</p>
|
122
|
-
|
123
|
-
</div>
|
124
|
-
|
125
|
-
|
126
|
-
</div>
|
127
|
-
|
128
|
-
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
<!-- if includes -->
|
133
|
-
|
134
|
-
<div id="section">
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
<div id="attribute-list">
|
141
|
-
<h3 class="section-bar">Attributes</h3>
|
142
|
-
|
143
|
-
<div class="name-list">
|
144
|
-
<table>
|
145
|
-
<tr class="top-aligned-row context-row">
|
146
|
-
<td class="context-item-name">operator</td>
|
147
|
-
<td class="context-item-value"> </td>
|
148
|
-
<td class="context-item-desc"></td>
|
149
|
-
</tr>
|
150
|
-
<tr class="top-aligned-row context-row">
|
151
|
-
<td class="context-item-name">service_infos</td>
|
152
|
-
<td class="context-item-value"> </td>
|
153
|
-
<td class="context-item-desc"></td>
|
154
|
-
</tr>
|
155
|
-
</table>
|
156
|
-
</div>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
<!-- if method_list -->
|
162
|
-
|
163
|
-
|
164
|
-
</div>
|
165
|
-
|
166
|
-
|
167
|
-
<div id="validator-badges">
|
168
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
169
|
-
</div>
|
170
|
-
|
171
|
-
</body>
|
172
|
-
</html>
|
@@ -1,390 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Uddi4r::SoapBuilder</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Uddi4r::SoapBuilder</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/soap_builder_rb.html">
|
59
|
-
lib/soap_builder.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
<div id="diagram">
|
75
|
-
<map id="map" name="map">
|
76
|
-
<area shape="RECT" coords="1378,135,1450,183" href="Model.html" alt="Model">
|
77
|
-
<area shape="RECT" coords="27,234,118,282" href="BindingDetail.html" alt="BindingDetail">
|
78
|
-
<area shape="RECT" coords="142,234,222,282" href="ServiceList.html" alt="ServiceList">
|
79
|
-
<area shape="RECT" coords="246,234,336,282" href="BusinessList.html" alt="BusinessList">
|
80
|
-
<area shape="RECT" coords="360,234,456,282" href="FindQualifiers.html" alt="FindQualifiers">
|
81
|
-
<area shape="RECT" coords="480,234,568,282" href="IdentifierBag.html" alt="IdentifierBag">
|
82
|
-
<area shape="RECT" coords="592,234,683,282" href="OverviewDoc.html" alt="OverviewDoc">
|
83
|
-
<area shape="RECT" coords="707,234,814,282" href="KeyedReference.html" alt="KeyedReference">
|
84
|
-
<area shape="RECT" coords="838,234,944,282" href="BindingTemplate.html" alt="BindingTemplate">
|
85
|
-
<area shape="RECT" coords="968,234,1091,282" href="TModelInstanceInfo.html" alt="TModelInstanceInfo">
|
86
|
-
<area shape="RECT" coords="1115,234,1214,282" href="BusinessEntity.html" alt="BusinessEntity">
|
87
|
-
<area shape="RECT" coords="1238,234,1344,282" href="BusinessService.html" alt="BusinessService">
|
88
|
-
<area shape="RECT" coords="1368,234,1459,282" href="BusinessInfo.html" alt="BusinessInfo">
|
89
|
-
<area shape="RECT" coords="1483,234,1566,282" href="ServiceInfo.html" alt="ServiceInfo">
|
90
|
-
<area shape="RECT" coords="1590,234,1726,282" href="RelatedBusinessesList.html" alt="RelatedBusinessesList">
|
91
|
-
<area shape="RECT" coords="1750,234,1840,282" href="ServiceDetail.html" alt="ServiceDetail">
|
92
|
-
<area shape="RECT" coords="1864,234,1955,282" href="TModelDetail.html" alt="TModelDetail">
|
93
|
-
<area shape="RECT" coords="1979,234,2062,282" href="TModelInfo.html" alt="TModelInfo">
|
94
|
-
<area shape="RECT" coords="2086,234,2168,282" href="TModelList.html" alt="TModelList">
|
95
|
-
<area shape="RECT" coords="2192,234,2275,282" href="TModelBag.html" alt="TModelBag">
|
96
|
-
<area shape="RECT" coords="2299,234,2400,282" href="DiscoveryURLs.html" alt="DiscoveryURLs">
|
97
|
-
<area shape="RECT" coords="2424,234,2496,282" href="TModel.html" alt="TModel">
|
98
|
-
<area shape="RECT" coords="2520,234,2611,282" href="CategoryBag.html" alt="CategoryBag">
|
99
|
-
<area shape="RECT" coords="2635,234,2734,282" href="BusinessDetail.html" alt="BusinessDetail">
|
100
|
-
<area shape="RECT" coords="1378,6,1450,54" href="../ROXML.html" alt="ROXML">
|
101
|
-
<area shape="RECT" coords="2758,234,2840,282" href="Connection.html" alt="Connection">
|
102
|
-
<area shape="RECT" coords="335,135,407,183" href="Client.html" alt="Client">
|
103
|
-
<area shape="RECT" coords="2747,124,2840,171" href="SoapBuilder.html" alt="SoapBuilder">
|
104
|
-
<area shape="RECT" coords="16,91,2851,292" href="../Uddi4r.html" alt="Uddi4r">
|
105
|
-
</map>
|
106
|
-
<img src="../../dot/m_4_0.png" usemap="#map" border=0 alt="Module: Uddi4r">
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div id="description">
|
110
|
-
<p>
|
111
|
-
Helper module to be mixed into <a
|
112
|
-
href="Connection.html">Uddi4r::Connection</a>
|
113
|
-
</p>
|
114
|
-
|
115
|
-
</div>
|
116
|
-
|
117
|
-
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="method-list">
|
121
|
-
<h3 class="section-bar">Methods</h3>
|
122
|
-
|
123
|
-
<div class="name-list">
|
124
|
-
<a href="#M000004">create_body</a>
|
125
|
-
<a href="#M000006">create_element</a>
|
126
|
-
<a href="#M000003">create_elements</a>
|
127
|
-
<a href="#M000007">create_operation</a>
|
128
|
-
<a href="#M000001">create_payload</a>
|
129
|
-
<a href="#M000002">create_t_model_bag</a>
|
130
|
-
<a href="#M000005">create_uddi_operation</a>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
</div>
|
135
|
-
|
136
|
-
|
137
|
-
<!-- if includes -->
|
138
|
-
|
139
|
-
<div id="section">
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<!-- if method_list -->
|
149
|
-
<div id="methods">
|
150
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
151
|
-
|
152
|
-
<div id="method-M000004" class="method-detail">
|
153
|
-
<a name="M000004"></a>
|
154
|
-
|
155
|
-
<div class="method-heading">
|
156
|
-
<a href="#M000004" class="method-signature">
|
157
|
-
<span class="method-name">create_body</span><span class="method-args">()</span>
|
158
|
-
</a>
|
159
|
-
</div>
|
160
|
-
|
161
|
-
<div class="method-description">
|
162
|
-
<p>
|
163
|
-
Create an empty DOM element for SOAP Body
|
164
|
-
</p>
|
165
|
-
<p><a class="source-toggle" href="#"
|
166
|
-
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
167
|
-
<div class="method-source-code" id="M000004-source">
|
168
|
-
<pre>
|
169
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 39</span>
|
170
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_body</span>
|
171
|
-
<span class="ruby-identifier">body</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Element</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"Body"</span>)
|
172
|
-
<span class="ruby-keyword kw">end</span>
|
173
|
-
</pre>
|
174
|
-
</div>
|
175
|
-
</div>
|
176
|
-
</div>
|
177
|
-
|
178
|
-
<div id="method-M000006" class="method-detail">
|
179
|
-
<a name="M000006"></a>
|
180
|
-
|
181
|
-
<div class="method-heading">
|
182
|
-
<a href="#M000006" class="method-signature">
|
183
|
-
<span class="method-name">create_element</span><span class="method-args">(name, value=nil, attributes={})</span>
|
184
|
-
</a>
|
185
|
-
</div>
|
186
|
-
|
187
|
-
<div class="method-description">
|
188
|
-
<p>
|
189
|
-
Create a DOM element for given name
|
190
|
-
</p>
|
191
|
-
<p><a class="source-toggle" href="#"
|
192
|
-
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
193
|
-
<div class="method-source-code" id="M000006-source">
|
194
|
-
<pre>
|
195
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 56</span>
|
196
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_element</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">attributes</span>={})
|
197
|
-
<span class="ruby-identifier">elm</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Element</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>)
|
198
|
-
<span class="ruby-identifier">elm</span>.<span class="ruby-identifier">text</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>
|
199
|
-
<span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">elm</span>.<span class="ruby-identifier">add_attribute</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>) }
|
200
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">elm</span>
|
201
|
-
<span class="ruby-keyword kw">end</span>
|
202
|
-
</pre>
|
203
|
-
</div>
|
204
|
-
</div>
|
205
|
-
</div>
|
206
|
-
|
207
|
-
<div id="method-M000003" class="method-detail">
|
208
|
-
<a name="M000003"></a>
|
209
|
-
|
210
|
-
<div class="method-heading">
|
211
|
-
<a href="#M000003" class="method-signature">
|
212
|
-
<span class="method-name">create_elements</span><span class="method-args">(name, *values)</span>
|
213
|
-
</a>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
<div class="method-description">
|
217
|
-
<p>
|
218
|
-
Create element array
|
219
|
-
</p>
|
220
|
-
<p><a class="source-toggle" href="#"
|
221
|
-
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
222
|
-
<div class="method-source-code" id="M000003-source">
|
223
|
-
<pre>
|
224
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 30</span>
|
225
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_elements</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
226
|
-
<span class="ruby-identifier">elems</span> = []
|
227
|
-
<span class="ruby-identifier">values</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
228
|
-
<span class="ruby-identifier">elems</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">create_element</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
229
|
-
<span class="ruby-keyword kw">end</span>
|
230
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">elems</span>
|
231
|
-
<span class="ruby-keyword kw">end</span>
|
232
|
-
</pre>
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
<div id="method-M000007" class="method-detail">
|
238
|
-
<a name="M000007"></a>
|
239
|
-
|
240
|
-
<div class="method-heading">
|
241
|
-
<a href="#M000007" class="method-signature">
|
242
|
-
<span class="method-name">create_operation</span><span class="method-args">(name, attribs={}, *elements)</span>
|
243
|
-
</a>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
<div class="method-description">
|
247
|
-
<p>
|
248
|
-
Create the operation for the SOAP body
|
249
|
-
</p>
|
250
|
-
<table>
|
251
|
-
<tr><td valign="top">name:</td><td>Name of the element
|
252
|
-
|
253
|
-
</td></tr>
|
254
|
-
<tr><td valign="top">attribs:</td><td>Attributes for the element
|
255
|
-
|
256
|
-
</td></tr>
|
257
|
-
<tr><td valign="top">elements:</td><td>Sub elements varargs (items can be nil, Hash,
|
258
|
-
|
259
|
-
</td></tr>
|
260
|
-
</table>
|
261
|
-
<p>
|
262
|
-
Array of Hashes and REXML:Element)
|
263
|
-
</p>
|
264
|
-
<p><a class="source-toggle" href="#"
|
265
|
-
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
266
|
-
<div class="method-source-code" id="M000007-source">
|
267
|
-
<pre>
|
268
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 68</span>
|
269
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_operation</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">attribs</span>={}, <span class="ruby-operator">*</span><span class="ruby-identifier">elements</span>)
|
270
|
-
<span class="ruby-identifier">operation</span> = <span class="ruby-identifier">create_uddi_operation</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">attribs</span>)
|
271
|
-
<span class="ruby-identifier">elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">elem</span><span class="ruby-operator">|</span>
|
272
|
-
<span class="ruby-identifier">add_element</span>(<span class="ruby-identifier">operation</span>, <span class="ruby-identifier">elem</span>)
|
273
|
-
<span class="ruby-keyword kw">end</span>
|
274
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">operation</span>
|
275
|
-
<span class="ruby-keyword kw">end</span>
|
276
|
-
</pre>
|
277
|
-
</div>
|
278
|
-
</div>
|
279
|
-
</div>
|
280
|
-
|
281
|
-
<div id="method-M000001" class="method-detail">
|
282
|
-
<a name="M000001"></a>
|
283
|
-
|
284
|
-
<div class="method-heading">
|
285
|
-
<a href="#M000001" class="method-signature">
|
286
|
-
<span class="method-name">create_payload</span><span class="method-args">(body)</span>
|
287
|
-
</a>
|
288
|
-
</div>
|
289
|
-
|
290
|
-
<div class="method-description">
|
291
|
-
<p>
|
292
|
-
Create payload for given body (DOM element)
|
293
|
-
</p>
|
294
|
-
<p><a class="source-toggle" href="#"
|
295
|
-
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
296
|
-
<div class="method-source-code" id="M000001-source">
|
297
|
-
<pre>
|
298
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 8</span>
|
299
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_payload</span>(<span class="ruby-identifier">body</span>)
|
300
|
-
<span class="ruby-identifier">content</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span>()
|
301
|
-
<span class="ruby-identifier">content</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">XMLDecl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"1.0"</span>, <span class="ruby-value str">"utf-8"</span>)
|
302
|
-
<span class="ruby-identifier">envelope</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Element</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"Envelope"</span>)
|
303
|
-
<span class="ruby-identifier">envelope</span>.<span class="ruby-identifier">add_attribute</span>(<span class="ruby-value str">"xmlns"</span>, <span class="ruby-value str">"http://schemas.xmlsoap.org/soap/envelope/"</span>)
|
304
|
-
<span class="ruby-identifier">envelope</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">body</span>
|
305
|
-
<span class="ruby-identifier">content</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">envelope</span>
|
306
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">content</span>
|
307
|
-
<span class="ruby-keyword kw">end</span>
|
308
|
-
</pre>
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
</div>
|
312
|
-
|
313
|
-
<div id="method-M000002" class="method-detail">
|
314
|
-
<a name="M000002"></a>
|
315
|
-
|
316
|
-
<div class="method-heading">
|
317
|
-
<a href="#M000002" class="method-signature">
|
318
|
-
<span class="method-name">create_t_model_bag</span><span class="method-args">(keys)</span>
|
319
|
-
</a>
|
320
|
-
</div>
|
321
|
-
|
322
|
-
<div class="method-description">
|
323
|
-
<p>
|
324
|
-
Creates tModelBag with key
|
325
|
-
</p>
|
326
|
-
<p><a class="source-toggle" href="#"
|
327
|
-
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
328
|
-
<div class="method-source-code" id="M000002-source">
|
329
|
-
<pre>
|
330
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 19</span>
|
331
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_t_model_bag</span>(<span class="ruby-identifier">keys</span>)
|
332
|
-
<span class="ruby-identifier">bags</span> = []
|
333
|
-
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
|
334
|
-
<span class="ruby-identifier">t_model_bag</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Element</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"tModelBag"</span>)
|
335
|
-
<span class="ruby-identifier">t_model_bag</span>.<span class="ruby-identifier">add_element</span>(<span class="ruby-identifier">create_element</span>(<span class="ruby-value str">"tModelKey"</span>, <span class="ruby-identifier">key</span>))
|
336
|
-
<span class="ruby-identifier">bags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">t_model_bag</span>
|
337
|
-
<span class="ruby-keyword kw">end</span>
|
338
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">bags</span>
|
339
|
-
<span class="ruby-keyword kw">end</span>
|
340
|
-
</pre>
|
341
|
-
</div>
|
342
|
-
</div>
|
343
|
-
</div>
|
344
|
-
|
345
|
-
<div id="method-M000005" class="method-detail">
|
346
|
-
<a name="M000005"></a>
|
347
|
-
|
348
|
-
<div class="method-heading">
|
349
|
-
<a href="#M000005" class="method-signature">
|
350
|
-
<span class="method-name">create_uddi_operation</span><span class="method-args">(name, attribs={})</span>
|
351
|
-
</a>
|
352
|
-
</div>
|
353
|
-
|
354
|
-
<div class="method-description">
|
355
|
-
<p>
|
356
|
-
Create a template operation element for given name
|
357
|
-
</p>
|
358
|
-
<p><a class="source-toggle" href="#"
|
359
|
-
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
360
|
-
<div class="method-source-code" id="M000005-source">
|
361
|
-
<pre>
|
362
|
-
<span class="ruby-comment cmt"># File lib/soap_builder.rb, line 44</span>
|
363
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_uddi_operation</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">attribs</span>={})
|
364
|
-
<span class="ruby-identifier">operation</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Element</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>)
|
365
|
-
<span class="ruby-comment cmt"># set UDDI attributes</span>
|
366
|
-
<span class="ruby-identifier">operation</span>.<span class="ruby-identifier">add_attribute</span>(<span class="ruby-value str">"generic"</span>,<span class="ruby-ivar">@version</span>)
|
367
|
-
<span class="ruby-identifier">operation</span>.<span class="ruby-identifier">add_attribute</span>(<span class="ruby-value str">"xmlns"</span>,<span class="ruby-ivar">@uddi_namespace</span>)
|
368
|
-
<span class="ruby-identifier">operation</span>.<span class="ruby-identifier">add_attribute</span>(<span class="ruby-value str">"maxRows"</span>,<span class="ruby-ivar">@max_rows</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@max_rows</span>
|
369
|
-
<span class="ruby-comment cmt"># add passed attributes</span>
|
370
|
-
<span class="ruby-identifier">attribs</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">operation</span>.<span class="ruby-identifier">add_attribute</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>)}
|
371
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">operation</span>
|
372
|
-
<span class="ruby-keyword kw">end</span>
|
373
|
-
</pre>
|
374
|
-
</div>
|
375
|
-
</div>
|
376
|
-
</div>
|
377
|
-
|
378
|
-
|
379
|
-
</div>
|
380
|
-
|
381
|
-
|
382
|
-
</div>
|
383
|
-
|
384
|
-
|
385
|
-
<div id="validator-badges">
|
386
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
387
|
-
</div>
|
388
|
-
|
389
|
-
</body>
|
390
|
-
</html>
|