uddi4r 0.8 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/lib/uddi4r.rb +7 -0
  2. data/lib/{client.rb → uddi4r/client.rb} +121 -3
  3. data/lib/{connection.rb → uddi4r/connection.rb} +0 -1
  4. data/lib/{models.rb → uddi4r/models.rb} +94 -5
  5. data/lib/{soap_builder.rb → uddi4r/soap_builder.rb} +0 -0
  6. data/lib/uddi4r/try.rb +46 -0
  7. data/test/test_client.rb +5 -4
  8. data/test/test_connection.rb +4 -1
  9. data/test/test_model.rb +4 -1
  10. metadata +23 -78
  11. data/doc/classes/Uddi4r.html +0 -190
  12. data/doc/classes/Uddi4r/BindingDetail.html +0 -172
  13. data/doc/classes/Uddi4r/BindingTemplate.html +0 -187
  14. data/doc/classes/Uddi4r/BusinessDetail.html +0 -167
  15. data/doc/classes/Uddi4r/BusinessEntity.html +0 -167
  16. data/doc/classes/Uddi4r/BusinessInfo.html +0 -177
  17. data/doc/classes/Uddi4r/BusinessList.html +0 -172
  18. data/doc/classes/Uddi4r/BusinessService.html +0 -167
  19. data/doc/classes/Uddi4r/CategoryBag.html +0 -167
  20. data/doc/classes/Uddi4r/Client.html +0 -744
  21. data/doc/classes/Uddi4r/Connection.html +0 -365
  22. data/doc/classes/Uddi4r/DiscoveryURLs.html +0 -191
  23. data/doc/classes/Uddi4r/FindQualifiers.html +0 -191
  24. data/doc/classes/Uddi4r/IdentifierBag.html +0 -167
  25. data/doc/classes/Uddi4r/KeyedReference.html +0 -192
  26. data/doc/classes/Uddi4r/Model.html +0 -333
  27. data/doc/classes/Uddi4r/OverviewDoc.html +0 -154
  28. data/doc/classes/Uddi4r/RelatedBusinessesList.html +0 -167
  29. data/doc/classes/Uddi4r/ServiceDetail.html +0 -172
  30. data/doc/classes/Uddi4r/ServiceInfo.html +0 -172
  31. data/doc/classes/Uddi4r/ServiceList.html +0 -172
  32. data/doc/classes/Uddi4r/SoapBuilder.html +0 -390
  33. data/doc/classes/Uddi4r/TModel.html +0 -187
  34. data/doc/classes/Uddi4r/TModelBag.html +0 -189
  35. data/doc/classes/Uddi4r/TModelDetail.html +0 -167
  36. data/doc/classes/Uddi4r/TModelInfo.html +0 -167
  37. data/doc/classes/Uddi4r/TModelInstanceInfo.html +0 -172
  38. data/doc/classes/Uddi4r/TModelList.html +0 -167
  39. data/doc/created.rid +0 -1
  40. data/doc/dot/f_0.dot +0 -14
  41. data/doc/dot/f_0.png +0 -0
  42. data/doc/dot/f_1.dot +0 -386
  43. data/doc/dot/f_1.png +0 -0
  44. data/doc/dot/f_2.dot +0 -386
  45. data/doc/dot/f_2.png +0 -0
  46. data/doc/dot/f_3.dot +0 -386
  47. data/doc/dot/f_3.png +0 -0
  48. data/doc/dot/f_4.dot +0 -386
  49. data/doc/dot/f_4.png +0 -0
  50. data/doc/dot/m_1_0.dot +0 -386
  51. data/doc/dot/m_1_0.png +0 -0
  52. data/doc/dot/m_2_0.dot +0 -386
  53. data/doc/dot/m_2_0.png +0 -0
  54. data/doc/dot/m_3_0.dot +0 -386
  55. data/doc/dot/m_3_0.png +0 -0
  56. data/doc/dot/m_4_0.dot +0 -386
  57. data/doc/dot/m_4_0.png +0 -0
  58. data/doc/files/README.html +0 -152
  59. data/doc/files/lib/client_rb.html +0 -151
  60. data/doc/files/lib/connection_rb.html +0 -153
  61. data/doc/files/lib/models_rb.html +0 -149
  62. data/doc/files/lib/soap_builder_rb.html +0 -142
  63. data/doc/fr_class_index.html +0 -54
  64. data/doc/fr_file_index.html +0 -31
  65. data/doc/fr_method_index.html +0 -55
  66. data/doc/index.html +0 -24
  67. data/doc/rdoc-style.css +0 -208
