uddi4r 0.7

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