uddi4r 0.7 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/doc/classes/Uddi4r.html +36 -0
  2. data/doc/classes/Uddi4r/BindingDetail.html +52 -0
  3. data/doc/classes/Uddi4r/BindingTemplate.html +67 -0
  4. data/doc/classes/Uddi4r/BusinessDetail.html +47 -0
  5. data/doc/classes/Uddi4r/BusinessEntity.html +47 -0
  6. data/doc/classes/Uddi4r/BusinessInfo.html +57 -0
  7. data/doc/classes/Uddi4r/BusinessList.html +52 -0
  8. data/doc/classes/Uddi4r/BusinessService.html +47 -0
  9. data/doc/classes/Uddi4r/CategoryBag.html +47 -0
  10. data/doc/classes/Uddi4r/Client.html +119 -26
  11. data/doc/classes/Uddi4r/Connection.html +70 -36
  12. data/doc/classes/Uddi4r/DiscoveryURLs.html +41 -7
  13. data/doc/classes/Uddi4r/FindQualifiers.html +35 -1
  14. data/doc/classes/Uddi4r/IdentifierBag.html +47 -0
  15. data/doc/classes/Uddi4r/KeyedReference.html +72 -0
  16. data/doc/classes/Uddi4r/Model.html +40 -3
  17. data/doc/classes/Uddi4r/OverviewDoc.html +34 -0
  18. data/doc/classes/Uddi4r/RelatedBusinessesList.html +47 -0
  19. data/doc/classes/Uddi4r/ServiceDetail.html +52 -0
  20. data/doc/classes/Uddi4r/ServiceInfo.html +52 -0
  21. data/doc/classes/Uddi4r/ServiceList.html +52 -0
  22. data/doc/classes/Uddi4r/SoapBuilder.html +34 -0
  23. data/doc/classes/Uddi4r/TModel.html +67 -0
  24. data/doc/classes/Uddi4r/TModelBag.html +41 -7
  25. data/doc/classes/Uddi4r/TModelDetail.html +47 -0
  26. data/doc/classes/Uddi4r/TModelInfo.html +167 -0
  27. data/doc/classes/Uddi4r/TModelInstanceInfo.html +52 -0
  28. data/doc/classes/Uddi4r/TModelList.html +167 -0
  29. data/doc/created.rid +1 -1
  30. data/doc/dot/f_0.dot +14 -0
  31. data/doc/dot/f_0.png +0 -0
  32. data/doc/dot/f_1.dot +386 -0
  33. data/doc/dot/f_1.png +0 -0
  34. data/doc/dot/f_2.dot +386 -0
  35. data/doc/dot/f_2.png +0 -0
  36. data/doc/dot/f_3.dot +386 -0
  37. data/doc/dot/f_3.png +0 -0
  38. data/doc/dot/f_4.dot +386 -0
  39. data/doc/dot/f_4.png +0 -0
  40. data/doc/dot/m_1_0.dot +386 -0
  41. data/doc/dot/m_1_0.png +0 -0
  42. data/doc/dot/m_2_0.dot +386 -0
  43. data/doc/dot/m_2_0.png +0 -0
  44. data/doc/dot/m_3_0.dot +386 -0
  45. data/doc/dot/m_3_0.png +0 -0
  46. data/doc/dot/m_4_0.dot +386 -0
  47. data/doc/dot/m_4_0.png +0 -0
  48. data/doc/files/README.html +5 -0
  49. data/doc/files/lib/client_rb.html +35 -1
  50. data/doc/files/lib/connection_rb.html +34 -0
  51. data/doc/files/lib/models_rb.html +35 -1
  52. data/doc/files/lib/soap_builder_rb.html +34 -0
  53. data/doc/fr_class_index.html +2 -0
  54. data/doc/fr_method_index.html +13 -12
  55. data/lib/client.rb +20 -1
  56. data/lib/models.rb +12 -0
  57. data/test/test_client.rb +54 -42
  58. metadata +23 -2
@@ -67,6 +67,40 @@
67
67
 
68
68
 
69
69
  <div id="contextContent">