@@ -1,744 +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::Client</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::Client</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/client_rb.html">
59
- lib/client.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
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
- <div id="diagram">
81
- <map id="map" name="map">
82
- <area shape="RECT" coords="1378,135,1450,183" href="Model.html" alt="Model">
83
- <area shape="RECT" coords="27,234,118,282" href="BindingDetail.html" alt="BindingDetail">
84
- <area shape="RECT" coords="142,234,222,282" href="ServiceList.html" alt="ServiceList">
85
- <area shape="RECT" coords="246,234,336,282" href="BusinessList.html" alt="BusinessList">
86
- <area shape="RECT" coords="360,234,456,282" href="FindQualifiers.html" alt="FindQualifiers">
87
- <area shape="RECT" coords="480,234,568,282" href="IdentifierBag.html" alt="IdentifierBag">
88
- <area shape="RECT" coords="592,234,683,282" href="OverviewDoc.html" alt="OverviewDoc">
89
- <area shape="RECT" coords="707,234,814,282" href="KeyedReference.html" alt="KeyedReference">
90
- <area shape="RECT" coords="838,234,944,282" href="BindingTemplate.html" alt="BindingTemplate">
91
- <area shape="RECT" coords="968,234,1091,282" href="TModelInstanceInfo.html" alt="TModelInstanceInfo">
92
- <area shape="RECT" coords="1115,234,1214,282" href="BusinessEntity.html" alt="BusinessEntity">
93
- <area shape="RECT" coords="1238,234,1344,282" href="BusinessService.html" alt="BusinessService">
94
- <area shape="RECT" coords="1368,234,1459,282" href="BusinessInfo.html" alt="BusinessInfo">
95
- <area shape="RECT" coords="1483,234,1566,282" href="ServiceInfo.html" alt="ServiceInfo">
96
- <area shape="RECT" coords="1590,234,1726,282" href="RelatedBusinessesList.html" alt="RelatedBusinessesList">
97
- <area shape="RECT" coords="1750,234,1840,282" href="ServiceDetail.html" alt="ServiceDetail">
98
- <area shape="RECT" coords="1864,234,1955,282" href="TModelDetail.html" alt="TModelDetail">
99
- <area shape="RECT" coords="1979,234,2062,282" href="TModelInfo.html" alt="TModelInfo">
100
- <area shape="RECT" coords="2086,234,2168,282" href="TModelList.html" alt="TModelList">
101
- <area shape="RECT" coords="2192,234,2275,282" href="TModelBag.html" alt="TModelBag">
102
- <area shape="RECT" coords="2299,234,2400,282" href="DiscoveryURLs.html" alt="DiscoveryURLs">
103
- <area shape="RECT" coords="2424,234,2496,282" href="TModel.html" alt="TModel">
104
- <area shape="RECT" coords="2520,234,2611,282" href="CategoryBag.html" alt="CategoryBag">
105
- <area shape="RECT" coords="2635,234,2734,282" href="BusinessDetail.html" alt="BusinessDetail">
106
- <area shape="RECT" coords="1378,6,1450,54" href="../ROXML.html" alt="ROXML">
107
- <area shape="RECT" coords="2758,234,2840,282" href="Connection.html" alt="Connection">
108
- <area shape="RECT" coords="335,135,407,183" href="Client.html" alt="Client">
109
- <area shape="RECT" coords="2747,124,2840,171" href="SoapBuilder.html" alt="SoapBuilder">
110
- <area shape="RECT" coords="16,91,2851,292" href="../Uddi4r.html" alt="Uddi4r">
111
- </map>
112
- <img src="../../dot/m_4_0.png" usemap="#map" border=0 alt="Module: Uddi4r">
113
- </div>
114
-
115
- <div id="description">
116
- <h1><a href="Client.html">Uddi4r::Client</a></h1>
117
- <p>
118
- This is the main class for UDDI inquiry services. It supports all the UDDI
119
- inquiry operations specified in UDDI Programmers API V2. For details about
120
- the UDDI V2 Specification, visit:
121
- </p>
122
- <p>
123
- <a
124
- href="http://uddi.org/pubs/ProgrammersAPI-V2.04-Published-20020719.htm">uddi.org/pubs/ProgrammersAPI-V2.04-Published-20020719.htm</a>
125
- </p>
126
- <h2>Using the client</h2>
127
- <p>
128
- You can construct the client with a URL string to the UDDI server or a <a
129
- href="Connection.html">Uddi4r::Connection</a> object. You can then invoke
130
- all UDDI inquiry operations by calling the appropriate API methods and
131
- passing a hash of arguments.
132
- </p>
133
- <p>
134
- For example, the following code queires the Microsoft Test UDDI for
135
- businesses that have &quot;Microsoft&quot; as part of their names:
136
- </p>
137
- <pre>
138
- client = Uddi4r::Client.new(&quot;http://test.uddi.microsoft.com/inquire&quot;)
139
- businesses = client.find_business(:name=&gt;&quot;Microsoft&quot;)
140
- </pre>
141
- <h3>Simple and advanced arguments</h3>
142
- <p>
143
- There are two type of arguments that you can pass, simple and advanced.
144
- Simple arguments are either String or Array of String, as in the example
145
- above. These types of arguments will give you the commonly used inquiry
146
- capabilities.
147
- </p>
148
- <p>
149
- Advanced arguments are <a href="Model.html">Uddi4r::Model</a> objects that
150
- provide advanced capabilities such as findQualifiers, tModelBags,
151
- categoryBags, etc. See the specficiation for details.
152
- </p>
153
- <p>
154
- Following example uses a <em>findQualifer</em> to add case-sensitivity to
155
- the previous example:
156
- </p>
157
- <pre>
158
- businesses = client.find_business(:name=&gt;&quot;Microsoft&quot;,
159
- find_qualifers=&gt;Uddi4r::FindQualifers(&quot;caseSensitiveMatch&quot;)
160
- </pre>
161
- <h3>Return types</h3>
162
- <p>
163
- All client API methods return <a href="Model.html">Uddi4r::Model</a>
164
- objects.
165
- </p>
166
- <h3>Not supported</h3>
167
- <p>
168
- The get_businessDetailExt operation is not supported in this release.
169
- </p>
170
-
171
- </div>
172
-
173
-
174
- </div>
175
-
176
- <div id="method-list">
177
- <h3 class="section-bar">Methods</h3>
178
-
179
- <div class="name-list">
180
- <a href="#M000013">find_binding</a>&nbsp;&nbsp;
181
- <a href="#M000014">find_business</a>&nbsp;&nbsp;
182
- <a href="#M000015">find_related_businesses</a>&nbsp;&nbsp;
183
- <a href="#M000016">find_service</a>&nbsp;&nbsp;
184
- <a href="#M000017">find_t_model</a>&nbsp;&nbsp;
185
- <a href="#M000018">get_binding_detail</a>&nbsp;&nbsp;
186
- <a href="#M000019">get_business_detail</a>&nbsp;&nbsp;
187
- <a href="#M000021">get_service_detail</a>&nbsp;&nbsp;
188
- <a href="#M000020">get_t_model_detail</a>&nbsp;&nbsp;
189
- <a href="#M000012">new</a>&nbsp;&nbsp;
190
- </div>
191
- </div>
192
-
193
- </div>
194
-
195
-
196
- <!-- if includes -->
197
-
198
- <div id="section">
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- <!-- if method_list -->
208
- <div id="methods">
209
- <h3 class="section-bar">Public Class methods</h3>
210
-
211
- <div id="method-M000012" class="method-detail">
212
- <a name="M000012"></a>
213
-
214
- <div class="method-heading">
215
- <a href="#M000012" class="method-signature">
216
- <span class="method-name">new</span><span class="method-args">(connection, debug=false)</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- <p>
222
- Create a UDDI inquiry object for invoking inquiry operations.
223
- </p>
224
- <table>
225
- <tr><td valign="top">connection:</td><td>String with endpoint or <a href="Connection.html">Uddi4r::Connection</a>
226
-
227
- </td></tr>
228
- <tr><td valign="top">debug:</td><td>Boolean for showing low-level wire communication.
229
-
230
- </td></tr>
231
- </table>
232
- <p><a class="source-toggle" href="#"
233
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
234
- <div class="method-source-code" id="M000012-source">
235
- <pre>
236
- <span class="ruby-comment cmt"># File lib/client.rb, line 51</span>
237
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">connection</span>, <span class="ruby-identifier">debug</span>=<span class="ruby-keyword kw">false</span>)
238
- <span class="ruby-ivar">@conn</span> = (<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Connection</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">connection</span> <span class="ruby-operator">:</span>
239
- <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">connection</span>, <span class="ruby-value str">&quot;2.0&quot;</span>, <span class="ruby-identifier">debug</span>)
240
- <span class="ruby-keyword kw">end</span>
241
- </pre>
242
- </div>
243
- </div>
244
- </div>
245
-
246
- <h3 class="section-bar">Public Instance methods</h3>
247
-
248
- <div id="method-M000013" class="method-detail">
249
- <a name="M000013"></a>
250
-
251
- <div class="method-heading">
252
- <a href="#M000013" class="method-signature">
253
- <span class="method-name">find_binding</span><span class="method-args">(args)</span>
254
- </a>
255
- </div>
256
-
257
- <div class="method-description">
258
- <p>
259
- Find binding detail for a given service and tModels.
260
- </p>
261
- <dl>
262
- <dt>Returns</dt><dd><a href="BindingDetail.html">Uddi4r::BindingDetail</a>
263
-
264
- </dd>
265
- </dl>
266
- <h4>Simple arguments</h4>
267
- <table>
268
- <tr><td valign="top">service_key:</td><td>String for service. (required)
269
-
270
- </td></tr>
271
- </table>
272
- <h4>Advanced arguments</h4>
273
- <table>
274
- <tr><td valign="top">find_qualifiers:</td><td><a href="FindQualifiers.html">Uddi4r::FindQualifiers</a>
275
-
276
- </td></tr>
277
- <tr><td valign="top">t_model_bag:</td><td><a href="TModelBag.html">Uddi4r::TModelBag</a> (required)
278
-
279
- </td></tr>
280
- </table>
281
- <h4>Example</h4>
282
- <pre>
283
- binding_detil = client.find_binding(:service_key=&gt;&quot;7CEAB5C2-D40E-1E0C-7942-99C64EF3C1ED&quot;,
284
- :t_model_bag=&gt;Uddi4r::TModelBag.new(&quot;uuid:928A64AB-E277-32FA-0ABA-A28CE9E5E6A5&quot;))
285
- </pre>
286
- <p><a class="source-toggle" href="#"
287
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
288
- <div class="method-source-code" id="M000013-source">
289
- <pre>
290
- <span class="ruby-comment cmt"># File lib/client.rb, line 66</span>
291
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_binding</span>(<span class="ruby-identifier">args</span>)
292
- <span class="ruby-identifier">service_key</span> = <span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:service_key</span>, <span class="ruby-constant">String</span>)
293
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_bag</span>] = <span class="ruby-constant">TModelBag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_keys</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_keys</span>]
294
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;find_binding&quot;</span>,
295
- {<span class="ruby-value str">&quot;serviceKey&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:service_key</span>, <span class="ruby-constant">String</span>)},
296
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:find_qualifier</span>], <span class="ruby-value str">&quot;tModelBag&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:t_model_bag</span>, <span class="ruby-constant">TModelBag</span>)
297
- );
298
- <span class="ruby-constant">BindingDetail</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
299
- <span class="ruby-keyword kw">end</span>
300
- </pre>
301
- </div>
302
- </div>
303
- </div>
304
-
305
- <div id="method-M000014" class="method-detail">
306
- <a name="M000014"></a>
307
-
308
- <div class="method-heading">
309
- <a href="#M000014" class="method-signature">
310
- <span class="method-name">find_business</span><span class="method-args">(args={})</span>
311
- </a>
312
- </div>
313
-
314
- <div class="method-description">
315
- <p>
316
- Find businesses matching a given name.
317
- </p>
318
- <dl>
319
- <dt>Returns</dt><dd><a href="BusinessList.html">Uddi4r::BusinessList</a>
320
-
321
- </dd>
322
- </dl>
323
- <h4>Simple arguments</h4>
324
- <table>
325
- <tr><td valign="top">name:</td><td>String for full or partial name
326
-
327
- </td></tr>
328
- </table>
329
- <h4>Advanced arguments</h4>
330
- <table>
331
- <tr><td valign="top">find_qualifiers:</td><td><a href="FindQualifiers.html">Uddi4r::FindQualifiers</a>
332
-
333
- </td></tr>
334
- <tr><td valign="top">identifier_bag:</td><td><a href="IdentifierBag.html">Uddi4r::IdentifierBag</a>
335
-
336
- </td></tr>
337
- <tr><td valign="top">category_bag:</td><td><a href="CategoryBag.html">Uddi4r::CategoryBag</a>
338
-
339
- </td></tr>
340
- <tr><td valign="top">t_model_bag:</td><td><a href="TModelBag.html">Uddi4r::TModelBag</a>
341
-
342
- </td></tr>
343
- <tr><td valign="top">discovery_urls:</td><td><a href="DiscoveryURLs.html">Uddi4r::DiscoveryURLs</a>
344
-
345
- </td></tr>
346
- </table>
347
- <h4>Examples</h4>
348
- <pre>
349
- businesses = client.find_business(:name=&gt;&quot;Microsoft&quot;)
350
-
351
- businesses = client.find_business(:name=&gt;&quot;Microsoft&quot;,
352
- FindQualifiers.new(&quot;exactMatch&quot;))
353
- </pre>
354
- <p><a class="source-toggle" href="#"
355
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
356
- <div class="method-source-code" id="M000014-source">
357
- <pre>
358
- <span class="ruby-comment cmt"># File lib/client.rb, line 91</span>
359
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_business</span>(<span class="ruby-identifier">args</span>={})
360
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;find_business&quot;</span>, {},
361
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:find_qualifiers</span>], {<span class="ruby-value str">&quot;name&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">args</span>[<span class="ruby-identifier">:name</span>]},
362
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:identifier_bag</span>], <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:category_bag</span>],
363
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_bag</span>],<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:discovery_urls</span>])
364
- <span class="ruby-constant">BusinessList</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
365
- <span class="ruby-keyword kw">end</span>
366
- </pre>
367
- </div>
368
- </div>
369
- </div>
370
-
371
- <div id="method-M000015" class="method-detail">
372
- <a name="M000015"></a>
373
-
374
- <div class="method-heading">
375
- <a href="#M000015" class="method-signature">
376
- <span class="method-name">find_related_businesses</span><span class="method-args">(args={})</span>
377
- </a>
378
- </div>
379
-
380
- <div class="method-description">
381
- <p>
382
- Find businesses related to a given business.
383
- </p>
384
- <dl>
385
- <dt>Returns</dt><dd><a href="RelatedBusinessesList.html">Uddi4r::RelatedBusinessesList</a>.
386
-
387
- </dd>
388
- </dl>
389
- <h4>Simple arguments</h4>
390
- <table>
391
- <tr><td valign="top">business_key:</td><td>String for business key (required)
392
-
393
- </td></tr>
394
- </table>
395
- <h4>Advanced arguments</h4>
396
- <table>
397
- <tr><td valign="top">find_qualifiers:</td><td><a href="FindQualifiers.html">Uddi4r::FindQualifiers</a>
398
-
399
- </td></tr>
400
- </table>
401
- <h4>Example</h4>
402
- <pre>
403
- related_bizs = client.find_related_business(:business_key=&gt;&quot;7CEAB5C2-D40E-1E0C-7942-99C64EF3C1ED&quot;)
404
- </pre>
405
- <p><a class="source-toggle" href="#"
406
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
407
- <div class="method-source-code" id="M000015-source">
408
- <pre>
409
- <span class="ruby-comment cmt"># File lib/client.rb, line 107</span>
410
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_related_businesses</span>(<span class="ruby-identifier">args</span>={})
411
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;find_relatedBusinesses&quot;</span>, {},
412
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:find_qualifiers</span>],
413
- {<span class="ruby-value str">&quot;businessKey&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:business_key</span>, <span class="ruby-constant">String</span>)})
414
- <span class="ruby-constant">RelatedBusinessesList</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
415
- <span class="ruby-keyword kw">end</span>
416
- </pre>
417
- </div>
418
- </div>
419
- </div>
420
-
421
- <div id="method-M000016" class="method-detail">
422
- <a name="M000016"></a>
423
-
424
- <div class="method-heading">
425
- <a href="#M000016" class="method-signature">
426
- <span class="method-name">find_service</span><span class="method-args">(args={})</span>
427
- </a>
428
- </div>
429
-
430
- <div class="method-description">
431
- <p>
432
- Find services for given business key or name.
433
- </p>
434
- <dl>
435
- <dt>Returns</dt><dd><a href="ServiceList.html">Uddi4r::ServiceList</a>
436
-
437
- </dd>
438
- </dl>
439
- <h4>Simple arguments</h4>
440
- <table>
441
- <tr><td valign="top">business_key:</td><td>String for business key
442
-
443
- </td></tr>
444
- <tr><td valign="top">names:</td><td>Array of service name String, or
445
-
446
- </td></tr>
447
- <tr><td valign="top">name:</td><td>String for service name
448
-
449
- </td></tr>
450
- </table>
451
- <h4>Advanced arguments</h4>
452
- <table>
453
- <tr><td valign="top">find_qualifiers:</td><td><a href="FindQualifiers.html">Uddi4r::FindQualifiers</a>
454
-
455
- </td></tr>
456
- <tr><td valign="top">t_model_bag:</td><td><a href="TModelBag.html">Uddi4r::TModelBag</a>
457
-
458
- </td></tr>
459
- </table>
460
- <h4>Example</h4>
461
- <pre>
462
- services = client.find_service(:name=&gt;&quot;Currency Conversion&quot;)
463
- </pre>
464
- <p><a class="source-toggle" href="#"
465
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
466
- <div class="method-source-code" id="M000016-source">
467
- <pre>
468
- <span class="ruby-comment cmt"># File lib/client.rb, line 125</span>
469
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_service</span>(<span class="ruby-identifier">args</span>={})
470
- <span class="ruby-comment cmt"># create array if only one given </span>
471
- <span class="ruby-identifier">names</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:name</span>] <span class="ruby-operator">?</span> [ <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:name</span>] ] <span class="ruby-operator">:</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:names</span>]
472
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;find_service&quot;</span>,
473
- {<span class="ruby-identifier">:business_key=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">args</span>[<span class="ruby-identifier">:business_key</span>]},
474
- <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_elements</span>(<span class="ruby-value str">&quot;name&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">names</span>),
475
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_bag</span>])
476
- <span class="ruby-constant">ServiceList</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
477
- <span class="ruby-keyword kw">end</span>
478
- </pre>
479
- </div>
480
- </div>
481
- </div>
482
-
483
- <div id="method-M000017" class="method-detail">
484
- <a name="M000017"></a>
485
-
486
- <div class="method-heading">
487
- <a href="#M000017" class="method-signature">
488
- <span class="method-name">find_t_model</span><span class="method-args">(args={})</span>
489
- </a>
490
- </div>
491
-
492
- <div class="method-description">
493
- <p>
494
- Find tModels by name and other qualifiers. Returns all tModels published on
495
- server if no arguments passed.
496
- </p>
497
- <dl>
498
- <dt>Returns</dt><dd><a href="TModelList.html">Uddi4r::TModelList</a>
499
-
500
- </dd>
501
- </dl>
502
- <h4>Simple arguments</h4>
503
- <table>
504
- <tr><td valign="top">name:</td><td>String for service name
505
-
506
- </td></tr>
507
- </table>
508
- <h4>Advanced arguments</h4>
509
- <table>
510
- <tr><td valign="top">find_qualifiers:</td><td><a href="FindQualifiers.html">Uddi4r::FindQualifiers</a>
511
-
512
- </td></tr>
513
- <tr><td valign="top">identifier_bag:</td><td><a href="IdentifierBag.html">Uddi4r::IdentifierBag</a>
514
-
515
- </td></tr>
516
- <tr><td valign="top">category_bag:</td><td><a href="CategoryBag.html">Uddi4r::CategoryBag</a>
517
-
518
- </td></tr>
519
- </table>
520
- <h4>Example</h4>
521
- <pre>
522
- t_models = client.find_t_model(:name=&gt;&quot;Currency Conversion&quot;)
523
- </pre>
524
- <p><a class="source-toggle" href="#"
525
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
526
- <div class="method-source-code" id="M000017-source">
527
- <pre>
528
- <span class="ruby-comment cmt"># File lib/client.rb, line 146</span>
529
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_t_model</span>(<span class="ruby-identifier">args</span>={})
530
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;find_tModel&quot;</span>, {},
531
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:find_qualifiers</span>], {<span class="ruby-value str">&quot;name&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">args</span>[<span class="ruby-identifier">:name</span>]},
532
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:identifier_bag</span>], <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:category_bag</span>],
533
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_bag</span>], <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:discovery_urls</span>])
534
- <span class="ruby-constant">TModelList</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
535
- <span class="ruby-keyword kw">end</span>
536
- </pre>
537
- </div>
538
- </div>
539
- </div>
540
-
541
- <div id="method-M000018" class="method-detail">
542
- <a name="M000018"></a>
543
-
544
- <div class="method-heading">
545
- <a href="#M000018" class="method-signature">
546
- <span class="method-name">get_binding_detail</span><span class="method-args">(args)</span>
547
- </a>
548
- </div>
549
-
550
- <div class="method-description">
551
- <p>
552
- Get binding detail for given binding key.
553
- </p>
554
- <dl>
555
- <dt>Returns</dt><dd><a href="BindingDetail.html">Uddi4r::BindingDetail</a>
556
-
557
- </dd>
558
- </dl>
559
- <h4>Simple arguments</h4>
560
- <table>
561
- <tr><td valign="top">binding_keys:</td><td>Array of binding key String, or
562
-
563
- </td></tr>
564
- <tr><td valign="top">binding_key:</td><td>String for binding key
565
-
566
- </td></tr>
567
- </table>
568
- <h4>Example</h4>
569
- <pre>
570
- bd = client.get_binding(:binding_key=&gt;&quot;C7CEAB5C2-D40E-1E0C-7942-99C64EF3C1ED&quot;)
571
- url = bd.binding_template.first.access_point()
572
- </pre>
573
- <p><a class="source-toggle" href="#"
574
- onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
575
- <div class="method-source-code" id="M000018-source">
576
- <pre>
577
- <span class="ruby-comment cmt"># File lib/client.rb, line 162</span>
578
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_binding_detail</span>(<span class="ruby-identifier">args</span>)
579
- <span class="ruby-comment cmt"># create array if only one given</span>
580
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:binding_keys</span>] = [<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:binding_key</span>]] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:binding_key</span>]
581
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;get_bindingDetail&quot;</span>, {},
582
- <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_elements</span>(<span class="ruby-value str">&quot;bindingKey&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:binding_keys</span>, <span class="ruby-constant">Array</span>) )
583
- )
584
- <span class="ruby-constant">BindingDetail</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
585
- <span class="ruby-keyword kw">end</span>
586
- </pre>
587
- </div>
588
- </div>
589
- </div>
590
-
591
- <div id="method-M000019" class="method-detail">
592
- <a name="M000019"></a>
593
-
594
- <div class="method-heading">
595
- <a href="#M000019" class="method-signature">
596
- <span class="method-name">get_business_detail</span><span class="method-args">(args)</span>
597
- </a>
598
- </div>
599
-
600
- <div class="method-description">
601
- <p>
602
- Get business detail for given business key.
603
- </p>
604
- <dl>
605
- <dt>Returns</dt><dd><a href="BusinessDetail.html">Uddi4r::BusinessDetail</a>
606
-
607
- </dd>
608
- </dl>
609
- <h4>Simple arguments</h4>
610
- <table>
611
- <tr><td valign="top">business_keys:</td><td>Array of business key String, or
612
-
613
- </td></tr>
614
- <tr><td valign="top">business_key:</td><td>String for business key
615
-
616
- </td></tr>
617
- </table>
618
- <h4>Example</h4>
619
- <pre>
620
- biz = client.get_business_detail(:business_keys=&gt;[&quot;C7CEAB5C2-D40E-1E0C-7942-99C64EF3C1ED&quot;, &quot;...&quot;])
621
- </pre>
622
- <p><a class="source-toggle" href="#"
623
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
624
- <div class="method-source-code" id="M000019-source">
625
- <pre>
626
- <span class="ruby-comment cmt"># File lib/client.rb, line 178</span>
627
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_business_detail</span>(<span class="ruby-identifier">args</span>)
628
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:business_keys</span>] = [<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:business_key</span>]] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:business_key</span>]
629
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;get_businessDetail&quot;</span>, {},
630
- <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_elements</span>(<span class="ruby-value str">&quot;businessKey&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:business_keys</span>, <span class="ruby-constant">Array</span>)))
631
- <span class="ruby-constant">BusinessDetail</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
632
- <span class="ruby-keyword kw">end</span>
633
- </pre>
634
- </div>
635
- </div>
636
- </div>
637
-
638
- <div id="method-M000021" class="method-detail">
639
- <a name="M000021"></a>
640
-
641
- <div class="method-heading">
642
- <a href="#M000021" class="method-signature">
643
- <span class="method-name">get_service_detail</span><span class="method-args">(args)</span>
644
- </a>
645
- </div>
646
-
647
- <div class="method-description">
648
- <p>
649
- Get service detail for given service key or keys.
650
- </p>
651
- <dl>
652
- <dt>Returns</dt><dd><a href="ServiceDetail.html">Uddi4r::ServiceDetail</a>
653
-
654
- </dd>
655
- </dl>
656
- <h4>Simple arguments</h4>
657
- <table>
658
- <tr><td valign="top">service_keys:</td><td>Array of service key String, or
659
-
660
- </td></tr>
661
- <tr><td valign="top">service_key:</td><td>String for service key
662
-
663
- </td></tr>
664
- </table>
665
- <h4>Example</h4>
666
- <pre>
667
- service_details = client.get_service_detail(:service_keys=&gt;[&quot;C7CEAB5C2-D40E-1E0C-7942-99C64EF3C1ED&quot;, &quot;...&quot;])
668
- </pre>
669
- <p><a class="source-toggle" href="#"
670
- onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
671
- <div class="method-source-code" id="M000021-source">
672
- <pre>
673
- <span class="ruby-comment cmt"># File lib/client.rb, line 206</span>
674
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_service_detail</span>(<span class="ruby-identifier">args</span>)
675
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:service_keys</span>] = [<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:service_key</span>]] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:service_key</span>]
676
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;get_serviceDetail&quot;</span>, {},
677
- <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_elements</span>(<span class="ruby-value str">&quot;serviceKey&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:service_keys</span>, <span class="ruby-constant">Array</span>)))
678
- <span class="ruby-constant">ServiceDetail</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
679
- <span class="ruby-keyword kw">end</span>
680
- </pre>
681
- </div>
682
- </div>
683
- </div>
684
-
685
- <div id="method-M000020" class="method-detail">
686
- <a name="M000020"></a>
687
-
688
- <div class="method-heading">
689
- <a href="#M000020" class="method-signature">
690
- <span class="method-name">get_t_model_detail</span><span class="method-args">(args)</span>
691
- </a>
692
- </div>
693
-
694
- <div class="method-description">
695
- <p>
696
- Get tModel detail for given tModel key or keys.
697
- </p>
698
- <dl>
699
- <dt>Returns</dt><dd><a href="TModelDetail.html">Uddi4r::TModelDetail</a>
700
-
701
- </dd>
702
- </dl>
703
- <h4>Simple arguments</h4>
704
- <table>
705
- <tr><td valign="top">t_model_keys:</td><td>Array of tModel key String, or
706
-
707
- </td></tr>
708
- <tr><td valign="top">t_model_key:</td><td>String for tModel key
709
-
710
- </td></tr>
711
- </table>
712
- <h4>Example</h4>
713
- <pre>
714
- t_models = client.get_t_model_detail(:t_model_keys=&gt;[&quot;C7CEAB5C2-D40E-1E0C-7942-99C64EF3C1ED&quot;, &quot;...&quot;])
715
- </pre>
716
- <p><a class="source-toggle" href="#"
717
- onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
718
- <div class="method-source-code" id="M000020-source">
719
- <pre>
720
- <span class="ruby-comment cmt"># File lib/client.rb, line 192</span>
721
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_t_model_detail</span>(<span class="ruby-identifier">args</span>)
722
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_keys</span>] = [<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_key</span>]] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:t_model_key</span>]
723
- <span class="ruby-identifier">operation</span> = <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_operation</span>(<span class="ruby-value str">&quot;get_tModelDetail&quot;</span>, {},
724
- <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">create_elements</span>(<span class="ruby-value str">&quot;tModelKey&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">required</span>(<span class="ruby-identifier">args</span>, <span class="ruby-identifier">:t_model_keys</span>, <span class="ruby-constant">Array</span>)))
725
- <span class="ruby-constant">TModelDetail</span>.<span class="ruby-identifier">create_from</span>(<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">invoke_operation</span>(<span class="ruby-identifier">operation</span>))
726
- <span class="ruby-keyword kw">end</span>
727
- </pre>
728
- </div>
729
- </div>
730
- </div>
731
-
732
-
733
- </div>
734
-
735
-
736
- </div>
737
-
738
-
739
- <div id="validator-badges">
740
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
741
- </div>
742
-
743
- </body>
744
- </html>