1 9 package org.uddi4j.client; 10 11 12 import java.net.MalformedURLException ; 13 import java.net.URL ; 14 import java.util.Arrays ; 15 import java.util.Properties ; 16 import java.util.Vector ; 17 18 import org.uddi4j.UDDIElement; 19 import org.uddi4j.UDDIException; 20 import org.uddi4j.datatype.Name; 21 import org.uddi4j.datatype.assertion.PublisherAssertion; 22 import org.uddi4j.request.AddPublisherAssertions; 23 import org.uddi4j.request.DeleteBinding; 24 import org.uddi4j.request.DeleteBusiness; 25 import org.uddi4j.request.DeletePublisherAssertions; 26 import org.uddi4j.request.DeleteService; 27 import org.uddi4j.request.DeleteTModel; 28 import org.uddi4j.request.DiscardAuthToken; 29 import org.uddi4j.request.FindBinding; 30 import org.uddi4j.request.FindBusiness; 31 import org.uddi4j.request.FindRelatedBusinesses; 32 import org.uddi4j.request.FindService; 33 import org.uddi4j.request.FindTModel; 34 import org.uddi4j.request.GetAssertionStatusReport; 35 import org.uddi4j.request.GetAuthToken; 36 import org.uddi4j.request.GetBindingDetail; 37 import org.uddi4j.request.GetBusinessDetail; 38 import org.uddi4j.request.GetBusinessDetailExt; 39 import org.uddi4j.request.GetPublisherAssertions; 40 import org.uddi4j.request.GetRegisteredInfo; 41 import org.uddi4j.request.GetServiceDetail; 42 import org.uddi4j.request.GetTModelDetail; 43 import org.uddi4j.request.SaveBinding; 44 import org.uddi4j.request.SaveBusiness; 45 import org.uddi4j.request.SaveService; 46 import org.uddi4j.request.SaveTModel; 47 import org.uddi4j.request.SetPublisherAssertions; 48 import org.uddi4j.request.ValidateValues; 49 import org.uddi4j.response.AssertionStatusReport; 50 import org.uddi4j.response.AuthToken; 51 import org.uddi4j.response.BindingDetail; 52 import org.uddi4j.response.BusinessDetail; 53 import org.uddi4j.response.BusinessDetailExt; 54 import org.uddi4j.response.BusinessList; 55 import org.uddi4j.response.CompletionStatus; 56 import org.uddi4j.response.DispositionReport; 57 import org.uddi4j.response.PublisherAssertions; 58 import org.uddi4j.response.RegisteredInfo; 59 import org.uddi4j.response.RelatedBusinessesList; 60 import org.uddi4j.response.ServiceDetail; 61 import org.uddi4j.response.ServiceList; 62 import org.uddi4j.response.TModelDetail; 63 import org.uddi4j.response.TModelList; 64 import org.uddi4j.transport.TransportException; 65 import org.uddi4j.transport.TransportFactory; 66 import org.uddi4j.util.AuthInfo; 67 import org.uddi4j.util.CategoryBag; 68 import org.uddi4j.util.DiscoveryURLs; 69 import org.uddi4j.util.FindQualifiers; 70 import org.uddi4j.util.IdentifierBag; 71 import org.uddi4j.util.KeyedReference; 72 import org.uddi4j.util.TModelBag; 73 import org.uddi4j.util.UploadRegister; 74 import org.w3c.dom.Element ; 75 76 93 public class UDDIProxy { 94 95 protected URL inquiryURL = null; 97 protected URL publishURL = null; 98 TransportFactory transportFactory = null; 99 Properties config = null; 100 101 102 105 public UDDIProxy() { 106 transportFactory = TransportFactory.newInstance(); 107 } 108 109 115 public UDDIProxy(URL inquiryURL, URL publishURL) { 116 this(); 117 this.inquiryURL = inquiryURL; 118 this.publishURL = publishURL; 119 } 120 121 146 public UDDIProxy(Properties p) throws MalformedURLException { 147 setConfiguration(p); 148 } 149 150 158 public void setConfiguration(Properties p) throws MalformedURLException { 159 config = p; 161 162 transportFactory = TransportFactory.newInstance(p); 164 if (p.getProperty("org.uddi4j.inquiryURL") != null) { 165 setInquiryURL(p.getProperty( "org.uddi4j.inquiryURL")); 166 } 167 if (p.getProperty("org.uddi4j.publishURL") != null) { 168 setPublishURL(p.getProperty("org.uddi4j.publishURL")); 169 } 170 } 171 172 176 public Properties getConfiguration() { 177 return config; 178 } 179 180 187 public void setInquiryURL(String url) throws java.net.MalformedURLException { 188 this.inquiryURL = new java.net.URL (url); 189 } 190 191 196 public void setInquiryURL(URL url) { 197 this.inquiryURL = url; 198 } 199 200 215 public void setPublishURL(String url) throws java.net.MalformedURLException { 216 this.publishURL = new java.net.URL (url); 217 } 218 219 224 public void setPublishURL(URL url) { 225 this.publishURL = url; 226 } 227 228 229 262 public BindingDetail find_binding(FindQualifiers findQualifiers, 263 String serviceKey, 264 TModelBag tModelBag, 265 int maxRows) 266 throws UDDIException, TransportException { 267 FindBinding request = new FindBinding(); 268 request.setFindQualifiers(findQualifiers); 269 request.setServiceKey(serviceKey); 270 request.setTModelBag(tModelBag); 271 if (maxRows>0) request.setMaxRows(maxRows); 272 return new BindingDetail(send(request, true)); 273 } 274 275 296 public BusinessList find_business(String name, 297 FindQualifiers findQualifiers, 298 int maxRows) 299 throws UDDIException, TransportException { 300 Vector names = new Vector (); 301 names.addElement(new Name(name)); 302 return find_business(names, null, null, null, null, findQualifiers, maxRows); 303 } 304 324 public BusinessList find_business(IdentifierBag identifierBag, 325 FindQualifiers findQualifiers, 326 int maxRows) 327 throws UDDIException, TransportException { 328 return find_business(new Vector () , null, identifierBag, null, null, findQualifiers, maxRows); 329 } 330 331 351 public BusinessList find_business(CategoryBag categoryBag, 352 FindQualifiers findQualifiers, 353 int maxRows) 354 throws UDDIException, TransportException { 355 return find_business(new Vector (), null , null , categoryBag, null , findQualifiers, maxRows); 356 } 357 358 382 public BusinessList find_business(TModelBag tModelBag, 383 FindQualifiers findQualifiers, 384 int maxRows) 385 throws UDDIException, TransportException { 386 return find_business(new Vector (), null , null, null, tModelBag, findQualifiers, maxRows); 387 } 388 389 414 public BusinessList find_business(DiscoveryURLs discoveryURLs, 415 FindQualifiers findQualifiers, 416 int maxRows) 417 throws UDDIException, TransportException { 418 return find_business(new Vector (), discoveryURLs , null, null, null, findQualifiers, maxRows); 419 } 420 421 459 public BusinessList find_business(Vector names, 460 DiscoveryURLs discoveryURLs, 461 IdentifierBag identifierBag, 462 CategoryBag categoryBag, 463 TModelBag tModelBag, 464 FindQualifiers findQualifiers, 465 int maxRows) 466 throws UDDIException, TransportException { 467 FindBusiness request = new FindBusiness(); 468 request.setNameVector(names); 469 request.setDiscoveryURLs(discoveryURLs); 470 request.setIdentifierBag(identifierBag); 471 request.setCategoryBag(categoryBag); 472 request.setTModelBag(tModelBag); 473 request.setFindQualifiers(findQualifiers); 474 if (maxRows>0) request.setMaxRows(maxRows); 475 return new BusinessList(send(request, true)); 476 } 477 478 479 506 public RelatedBusinessesList find_relatedBusinesses(String businessKey, 507 KeyedReference keyedReference, 508 FindQualifiers findQualifiers) 509 throws UDDIException, TransportException { 510 FindRelatedBusinesses request = new FindRelatedBusinesses(); 511 request.setBusinessKey(businessKey); 512 request.setKeyedReference(keyedReference); 513 request.setFindQualifiers(findQualifiers); 514 return new RelatedBusinessesList(send(request, true)); 515 516 } 517 518 542 public RelatedBusinessesList find_relatedBusinesses(String businessKey, 543 KeyedReference keyedReference, 544 FindQualifiers findQualifiers, 545 int maxRows) 546 throws UDDIException, TransportException { 547 FindRelatedBusinesses request = new FindRelatedBusinesses(); 548 request.setBusinessKey(businessKey); 549 request.setKeyedReference(keyedReference); 550 request.setFindQualifiers(findQualifiers); 551 if (maxRows>0) request.setMaxRows(maxRows); 552 return new RelatedBusinessesList(send(request, true)); 553 554 } 555 577 public ServiceList find_service(String businessKey, 578 String name, 579 FindQualifiers findQualifiers, 580 int maxRows) 581 throws UDDIException, TransportException { 582 Vector names = new Vector (); 583 names.addElement(new Name(name)); 584 return find_service(businessKey, names, null, null, findQualifiers, maxRows); 585 } 586 587 608 public ServiceList find_service(String businessKey, 609 CategoryBag categoryBag, 610 FindQualifiers findQualifiers, 611 int maxRows) 612 throws UDDIException, TransportException { 613 return find_service(businessKey, new Vector (), categoryBag, null, findQualifiers, maxRows); 614 } 615 616 635 public ServiceList find_service(String businessKey, 636 TModelBag tModelBag, 637 FindQualifiers findQualifiers, 638 int maxRows) 639 throws UDDIException, TransportException { 640 return find_service(businessKey, new Vector (), null, tModelBag, findQualifiers, maxRows); 641 } 642 643 683 public ServiceList find_service (String businessKey, 684 Vector names, 685 CategoryBag categoryBag, 686 TModelBag tModelBag, 687 FindQualifiers findQualifiers, 688 int maxRows) 689 throws UDDIException, TransportException { 690 FindService request = new FindService(); 691 request.setBusinessKey(businessKey); 692 request.setNameVector(names); 693 request.setCategoryBag(categoryBag); 694 request.setTModelBag(tModelBag); 695 request.setFindQualifiers(findQualifiers); 696 if (maxRows>0) request.setMaxRows(maxRows); 697 return new ServiceList(send(request, true)); 698 } 699 700 720 public TModelList find_tModel(String name, 721 FindQualifiers findQualifiers, 722 int maxRows) 723 throws UDDIException, TransportException { 724 return find_tModel(name, null, null, findQualifiers, maxRows); 725 } 726 727 747 public TModelList find_tModel(CategoryBag categoryBag, 748 FindQualifiers findQualifiers, 749 int maxRows) 750 throws UDDIException, TransportException { 751 return find_tModel(null, categoryBag, null, findQualifiers, maxRows); 752 } 753 754 775 public TModelList find_tModel(IdentifierBag identifierBag, 776 FindQualifiers findQualifiers, 777 int maxRows) 778 throws UDDIException, TransportException { 779 return find_tModel(null, null, identifierBag, findQualifiers, maxRows); 780 } 781 782 811 public TModelList find_tModel (String name, 812 CategoryBag categoryBag, 813 IdentifierBag identifierBag, 814 FindQualifiers findQualifiers, 815 int maxRows) 816 throws UDDIException, TransportException { 817 FindTModel request = new FindTModel(); 818 request.setName(name); 819 request.setCategoryBag(categoryBag); 820 request.setIdentifierBag(identifierBag); 821 request.setFindQualifiers(findQualifiers); 822 if (maxRows>0) request.setMaxRows(maxRows); 823 return new TModelList(send(request, true)); 824 } 825 826 827 838 public BindingDetail get_bindingDetail(String bindingKey) 839 throws UDDIException, TransportException { 840 GetBindingDetail request = new GetBindingDetail(); 841 Vector keys = new Vector (); 842 keys.addElement(bindingKey); 843 request.setBindingKeyStrings(keys); 844 return new BindingDetail(send(request, true)); 845 } 846 847 860 public BindingDetail get_bindingDetail(Vector bindingKeyStrings) 861 throws UDDIException, TransportException { 862 GetBindingDetail request = new GetBindingDetail(); 863 request.setBindingKeyStrings(bindingKeyStrings); 864 return new BindingDetail(send(request, true)); 865 } 866 867 881 public BusinessDetail get_businessDetail(String businessKey) 882 throws UDDIException, TransportException { 883 GetBusinessDetail request = new GetBusinessDetail(); 884 Vector keys = new Vector (); 885 keys.addElement(businessKey); 886 request.setBusinessKeyStrings(keys); 887 return new BusinessDetail(send(request, true)); 888 } 889 903 public BusinessDetail get_businessDetail(Vector businessKeyStrings) 904 throws UDDIException, TransportException { 905 GetBusinessDetail request = new GetBusinessDetail(); 906 request.setBusinessKeyStrings(businessKeyStrings); 907 return new BusinessDetail(send(request, true)); 908 } 909 910 928 public BusinessDetailExt get_businessDetailExt(String businessKey) 929 throws UDDIException, TransportException { 930 GetBusinessDetailExt request = new GetBusinessDetailExt(); 931 Vector keys = new Vector (); 932 keys.addElement(businessKey); 933 request.setBusinessKeyStrings(keys); 934 return new BusinessDetailExt(send(request, true)); 935 } 936 954 public BusinessDetailExt get_businessDetailExt(Vector businessKeyStrings) 955 throws UDDIException, TransportException { 956 GetBusinessDetailExt request = new GetBusinessDetailExt(); 957 request.setBusinessKeyStrings(businessKeyStrings); 958 return new BusinessDetailExt(send(request, true)); 959 } 960 961 974 public ServiceDetail get_serviceDetail(String serviceKey) 975 throws UDDIException, TransportException { 976 GetServiceDetail request = new GetServiceDetail(); 977 Vector keys = new Vector (); 978 keys.addElement(serviceKey); 979 request.setServiceKeyStrings(keys); 980 return new ServiceDetail(send(request, true)); 981 } 982 983 997 public ServiceDetail get_serviceDetail(Vector serviceKeyStrings) 998 throws UDDIException, TransportException { 999 GetServiceDetail request = new GetServiceDetail(); 1000 request.setServiceKeyStrings(serviceKeyStrings); 1001 return new ServiceDetail(send(request, true)); 1002 } 1003 1004 1018 public TModelDetail get_tModelDetail(String tModelKey) 1019 throws UDDIException, TransportException { 1020 GetTModelDetail request = new GetTModelDetail(); 1021 Vector keys = new Vector (); 1022 keys.addElement(tModelKey); 1023 request.setTModelKeyStrings(keys); 1024 return new TModelDetail(send(request, true)); 1025 } 1026 1027 1042 public TModelDetail get_tModelDetail(Vector tModelKeyStrings) 1043 throws UDDIException, TransportException { 1044 GetTModelDetail request = new GetTModelDetail(); 1045 request.setTModelKeyStrings(tModelKeyStrings); 1046 return new TModelDetail(send(request, true)); 1047 } 1048 1049 1060 public DispositionReport add_publisherAssertions (String authInfo, 1061 PublisherAssertion publisherAssertion) 1062 throws UDDIException, TransportException { 1063 Vector pubVector = new Vector (); 1064 pubVector.addElement(publisherAssertion); 1065 return add_publisherAssertions (authInfo, pubVector); 1066 } 1067 1068 1080 public DispositionReport add_publisherAssertions (String authInfo, 1081 Vector publisherAssertion) 1082 throws UDDIException, TransportException { 1083 AddPublisherAssertions request = new AddPublisherAssertions(); 1084 request.setAuthInfo(authInfo); 1085 request.setPublisherAssertionVector(publisherAssertion); 1086 return new DispositionReport(send(request, false)); 1087 1088 } 1089 1090 1106 public AssertionStatusReport get_assertionStatusReport(String authInfo, 1107 String completionStatus) 1108 throws UDDIException, TransportException { 1109 return get_assertionStatusReport(authInfo, new CompletionStatus(completionStatus)); 1110 } 1111 1112 1128 public AssertionStatusReport get_assertionStatusReport(String authInfo, 1129 CompletionStatus completionStatus) 1130 throws UDDIException, TransportException { 1131 GetAssertionStatusReport request = new GetAssertionStatusReport(); 1132 request.setAuthInfo(authInfo); 1133 request.setCompletionStatus(completionStatus); 1134 return new AssertionStatusReport(send(request, false)); 1135 } 1136 1137 1138 1150 public PublisherAssertions get_publisherAssertions(String authInfo) 1151 throws UDDIException, TransportException { 1152 GetPublisherAssertions request = new GetPublisherAssertions(); 1153 request.setAuthInfo(authInfo); 1154 return new PublisherAssertions(send(request, false)); 1155 } 1156 1157 1169 public DispositionReport delete_binding(String authInfo, 1170 String bindingKey) 1171 throws UDDIException, TransportException { 1172 DeleteBinding request = new DeleteBinding(); 1173 request.setAuthInfo(authInfo); 1174 Vector keys = new Vector (); 1175 keys.addElement(bindingKey); 1176 request.setBindingKeyStrings(keys); 1177 return new DispositionReport(send(request, false)); 1178 } 1179 1180 1193 public DispositionReport delete_binding(String authInfo, 1194 Vector bindingKeyStrings) 1195 throws UDDIException, TransportException { 1196 DeleteBinding request = new DeleteBinding(); 1197 request.setAuthInfo(authInfo); 1198 request.setBindingKeyStrings(bindingKeyStrings); 1199 return new DispositionReport(send(request, false)); 1200 } 1201 1202 1216 public DispositionReport delete_business(String authInfo, 1217 String businessKey) 1218 throws UDDIException, TransportException { 1219 DeleteBusiness request = new DeleteBusiness(); 1220 request.setAuthInfo(authInfo); 1221 Vector keys = new Vector (); 1222 keys.addElement(businessKey); 1223 request.setBusinessKeyStrings(keys); 1224 return new DispositionReport(send(request, false)); 1225 } 1226 1227 1241 public DispositionReport delete_business(String authInfo, 1242 Vector businessKeyStrings) 1243 throws UDDIException, TransportException { 1244 DeleteBusiness request = new DeleteBusiness(); 1245 request.setAuthInfo(authInfo); 1246 request.setBusinessKeyStrings(businessKeyStrings); 1247 return new DispositionReport(send(request, false)); 1248 } 1249 1250 1263 public DispositionReport delete_service(String authInfo, 1264 String serviceKey) 1265 throws UDDIException, TransportException { 1266 DeleteService request = new DeleteService(); 1267 request.setAuthInfo(authInfo); 1268 Vector keys = new Vector (); 1269 keys.addElement(serviceKey); 1270 request.setServiceKeyStrings(keys); 1271 return new DispositionReport(send(request, false)); 1272 } 1273 1274 1288 public DispositionReport delete_service(String authInfo, 1289 Vector serviceKeyStrings) 1290 throws UDDIException, TransportException { 1291 DeleteService request = new DeleteService(); 1292 request.setAuthInfo(authInfo); 1293 request.setServiceKeyStrings(serviceKeyStrings); 1294 return new DispositionReport(send(request, false)); 1295 } 1296 1297 1310 public DispositionReport delete_tModel(String authInfo, 1311 String tModelKey) 1312 throws UDDIException, TransportException { 1313 DeleteTModel request = new DeleteTModel(); 1314 request.setAuthInfo(authInfo); 1315 Vector keys = new Vector (); 1316 keys.addElement(tModelKey); 1317 request.setTModelKeyStrings(keys); 1318 return new DispositionReport(send(request, false)); 1319 } 1320 1321 1335 public DispositionReport delete_tModel(String authInfo, 1336 Vector tModelKeyStrings) 1337 throws UDDIException, TransportException { 1338 DeleteTModel request = new DeleteTModel(); 1339 request.setAuthInfo(authInfo); 1340 request.setTModelKeyStrings(tModelKeyStrings); 1341 return new DispositionReport(send(request, false)); 1342 } 1343 1344 1359 public DispositionReport delete_publisherAssertions(String authInfo, 1360 PublisherAssertion publisherAssertion) 1361 throws UDDIException, TransportException { 1362 Vector pubVector = new Vector (); 1363 pubVector.addElement(publisherAssertion); 1364 return delete_publisherAssertions(authInfo, pubVector); 1365 } 1366 1367 1382 public DispositionReport delete_publisherAssertions(String authInfo, 1383 Vector publisherAssertion) 1384 throws UDDIException, TransportException { 1385 DeletePublisherAssertions request = new DeletePublisherAssertions(); 1386 request.setAuthInfo(authInfo); 1387 request.setPublisherAssertionVector(publisherAssertion); 1388 return new DispositionReport(send(request, false)); 1389 } 1390 1391 1406 public DispositionReport discard_authToken(String authInfo) 1407 throws UDDIException, TransportException { 1408 DiscardAuthToken request = new DiscardAuthToken(); 1409 request.setAuthInfo(authInfo); 1410 return new DispositionReport(send(request, false)); 1411 } 1412 1427 public DispositionReport discard_authToken(AuthInfo authInfo) 1428 throws UDDIException, TransportException { 1429 DiscardAuthToken request = new DiscardAuthToken(); 1430 request.setAuthInfo(authInfo); 1431 return new DispositionReport(send(request, false)); 1432 } 1433 1434 1453 public AuthToken get_authToken(String userid, 1454 String cred) 1455 throws UDDIException, TransportException { 1456 GetAuthToken request = new GetAuthToken(); 1457 request.setUserID(userid); 1458 request.setCred(cred); 1459 return new AuthToken(send(request, false)); 1460 } 1461 1462 1463 1478 public RegisteredInfo get_registeredInfo(String authInfo) 1479 throws UDDIException, TransportException { 1480 GetRegisteredInfo request = new GetRegisteredInfo(); 1481 request.setAuthInfo(authInfo); 1482 return new RegisteredInfo(send(request, false)); 1483 } 1484 1485 1503 public BindingDetail save_binding(String authInfo, 1504 Vector bindingTemplates) 1505 throws UDDIException, TransportException { 1506 SaveBinding request = new SaveBinding(); 1507 request.setAuthInfo(authInfo); 1508 request.setBindingTemplateVector(bindingTemplates); 1509 return new BindingDetail(send(request, false)); 1510 } 1511 1512 1530 public BusinessDetail save_business(String authInfo, 1531 Vector businessEntities) 1532 throws UDDIException, TransportException { 1533 SaveBusiness request = new SaveBusiness(); 1534 request.setAuthInfo(authInfo); 1535 request.setBusinessEntityVector(businessEntities); 1536 return new BusinessDetail(send(request, false)); 1537 } 1538 1563 public BusinessDetail save_business(String authInfo, 1564 UploadRegister[] uploadRegisters) 1565 throws UDDIException, TransportException { 1566 SaveBusiness request = new SaveBusiness(); 1567 Vector keys = new Vector ( Arrays.asList(uploadRegisters) ); 1568 request.setAuthInfo(authInfo); 1569 request.setUploadRegisterVector(keys); 1570 return new BusinessDetail(send(request, false)); 1571 } 1572 1573 1574 1589 public ServiceDetail save_service(String authInfo, 1590 Vector businessServices) 1591 throws UDDIException, TransportException { 1592 SaveService request = new SaveService(); 1593 request.setAuthInfo(authInfo); 1594 request.setBusinessServiceVector(businessServices); 1595 return new ServiceDetail(send(request, false)); 1596 } 1597 1598 1611 public TModelDetail save_tModel(String authInfo, 1612 Vector tModels) 1613 throws UDDIException, TransportException { 1614 SaveTModel request = new SaveTModel(); 1615 request.setAuthInfo(authInfo); 1616 request.setTModelVector(tModels); 1617 return new TModelDetail(send(request, false)); 1618 } 1619 1620 1640 public TModelDetail save_tModel(String authInfo, 1641 UploadRegister[] uploadRegisters) 1642 throws UDDIException, TransportException { 1643 SaveTModel request = new SaveTModel(); 1644 request.setAuthInfo(authInfo); 1645 Vector keys = new Vector ( Arrays.asList(uploadRegisters) ); 1646 request.setUploadRegisterVector(keys); 1647 return new TModelDetail(send(request, false)); 1648 } 1649 1666 public PublisherAssertions set_publisherAssertions (String authInfo, 1667 PublisherAssertion pub) 1668 throws UDDIException, TransportException { 1669 Vector pubVector = new Vector (); 1670 pubVector.addElement(pub); 1671 return set_publisherAssertions(authInfo,pubVector); 1672 } 1673 1674 1692 public PublisherAssertions set_publisherAssertions (String authInfo, 1693 Vector publisherAssertion) 1694 throws UDDIException, TransportException { 1695 SetPublisherAssertions request = new SetPublisherAssertions(); 1696 request.setAuthInfo(authInfo); 1697 request.setPublisherAssertionVector(publisherAssertion); 1698 return new PublisherAssertions(send(request, false)); 1699 } 1700 1701 1715 public DispositionReport validate_values_businessEntity(Vector businessEntity) 1716 throws UDDIException, TransportException { 1717 ValidateValues request = new ValidateValues(); 1718 request.setBusinessEntityVector(businessEntity); 1719 return new DispositionReport(send(request, true)); 1720 } 1721 1722 1736 public DispositionReport validate_values_businessService(Vector businessService) 1737 throws UDDIException, TransportException { 1738 ValidateValues request = new ValidateValues(); 1739 request.setBusinessServiceVector(businessService); 1740 return new DispositionReport(send(request, true)); 1741 } 1742 1743 1756 1757 public DispositionReport validate_values_tModel(Vector tModel) 1758 throws UDDIException, TransportException { 1759 ValidateValues request = new ValidateValues(); 1760 request.setTModelVector(tModel); 1761 return new DispositionReport(send(request, true)); 1762 } 1763 1764 1765 1773 public Element send(UDDIElement el, boolean inquiry) throws TransportException { 1774 1775 Element result = null; 1776 1777 if (inquiry) { 1778 result = transportFactory.getTransport().send(el, inquiryURL); 1779 } else { 1780 result = transportFactory.getTransport().send(el, publishURL); 1781 } 1782 return result; 1783 } 1784 1785 1795 public Element send(Element el, boolean inquiry) throws TransportException { 1796 1797 Element result = null; 1798 1799 if (inquiry) { 1800 result = transportFactory.getTransport().send(el, inquiryURL); 1801 } else { 1802 result = transportFactory.getTransport().send(el, publishURL); 1803 } 1804 return result; 1805 } 1806 1807} 1808 | Popular Tags |