70
+ <div id="diagram">
71
+ <map id="map" name="map">
72
+ <area shape="RECT" coords="1378,135,1450,183" href="../../classes/Uddi4r/Model.html" alt="Model">
73
+ <area shape="RECT" coords="27,234,118,282" href="../../classes/Uddi4r/BindingDetail.html" alt="BindingDetail">
74
+ <area shape="RECT" coords="142,234,222,282" href="../../classes/Uddi4r/ServiceList.html" alt="ServiceList">
75
+ <area shape="RECT" coords="246,234,336,282" href="../../classes/Uddi4r/BusinessList.html" alt="BusinessList">
76
+ <area shape="RECT" coords="360,234,456,282" href="../../classes/Uddi4r/FindQualifiers.html" alt="FindQualifiers">
77
+ <area shape="RECT" coords="480,234,568,282" href="../../classes/Uddi4r/IdentifierBag.html" alt="IdentifierBag">
78
+ <area shape="RECT" coords="592,234,683,282" href="../../classes/Uddi4r/OverviewDoc.html" alt="OverviewDoc">
79
+ <area shape="RECT" coords="707,234,814,282" href="../../classes/Uddi4r/KeyedReference.html" alt="KeyedReference">
80
+ <area shape="RECT" coords="838,234,944,282" href="../../classes/Uddi4r/BindingTemplate.html" alt="BindingTemplate">
81
+ <area shape="RECT" coords="968,234,1091,282" href="../../classes/Uddi4r/TModelInstanceInfo.html" alt="TModelInstanceInfo">
82
+ <area shape="RECT" coords="1115,234,1214,282" href="../../classes/Uddi4r/BusinessEntity.html" alt="BusinessEntity">
83
+ <area shape="RECT" coords="1238,234,1344,282" href="../../classes/Uddi4r/BusinessService.html" alt="BusinessService">
84
+ <area shape="RECT" coords="1368,234,1459,282" href="../../classes/Uddi4r/BusinessInfo.html" alt="BusinessInfo">
85
+ <area shape="RECT" coords="1483,234,1566,282" href="../../classes/Uddi4r/ServiceInfo.html" alt="ServiceInfo">
86
+ <area shape="RECT" coords="1590,234,1726,282" href="../../classes/Uddi4r/RelatedBusinessesList.html" alt="RelatedBusinessesList">
87
+ <area shape="RECT" coords="1750,234,1840,282" href="../../classes/Uddi4r/ServiceDetail.html" alt="ServiceDetail">
88
+ <area shape="RECT" coords="1864,234,1955,282" href="../../classes/Uddi4r/TModelDetail.html" alt="TModelDetail">
89
+ <area shape="RECT" coords="1979,234,2062,282" href="../../classes/Uddi4r/TModelInfo.html" alt="TModelInfo">
90
+ <area shape="RECT" coords="2086,234,2168,282" href="../../classes/Uddi4r/TModelList.html" alt="TModelList">
91
+ <area shape="RECT" coords="2192,234,2275,282" href="../../classes/Uddi4r/TModelBag.html" alt="TModelBag">
92
+ <area shape="RECT" coords="2299,234,2400,282" href="../../classes/Uddi4r/DiscoveryURLs.html" alt="DiscoveryURLs">
93
+ <area shape="RECT" coords="2424,234,2496,282" href="../../classes/Uddi4r/TModel.html" alt="TModel">
94
+ <area shape="RECT" coords="2520,234,2611,282" href="../../classes/Uddi4r/CategoryBag.html" alt="CategoryBag">
95
+ <area shape="RECT" coords="2635,234,2734,282" href="../../classes/Uddi4r/BusinessDetail.html" alt="BusinessDetail">
96
+ <area shape="RECT" coords="1378,6,1450,54" href="../../classes/ROXML.html" alt="ROXML">
97
+ <area shape="RECT" coords="2758,234,2840,282" href="../../classes/Uddi4r/Connection.html" alt="Connection">
98
+ <area shape="RECT" coords="335,135,407,183" href="../../classes/Uddi4r/Client.html" alt="Client">
99
+ <area shape="RECT" coords="2747,124,2840,171" href="../../classes/Uddi4r/SoapBuilder.html" alt="SoapBuilder">
100
+ <area shape="RECT" coords="16,91,2851,292" href="../../classes/Uddi4r.html" alt="Uddi4r">
101
+ </map>
102
+ <img src="../../dot/f_4.png" usemap="#map" border=0 alt="TopLevel">
103
+ </div>
70
104
 
71
105
  <div id="description">
72
106
  <h1><a href="../../classes/Uddi4r.html">Uddi4r</a> UDDI for Ruby</h1>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Sun Jul 16 23:12:09 EDT 2006</td>
59
+ <td>Sat Dec 09 20:17:01 EST 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -67,6 +67,40 @@
67
67
 
68
68
 
69
69
  <div id="contextContent">
70
+ <div id="diagram">
71
+ <map id="map" name="map">
72
+ <area shape="RECT" coords="1378,135,1450,183" href="../../classes/Uddi4r/Model.html" alt="Model">
73
+ <area shape="RECT" coords="27,234,118,282" href="../../classes/Uddi4r/BindingDetail.html" alt="BindingDetail">
74
+ <area shape="RECT" coords="142,234,222,282" href="../../classes/Uddi4r/ServiceList.html" alt="ServiceList">
75
+ <area shape="RECT" coords="246,234,336,282" href="../../classes/Uddi4r/BusinessList.html" alt="BusinessList">
76
+ <area shape="RECT" coords="360,234,456,282" href="../../classes/Uddi4r/FindQualifiers.html" alt="FindQualifiers">
77
+ <area shape="RECT" coords="480,234,568,282" href="../../classes/Uddi4r/IdentifierBag.html" alt="IdentifierBag">
78
+ <area shape="RECT" coords="592,234,683,282" href="../../classes/Uddi4r/OverviewDoc.html" alt="OverviewDoc">
79
+ <area shape="RECT" coords="707,234,814,282" href="../../classes/Uddi4r/KeyedReference.html" alt="KeyedReference">
80
+ <area shape="RECT" coords="838,234,944,282" href="../../classes/Uddi4r/BindingTemplate.html" alt="BindingTemplate">
81
+ <area shape="RECT" coords="968,234,1091,282" href="../../classes/Uddi4r/TModelInstanceInfo.html" alt="TModelInstanceInfo">
82
+ <area shape="RECT" coords="1115,234,1214,282" href="../../classes/Uddi4r/BusinessEntity.html" alt="BusinessEntity">
83
+ <area shape="RECT" coords="1238,234,1344,282" href="../../classes/Uddi4r/BusinessService.html" alt="BusinessService">
84
+ <area shape="RECT" coords="1368,234,1459,282" href="../../classes/Uddi4r/BusinessInfo.html" alt="BusinessInfo">
85
+ <area shape="RECT" coords="1483,234,1566,282" href="../../classes/Uddi4r/ServiceInfo.html" alt="ServiceInfo">
86
+ <area shape="RECT" coords="1590,234,1726,282" href="../../classes/Uddi4r/RelatedBusinessesList.html" alt="RelatedBusinessesList">
87
+ <area shape="RECT" coords="1750,234,1840,282" href="../../classes/Uddi4r/ServiceDetail.html" alt="ServiceDetail">
88
+ <area shape="RECT" coords="1864,234,1955,282" href="../../classes/Uddi4r/TModelDetail.html" alt="TModelDetail">
89
+ <area shape="RECT" coords="1979,234,2062,282" href="../../classes/Uddi4r/TModelInfo.html" alt="TModelInfo">
90
+ <area shape="RECT" coords="2086,234,2168,282" href="../../classes/Uddi4r/TModelList.html" alt="TModelList">
91
+ <area shape="RECT" coords="2192,234,2275,282" href="../../classes/Uddi4r/TModelBag.html" alt="TModelBag">
92
+ <area shape="RECT" coords="2299,234,2400,282" href="../../classes/Uddi4r/DiscoveryURLs.html" alt="DiscoveryURLs">
93
+ <area shape="RECT" coords="2424,234,2496,282" href="../../classes/Uddi4r/TModel.html" alt="TModel">
94
+ <area shape="RECT" coords="2520,234,2611,282" href="../../classes/Uddi4r/CategoryBag.html" alt="CategoryBag">
95
+ <area shape="RECT" coords="2635,234,2734,282" href="../../classes/Uddi4r/BusinessDetail.html" alt="BusinessDetail">
96
+ <area shape="RECT" coords="1378,6,1450,54" href="../../classes/ROXML.html" alt="ROXML">
97
+ <area shape="RECT" coords="2758,234,2840,282" href="../../classes/Uddi4r/Connection.html" alt="Connection">
98
+ <area shape="RECT" coords="335,135,407,183" href="../../classes/Uddi4r/Client.html" alt="Client">
99
+ <area shape="RECT" coords="2747,124,2840,171" href="../../classes/Uddi4r/SoapBuilder.html" alt="SoapBuilder">
100
+ <area shape="RECT" coords="16,91,2851,292" href="../../classes/Uddi4r.html" alt="Uddi4r">
101
+ </map>
102
+ <img src="../../dot/f_1.png" usemap="#map" border=0 alt="TopLevel">
103
+ </div>
70
104
 
71
105
  <div id="description">
72
106
  <p>
@@ -67,6 +67,40 @@
67
67
 
68
68
 
69
69
  <div id="contextContent">
70
+ <div id="diagram">
71
+ <map id="map" name="map">
72
+ <area shape="RECT" coords="1378,135,1450,183" href="../../classes/Uddi4r/Model.html" alt="Model">
73
+ <area shape="RECT" coords="27,234,118,282" href="../../classes/Uddi4r/BindingDetail.html" alt="BindingDetail">
74
+ <area shape="RECT" coords="142,234,222,282" href="../../classes/Uddi4r/ServiceList.html" alt="ServiceList">
75
+ <area shape="RECT" coords="246,234,336,282" href="../../classes/Uddi4r/BusinessList.html" alt="BusinessList">
76
+ <area shape="RECT" coords="360,234,456,282" href="../../classes/Uddi4r/FindQualifiers.html" alt="FindQualifiers">
77
+ <area shape="RECT" coords="480,234,568,282" href="../../classes/Uddi4r/IdentifierBag.html" alt="IdentifierBag">
78
+ <area shape="RECT" coords="592,234,683,282" href="../../classes/Uddi4r/OverviewDoc.html" alt="OverviewDoc">
79
+ <area shape="RECT" coords="707,234,814,282" href="../../classes/Uddi4r/KeyedReference.html" alt="KeyedReference">
80
+ <area shape="RECT" coords="838,234,944,282" href="../../classes/Uddi4r/BindingTemplate.html" alt="BindingTemplate">
81
+ <area shape="RECT" coords="968,234,1091,282" href="../../classes/Uddi4r/TModelInstanceInfo.html" alt="TModelInstanceInfo">
82
+ <area shape="RECT" coords="1115,234,1214,282" href="../../classes/Uddi4r/BusinessEntity.html" alt="BusinessEntity">
83
+ <area shape="RECT" coords="1238,234,1344,282" href="../../classes/Uddi4r/BusinessService.html" alt="BusinessService">
84
+ <area shape="RECT" coords="1368,234,1459,282" href="../../classes/Uddi4r/BusinessInfo.html" alt="BusinessInfo">
85
+ <area shape="RECT" coords="1483,234,1566,282" href="../../classes/Uddi4r/ServiceInfo.html" alt="ServiceInfo">
86
+ <area shape="RECT" coords="1590,234,1726,282" href="../../classes/Uddi4r/RelatedBusinessesList.html" alt="RelatedBusinessesList">
87
+ <area shape="RECT" coords="1750,234,1840,282" href="../../classes/Uddi4r/ServiceDetail.html" alt="ServiceDetail">
88
+ <area shape="RECT" coords="1864,234,1955,282" href="../../classes/Uddi4r/TModelDetail.html" alt="TModelDetail">
89
+ <area shape="RECT" coords="1979,234,2062,282" href="../../classes/Uddi4r/TModelInfo.html" alt="TModelInfo">
90
+ <area shape="RECT" coords="2086,234,2168,282" href="../../classes/Uddi4r/TModelList.html" alt="TModelList">
91
+ <area shape="RECT" coords="2192,234,2275,282" href="../../classes/Uddi4r/TModelBag.html" alt="TModelBag">
92
+ <area shape="RECT" coords="2299,234,2400,282" href="../../classes/Uddi4r/DiscoveryURLs.html" alt="DiscoveryURLs">
93
+ <area shape="RECT" coords="2424,234,2496,282" href="../../classes/Uddi4r/TModel.html" alt="TModel">
94
+ <area shape="RECT" coords="2520,234,2611,282" href="../../classes/Uddi4r/CategoryBag.html" alt="CategoryBag">
95
+ <area shape="RECT" coords="2635,234,2734,282" href="../../classes/Uddi4r/BusinessDetail.html" alt="BusinessDetail">
96
+ <area shape="RECT" coords="1378,6,1450,54" href="../../classes/ROXML.html" alt="ROXML">
97
+ <area shape="RECT" coords="2758,234,2840,282" href="../../classes/Uddi4r/Connection.html" alt="Connection">
98
+ <area shape="RECT" coords="335,135,407,183" href="../../classes/Uddi4r/Client.html" alt="Client">
99
+ <area shape="RECT" coords="2747,124,2840,171" href="../../classes/Uddi4r/SoapBuilder.html" alt="SoapBuilder">
100
+ <area shape="RECT" coords="16,91,2851,292" href="../../classes/Uddi4r.html" alt="Uddi4r">
101
+ </map>
102
+ <img src="../../dot/f_2.png" usemap="#map" border=0 alt="TopLevel">
103
+ </div>
70
104
 
71
105
  <div id="description">
72
106
  <p>
@@ -45,7 +45,9 @@
45
45
  <a href="classes/Uddi4r/TModel.html">Uddi4r::TModel</a><br />
46
46
  <a href="classes/Uddi4r/TModelBag.html">Uddi4r::TModelBag</a><br />
47
47
  <a href="classes/Uddi4r/TModelDetail.html">Uddi4r::TModelDetail</a><br />
48
+ <a href="classes/Uddi4r/TModelInfo.html">Uddi4r::TModelInfo</a><br />
48
49
  <a href="classes/Uddi4r/TModelInstanceInfo.html">Uddi4r::TModelInstanceInfo</a><br />
50
+ <a href="classes/Uddi4r/TModelList.html">Uddi4r::TModelList</a><br />
49
51
  </div>
50
52
  </div>
51
53
  </body>
@@ -32,22 +32,23 @@
32
32
  <a href="classes/Uddi4r/Client.html#M000014">find_business (Uddi4r::Client)</a><br />
33
33
  <a href="classes/Uddi4r/Client.html#M000015">find_related_businesses (Uddi4r::Client)</a><br />
34
34
  <a href="classes/Uddi4r/Client.html#M000016">find_service (Uddi4r::Client)</a><br />
35
- <a href="classes/Uddi4r/Client.html#M000017">get_binding_detail (Uddi4r::Client)</a><br />
36
- <a href="classes/Uddi4r/Client.html#M000018">get_business_detail (Uddi4r::Client)</a><br />
37
- <a href="classes/Uddi4r/Client.html#M000020">get_service_detail (Uddi4r::Client)</a><br />
38
- <a href="classes/Uddi4r/Client.html#M000019">get_t_model_detail (Uddi4r::Client)</a><br />
39
- <a href="classes/Uddi4r/Connection.html#M000025">invoke (Uddi4r::Connection)</a><br />
40
- <a href="classes/Uddi4r/Connection.html#M000024">invoke_operation (Uddi4r::Connection)</a><br />
41
- <a href="classes/Uddi4r/Connection.html#M000023">max_rows= (Uddi4r::Connection)</a><br />
42
- <a href="classes/Uddi4r/Connection.html#M000022">namespace_for (Uddi4r::Connection)</a><br />
35
+ <a href="classes/Uddi4r/Client.html#M000017">find_t_model (Uddi4r::Client)</a><br />
36
+ <a href="classes/Uddi4r/Client.html#M000018">get_binding_detail (Uddi4r::Client)</a><br />
37
+ <a href="classes/Uddi4r/Client.html#M000019">get_business_detail (Uddi4r::Client)</a><br />
38
+ <a href="classes/Uddi4r/Client.html#M000021">get_service_detail (Uddi4r::Client)</a><br />
39
+ <a href="classes/Uddi4r/Client.html#M000020">get_t_model_detail (Uddi4r::Client)</a><br />
40
+ <a href="classes/Uddi4r/Connection.html#M000026">invoke (Uddi4r::Connection)</a><br />
41
+ <a href="classes/Uddi4r/Connection.html#M000025">invoke_operation (Uddi4r::Connection)</a><br />
42
+ <a href="classes/Uddi4r/Connection.html#M000024">max_rows= (Uddi4r::Connection)</a><br />
43
+ <a href="classes/Uddi4r/Connection.html#M000023">namespace_for (Uddi4r::Connection)</a><br />
43
44
  <a href="classes/Uddi4r/Client.html#M000012">new (Uddi4r::Client)</a><br />
44
- <a href="classes/Uddi4r/Connection.html#M000021">new (Uddi4r::Connection)</a><br />
45
+ <a href="classes/Uddi4r/Connection.html#M000022">new (Uddi4r::Connection)</a><br />
45
46
  <a href="classes/Uddi4r/FindQualifiers.html#M000008">new (Uddi4r::FindQualifiers)</a><br />
46
- <a href="classes/Uddi4r/DiscoveryURLs.html#M000028">new (Uddi4r::DiscoveryURLs)</a><br />
47
- <a href="classes/Uddi4r/TModelBag.html#M000027">new (Uddi4r::TModelBag)</a><br />
47
+ <a href="classes/Uddi4r/DiscoveryURLs.html#M000029">new (Uddi4r::DiscoveryURLs)</a><br />
48
+ <a href="classes/Uddi4r/TModelBag.html#M000028">new (Uddi4r::TModelBag)</a><br />
48
49
  <a href="classes/Uddi4r/Model.html#M000011">new (Uddi4r::Model)</a><br />
49
50
  <a href="classes/Uddi4r/Model.html#M000009">tag_name (Uddi4r::Model)</a><br />
50
- <a href="classes/Uddi4r/Connection.html#M000026">to_s (Uddi4r::Connection)</a><br />
51
+ <a href="classes/Uddi4r/Connection.html#M000027">to_s (Uddi4r::Connection)</a><br />
51
52
  </div>
52
53
  </div>
53
54
  </body>
data/lib/client.rb CHANGED
@@ -32,7 +32,7 @@ module Uddi4r
32
32
  # capabilities such as findQualifiers, tModelBags, categoryBags, etc. See the
33
33
  # specficiation for details.
34
34
  #
35
- # Following example uses a _findQualifer_ to do a case-sensitivity to the
35
+ # Following example uses a _findQualifer_ to add case-sensitivity to the
36
36
  # previous example:
37
37
  #
38
38
  # businesses = client.find_business(:name=>"Microsoft",
@@ -131,6 +131,25 @@ module Uddi4r
131
131
  args[:t_model_bag])
132
132
  ServiceList.create_from(@conn.invoke_operation(operation))
133
133
  end
134
+
135
+ # Find tModels by name and other qualifiers. Returns all
136
+ # tModels published on server if no arguments passed.
137
+ # [Returns] Uddi4r::TModelList
138
+ # ==== Simple arguments
139
+ # name:: String for service name
140
+ # ==== Advanced arguments
141
+ # find_qualifiers:: Uddi4r::FindQualifiers
142
+ # identifier_bag:: Uddi4r::IdentifierBag
143
+ # category_bag:: Uddi4r::CategoryBag
144
+ # ==== Example
145
+ # t_models = client.find_t_model(:name=>"Currency Conversion")
146
+ def find_t_model(args={})
147
+ operation = @conn.create_operation("find_tModel", {},
148
+ args[:find_qualifiers], {"name"=>args[:name]},
149
+ args[:identifier_bag], args[:category_bag],
150
+ args[:t_model_bag], args[:discovery_urls])
151
+ TModelList.create_from(@conn.invoke_operation(operation))
152
+ end
134
153
 
135
154
  # Get binding detail for given binding key.
136
155
  # [Returns] Uddi4r::BindingDetail
data/lib/models.rb CHANGED
@@ -29,6 +29,7 @@ module Uddi4r
29
29
  # * TModel
30
30
  # * TModelBag
31
31
  # * TModelDetail
32
+ # * TModelList
32
33
  # * ServiceDetail
33
34
  # * IdentifierBag
34
35
  # * DiscoveryURLs
@@ -204,4 +205,15 @@ module Uddi4r
204
205
  end
205
206
  end
206
207
 
208
+ # UDDI tModelInfo, for more information, see Uddi4r::Model.
209
+ class TModelInfo < Model
210
+ xml_attribute :t_model_key
211
+ xml_text :name
212
+ end
213
+
214
+ # UDDI tModelList, for more information, see Uddi4r::Model.
215
+ class TModelList < Model
216
+ xml_object :t_model_infos, Uddi4r::TModelInfo, ROXML::TAG_ARRAY, "tModelInfos"
217
+ end
218
+
207
219
  end
data/test/test_client.rb CHANGED
@@ -11,24 +11,25 @@ class TestClient < Test::Unit::TestCase
11
11
  @@Report = false
12
12
  @@Debug = false
13
13
  @@UddiVersion = "2.0"
14
+ MaxRows = 2
14
15
 
15
16
  def uddi_for(fixture)
16
17
  connection = Uddi4r::Connection.new(fixture.url, @@UddiVersion, @@Debug)
17
18
  #connection = Uddi4r::Connection.new(nil, @@UddiVersion, @@Debug)
18
- connection.max_rows = 2
19
+ connection.max_rows = MaxRows
19
20
  uddi = Uddi4r::Client.new(connection)
20
21
  return uddi
21
22
  end
22
23
 
23
24
  # Test finding a business by name and composed services
24
25
  def test_find_business
25
- fix = MicrosoftUddi
26
- uddi = uddi_for(fix)
27
- business_list = uddi.find_business(:name=>fix.business_name, :business_key=>fix.business_key)
26
+ fx = MicrosoftUddi
27
+ uddi = uddi_for(fx)
28
+ business_list = uddi.find_business(:name=>fx.business_name, :business_key=>fx.business_key)
28
29
  businesses = business_list.business_infos
29
30
  assert_equal(2, businesses.size)
30
31
  businesses.each do |biz|
31
- assert(fix.expected_business_names.include?(biz.name))
32
+ assert(fx.expected_business_names.include?(biz.name))
32
33
  if @@Report
33
34
  puts "Business #{biz.name}"
34
35
  biz.service_infos.each { |svc| puts " - Service #{svc.name} - #{svc.service_key}" }
@@ -38,17 +39,17 @@ class TestClient < Test::Unit::TestCase
38
39
 
39
40
  # Follow a drill-down use-case for business > service > binding
40
41
  def test_drill_down
41
- fix = XMethodsUddi
42
- uddi = uddi_for(fix)
43
- biz_list = uddi.find_business(:name=>fix.business_name)
42
+ fx = XMethodsUddi
43
+ uddi = uddi_for(fx)
44
+ biz_list = uddi.find_business(:name=>fx.business_name)
44
45
  biz = biz_list.business_infos.first
45
- assert_equal(fix.business_name, biz.name)
46
+ assert_equal(fx.business_name, biz.name)
46
47
  service = biz.service_infos.first
47
- assert_equal(fix.service_name, service.name)
48
+ assert_equal(fx.service_name, service.name)
48
49
  assert_not_nil(service.service_key)
49
50
  binding = uddi.find_binding(:service_key=>service.service_key,
50
- :t_model_keys=>[fix.t_model_key])
51
- assert_equal(fix.operator, binding.operator)
51
+ :t_model_keys=>[fx.t_model_key])
52
+ assert_equal(fx.operator, binding.operator)
52
53
  assert_not_nil(bt = binding.binding_template.first)
53
54
  assert_equal("SOAP binding", bt.description)
54
55
  assert_http_endpoint(bt.access_point)
@@ -56,37 +57,37 @@ class TestClient < Test::Unit::TestCase
56
57
 
57
58
  # Find a service
58
59
  def test_find_service
59
- fix = XMethodsUddi
60
- uddi = uddi_for(fix)
61
- services = uddi.find_service(:name=>fix.service_name)
60
+ fx = XMethodsUddi
61
+ uddi = uddi_for(fx)
62
+ services = uddi.find_service(:name=>fx.service_name)
62
63
  service = services.service_infos.first
63
- assert_equal(fix.service_name, service.name)
64
+ assert_equal(fx.service_name, service.name)
64
65
  assert_not_nil(service.service_key)
65
66
  end
66
67
 
67
68
  # Find related businesses
68
69
  def test_find_related_business
69
- fix = MicrosoftUddi
70
- uddi = uddi_for(fix)
71
- biz = uddi.find_business(:name=>fix.business_name).business_infos.first
72
- related_biz = uddi.find_related_businesses(:business_key=>fix.business_key)
70
+ fx = MicrosoftUddi
71
+ uddi = uddi_for(fx)
72
+ biz = uddi.find_business(:name=>fx.business_name).business_infos.first
73
+ related_biz = uddi.find_related_businesses(:business_key=>fx.business_key)
73
74
  assert_not_nil(related_biz)
74
75
  end
75
76
 
76
77
  # Get binding detail
77
78
  def test_get_binding_detail_single
78
- fix = XMethodsUddi
79
- uddi = uddi_for(fix)
80
- binding = uddi.get_binding_detail(:binding_key=>fix.binding_key)
79
+ fx = XMethodsUddi
80
+ uddi = uddi_for(fx)
81
+ binding = uddi.get_binding_detail(:binding_key=>fx.binding_key)
81
82
  assert_not_nil(binding)
82
83
  assert_http_endpoint(binding.binding_template.first.access_point)
83
84
  end
84
85
 
85
86
  # Get binding detail
86
87
  def test_get_binding_detail_multi
87
- fix = XMethodsUddi
88
- uddi = uddi_for(fix)
89
- bindings = uddi.get_binding_detail(:binding_keys=>[fix.binding_key, fix.binding_key_2])
88
+ fx = XMethodsUddi
89
+ uddi = uddi_for(fx)
90
+ bindings = uddi.get_binding_detail(:binding_keys=>[fx.binding_key, fx.binding_key_2])
90
91
  assert_not_nil(bindings)
91
92
  bts = bindings.binding_template
92
93
  assert_http_endpoint(bts.first.access_point)
@@ -94,14 +95,14 @@ class TestClient < Test::Unit::TestCase
94
95
 
95
96
  # Get the business details and validate all sub elements
96
97
  def test_get_business_detail
97
- fix = XMethodsUddi
98
- uddi = uddi_for(fix)
99
- assert_not_nil(bd = uddi.get_business_detail(:business_key=>fix.business_key))
98
+ fx = XMethodsUddi
99
+ uddi = uddi_for(fx)
100
+ assert_not_nil(bd = uddi.get_business_detail(:business_key=>fx.business_key))
100
101
  assert_not_nil(be = bd.business_entity.first)
101
- assert_equal(fix.business_name, be.name)
102
+ assert_equal(fx.business_name, be.name)
102
103
  assert_not_nil(be.discovery_url)
103
104
  assert_not_nil(bs = be.business_services.first)
104
- assert_equal(fix.service_name, bs.name)
105
+ assert_equal(fx.service_name, bs.name)
105
106
  assert_not_nil(bt = bs.binding_templates.first)
106
107
  assert_http_endpoint(bt.access_point)
107
108
  assert_not_nil(tmi = bt.t_model_instance_details.first)
@@ -110,11 +111,11 @@ class TestClient < Test::Unit::TestCase
110
111
 
111
112
  # Get the tModel detail and validate all sub elements
112
113
  def test_get_t_model_detail
113
- fix = XMethodsUddi
114
- uddi = uddi_for(fix)
115
- assert_not_nil(bd = uddi.get_t_model_detail(:t_model_key=>fix.t_model_key))
114
+ fx = XMethodsUddi
115
+ uddi = uddi_for(fx)
116
+ assert_not_nil(bd = uddi.get_t_model_detail(:t_model_key=>fx.t_model_key))
116
117
  assert_not_nil(t_model = bd.t_model.first)
117
- assert_equal(fix.service_name, t_model.name)
118
+ assert_equal(fx.service_name, t_model.name)
118
119
  assert_not_nil(t_model.description)
119
120
  assert_not_nil(c_bag = t_model.category_bag)
120
121
  assert_equal("uddi-org:types", c_bag.keyed_reference.first.key_name)
@@ -122,17 +123,28 @@ class TestClient < Test::Unit::TestCase
122
123
 
123
124
  # Get the service detail and validate all sub elements
124
125
  def test_service_detail
125
- fix = XMethodsUddi
126
- uddi = uddi_for(fix)
127
- assert_not_nil(sd = uddi.get_service_detail(:service_key=>fix.service_key))
126
+ fx = XMethodsUddi
127
+ uddi = uddi_for(fx)
128
+ assert_not_nil(sd = uddi.get_service_detail(:service_key=>fx.service_key))
128
129
  assert_not_nil(bs = sd.business_service.first)
129
- assert_equal(fix.service_name, bs.name)
130
+ assert_equal(fx.service_name, bs.name)
130
131
  assert_not_nil(bt = bs.binding_templates.first)
131
- assert_equal(fix.binding_key, bt.binding_key)
132
- assert_equal(fix.t_model_key, bt.t_model_instance_details.first.t_model_key)
132
+ assert_equal(fx.binding_key, bt.binding_key)
133
+ assert_equal(fx.t_model_key, bt.t_model_instance_details.first.t_model_key)
133
134
  end
134
135
 
135
- private
136
+ def test_t_model
137
+ # fx = XMethodsUddi
138
+ # uddi = uddi_for(fx)
139
+ # assert_not_nil(t_models = uddi.find_t_model()) # no params, get all
140
+ # assert_equal(MaxRows, t_models.size)
141
+ fx = XMethodsUddi
142
+ uddi = uddi_for(fx)
143
+ assert_not_nil(t_models = uddi.find_t_model(:name=>fx.service_name))
144
+ assert_equal(fx.service_name, t_models.t_model_infos.first.name)
145
+ end
146
+
147
+ private
136
148
 
137
149
  def assert_http_endpoint(url)
138
150
  assert_equal("http://", url[0..6])
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: uddi4r
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.7"
7
- date: 2006-07-16 00:00:00 -04:00
6
+ version: "0.8"
7
+ date: 2006-12-09 00:00:00 -05:00
8
8
  summary: UDDI for Ruby
9
9
  require_paths:
10
10
  - lib
@@ -41,6 +41,7 @@ files:
41
41
  - test/fixtures/business_service.xml
42
42
  - test/fixtures/test_uddi_servers.rb
43
43
  - doc/created.rid
44
+ - doc/dot
44
45
  - doc/rdoc-style.css
45
46
  - doc/files
46
47
  - doc/classes
@@ -48,6 +49,24 @@ files:
48
49
  - doc/fr_class_index.html
49
50
  - doc/fr_method_index.html
50
51
  - doc/index.html
52
+ - doc/dot/f_0.dot
53
+ - doc/dot/f_0.png
54
+ - doc/dot/f_1.dot
55
+ - doc/dot/f_1.png
56
+ - doc/dot/m_1_0.dot
57
+ - doc/dot/m_1_0.png
58
+ - doc/dot/f_2.dot
59
+ - doc/dot/f_2.png
60
+ - doc/dot/m_2_0.dot
61
+ - doc/dot/m_2_0.png
62
+ - doc/dot/f_3.dot
63
+ - doc/dot/f_3.png
64
+ - doc/dot/m_3_0.dot
65
+ - doc/dot/m_3_0.png
66
+ - doc/dot/f_4.dot
67
+ - doc/dot/f_4.png
68
+ - doc/dot/m_4_0.dot
69
+ - doc/dot/m_4_0.png
51
70
  - doc/files/README.html
52
71
  - doc/files/lib
53
72
  - doc/files/lib/models_rb.html
@@ -75,7 +94,9 @@ files:
75
94
  - doc/classes/Uddi4r/RelatedBusinessesList.html
76
95
  - doc/classes/Uddi4r/ServiceDetail.html
77
96
  - doc/classes/Uddi4r/TModelDetail.html
97
+ - doc/classes/Uddi4r/TModelInfo.html
78
98
  - doc/classes/Uddi4r/Connection.html
99
+ - doc/classes/Uddi4r/TModelList.html
79
100
  - doc/classes/Uddi4r/TModelBag.html
80
101
  - doc/classes/Uddi4r/DiscoveryURLs.html
81
102
  - doc/classes/Uddi4r/TModel.html