亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 13.txt

?? 《JAVA WEB服務應用開發詳解》代碼
?? TXT
字號:
例程13-1
01 import com.ibm.uddi.*;
02 import com.ibm.uddi.datatype.business.*;
03 import com.ibm.uddi.response.*;
04 import com.ibm.uddi.client.*;
05 import org.w3c.dom.Element;
06 import java.util.Vector;
07 import java.util.Properties;
08 
09 /**
10  * Very simple use of UDDI API. Invoke a inquiry API to
11  * find all businesses starting with "S". 
12  */
13 public class FindBusinessExample {
14    public static void main (String args[]) {
15 
16       FindBusinessExample app = new FindBusinessExample();
17       app.run();
18       System.exit(0);
19    }
20 
21    public void run() {
22       // Construct a UDDIProxy object. Enables SSL support
23       UDDIProxy proxy = new UDDIProxy();
24 
25       try {
26          // Select the desired UDDI server node
27 
28          // The following values point to the IBM UDDI test site
29    proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/testregistry/inquiryapi");
30          // proxy.setPublishURL(
31          //    "https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi");
32          // The following values point to the IBM UDDI test site
33          // proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/inquiryapi");
34          // proxy.setPublishURL(
35 			//          "https://www-3.ibm.com/services/uddi/protect/publishapi");
36          // The following values point to the Microsoft UDDI test site
37          // proxy.setInquiryURL("http://test.uddi.microsoft.com/inquire");
38          // proxy.setPublishURL("https://test.uddi.microsoft.com/publish");
39 
40          // The following values point to the Microsoft UDDI official site
41          // proxy.setInquiryURL("http://uddi.microsoft.com/inquire");
42          // proxy.setPublishURL("https://uddi.microsoft.com/publish");
43 
44          // The following values for a locally installed test server
45          // proxy.setInquiryURL("http://localhost:8080/services/uddi/servlet/uddi");
46          // proxy.setInquiryURL("http://localhost:8080/services/uddi/servlet/uddi");
47 
48       } catch (Exception e) {
49          e.printStackTrace();
50       }
51       try {
52 
53          // Find businesses who's name starts with S
54          BusinessList bl = proxy.find_business("S", null, 0);
55 
56          Vector businessInfoVector  = bl.getBusinessInfos().getBusinessInfoVector();
57          for (int i = 0; i < businessInfoVector.size(); i++) {
58             BusinessInfo businessInfo = 
59 						(BusinessInfo)businessInfoVector.elementAt(i);
60             // Print name for each business
61             System.out.println(businessInfo.getNameString());
62          }
63 
64       // Handle possible errors
65       } catch (UDDIException e) {
66          DispositionReport dr = e.getDispositionReport();
67          if (dr!=null) {
68             System.out.println("UDDIException faultCode:" + e.getFaultCode() +
69                                "\n operator:" + dr.getOperator() +
70                                "\n generic:"  + dr.getGeneric() +
71                                "\n errno:"    + dr.getErrno() +
72                                "\n errCode:"  + dr.getErrCode() +
73                                "\n errInfoText:" + dr.getErrInfoText());
74          }
75          e.printStackTrace();
76 
77       // Catch any other exception that may occur
78       } catch (Exception e) {
79          e.printStackTrace();
80       }
81    }
82 }
例程13-2
001 import com.ibm.uddi.*;
002 import com.ibm.uddi.datatype.business.*;
003 import com.ibm.uddi.response.*;
004 import com.ibm.uddi.client.*;
005 import org.w3c.dom.Element;
006 import java.util.Vector;
007 import java.util.Properties;
008 
009 /**
010  * Sample code that exercises the publish API. Attempts
011  * to save a business named 'Sample Business'.
012  * 
013  * <OL>
014  * <LI>Sets up a UDDIProxy object
015  * <LI>Requests an authorization token
016  * <LI>Saves a business named "Sample Business"
017  * <LI>Lists businesses starting with S. The new
018  *    business should be in the list.
019  * </OL>
020  */
021 public class SaveBusinessExample {
022    public static void main (String args[]) {
023   /*****************************************************************/
024       /* Comment out the following lines to disable SSL and HTTPS support
025        * or if using a different SSL provider.
026        * JSSE must be in the classpath to use or compile these lines.
027        */
028       System.setProperty("java.protocol.handler.pkgs",
029                          "com.ibm.net.ssl.internal.www.protocol");
030       java.security.Security.addProvider(new com.ibm.jsse.JSSEProvider());
031    /*****************************************************************/
032 
033       SaveBusinessExample app = new SaveBusinessExample();
034       app.run();
035       System.exit(0);
036    }
037 
038    public void run() {
039       // Construct a UDDIProxy object
040       UDDIProxy proxy = new UDDIProxy();
041 
042       try {
043          // Select the desired UDDI server node
044 
045          // The following values point to the IBM UDDI test site
046   		 proxy.setInquiryURL(
047          		"http://www-3.ibm.com/services/uddi/testregistry/inquiryapi");
048			 proxy.setPublishURL(
049				 "https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi");
050          // The following values point to the IBM UDDI official site
051          // proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/inquiryapi");
052          // proxy.setPublishURL(
053          //          "https://www-3.ibm.com/services/uddi/protect/publishapi");
054          // The following values point to the Microsoft UDDI test site
055          // proxy.setInquiryURL("http://test.uddi.microsoft.com/inquire");
056          // proxy.setPublishURL("https://test.uddi.microsoft.com/publish");
057 
058          // The following values point to the Microsoft UDDI official site
059          // proxy.setInquiryURL("http://uddi.microsoft.com/inquire");
060          // proxy.setPublishURL("https://uddi.microsoft.com/publish");
061 
062          // The following values for a locally installed test server
063          // proxy.setInquiryURL("http://localhost:8080/services/uddi/servlet/uddi");
064          // proxy.setInquiryURL("http://localhost:8080/services/uddi/servlet/uddi");
065       } catch (Exception e) {
066          e.printStackTrace();
067       }
068       try {
069 
070          // Get an authorization token
071          System.out.println("\nGet authtoken");
072          
073          // Pass in userid and password registered at the UDDI site
074          AuthToken token = proxy.get_authToken("userid",
075                                                "password" );
076 
077          System.out.println("Returned authToken:" + token.getAuthInfoString());
078 
079          System.out.println("\nSave 'Sample business'");
080 
081          // Create minimum required data objects
082          Vector entities = new Vector();
083 
084          // Create a new business entity using required elements constructor
085          // Name is the business name. BusinessKey must be "" to save a new
086          // business
087          BusinessEntity be = new BusinessEntity("", "Sample Business");
088          entities.addElement(be);
089 
090          // Save business
091          BusinessDetail bd = proxy.save_business(token.getAuthInfoString(),entities);
092 
093          // Process returned BusinessDetail object
094          Vector businessEntities = bd.getBusinessEntityVector();
095          BusinessEntity returnedBusinessEntity = 
096          			(BusinessEntity)(businessEntities.elementAt(0));
097          System.out.println("Returned businessKey:" +
098          			 returnedBusinessEntity.getBusinessKey());
099 
100          System.out.println(
101          		"\nListing businesses starting with S after we publish");
102 
103          // Find businesses who's name starts with S
104          BusinessList bl = proxy.find_business("S", null, 0);
105 
106         Vector businessInfoVector  = bl.getBusinessInfos().getBusinessInfoVector();
107          for (int i = 0; i < businessInfoVector.size(); i++) {
108          BusinessInfo businessInfo = (BusinessInfo)businessInfoVector.elementAt(i);
109             System.out.println(businessInfo.getNameString());
110          }
111 
112       // Handle possible errors
113       } catch (UDDIException e) {
114          DispositionReport dr = e.getDispositionReport();
115          if (dr!=null) {
116             System.out.println("UDDIException faultCode:" + e.getFaultCode() +
117                                "\n operator:" + dr.getOperator() +
118                                "\n generic:"  + dr.getGeneric() +
119                                "\n errno:"    + dr.getErrno() +
120                                "\n errCode:"  + dr.getErrCode() +
121                                "\n errInfoText:" + dr.getErrInfoText());
122          }
123          e.printStackTrace();
124 
125       // Catch any other exception that may occur
126       } catch (Exception e) {
127          e.printStackTrace();
128       }
129    }
130 }
例程13-3
001 import com.ibm.uddi.*;
002 import com.ibm.uddi.datatype.business.*;
003 import com.ibm.uddi.response.*;
004 import com.ibm.uddi.client.*;
005 import org.w3c.dom.Element;
006 import java.util.Vector;
007 import java.util.Properties;
008 
009 /**
010  * Sample code that exercises the publish API. Attempts
011  * to delete a business named 'Sample Business'. 
012  * <ol>
013  * <li>Performs an inquiry to find this business
014  * <li>get_authToken to login to server
015  * <li>delete any businesses with key found in step 1.
016  * </ol>
017  */
018 public class DeleteBusinessExample {
019    public static void main (String args[]) {
020   /*****************************************************************/
021       /* Comment out the following lines to disable SSL and HTTPS support
022        * or if using a different SSL provider.
023        * JSSE must be in the classpath to use or compile these lines.
024        */
025       System.setProperty("java.protocol.handler.pkgs",
026                          "com.ibm.net.ssl.internal.www.protocol");
027       java.security.Security.addProvider(new com.ibm.jsse.JSSEProvider());
028    /*****************************************************************/
029 
030       DeleteBusinessExample app = new DeleteBusinessExample();
031       app.run();
032       System.exit(0);
033    }
034 
035    public void run() {
036       // Construct a UDDIProxy object. Enables SSL support
037       UDDIProxy proxy = new UDDIProxy();
038 
039       try {
040          // Select the desired UDDI server node
041 		// The following values point to the IBM UDDI test site
042          proxy.setInquiryURL(
043          		"http://www-3.ibm.com/services/uddi/testregistry/inquiryapi");
044          proxy.setPublishURL(
045 			"https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi");
046          // The following values point to the IBM UDDI official site
047          // proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/inquiryapi");
048          // proxy.setPublishURL(
049			 //       "https://www-3.ibm.com/services/uddi/protect/publishapi");
050          // The following values point to the Microsoft UDDI test site
051          // proxy.setInquiryURL("http://test.uddi.microsoft.com/inquire");
052          // proxy.setPublishURL("https://test.uddi.microsoft.com/publish");
053 
054          // The following values point to the Microsoft UDDI official site
055          // proxy.setInquiryURL("http://uddi.microsoft.com/inquire");
056          // proxy.setPublishURL("https://uddi.microsoft.com/publish");
057 
058          // The following values for a locally installed test server
059          // proxy.setInquiryURL("http://localhost:8080/services/uddi/servlet/uddi");
060          // proxy.setInquiryURL("http://localhost:8080/services/uddi/servlet/uddi");
061 
062       } catch (Exception e) {
063          e.printStackTrace();
064       }
065       try {
066 
067          // Get an authorization token
068          System.out.println("\nGet authtoken");
069          
070          // Pass in userid and password registered at the UDDI site
071          AuthToken token = proxy.get_authToken("userid",
072                                                "password" );
073 
074          System.out.println("Returned authToken:" + token.getAuthInfoString());
075 
076          System.out.println("Search for 'Sample business' to delete");
077 
078          // Find businesses starting with 'Sample business'
079          BusinessList bl = proxy.find_business("Sample business", null, 0);
080 
081         Vector businessInfoVector  = bl.getBusinessInfos().getBusinessInfoVector();
082 
083          // Try to delete any businesses with this name. Multiple businesses with the 
084          // same name may have been created by different userids. Delete will fail for 
085          // businesses not created by this id
086          for (int i = 0; i < businessInfoVector.size(); i++) {
087             BusinessInfo bi = (BusinessInfo)businessInfoVector.elementAt(i);
088             System.out.println("Found business key:" + bi.getBusinessKey());
089 
090             // Have found the matching business key, delete using the authToken
091            DispositionReport dr = proxy.delete_business(token.getAuthInfoString(),
092                                                      bi.getBusinessKey());
093 
094             if (dr.success()) {
095                System.out.println("Business successfully deleted");
096             } else {
097                System.out.println("Errno:" + dr.getErrno() +
098                                   "\n ErrCode:" + dr.getErrCode() +
099                                   "\n ErrText:" + dr.getErrInfoText() );
100             }
101          }
102 
103       // Handle possible errors
104       } catch (UDDIException e) {
105          DispositionReport dr = e.getDispositionReport();
106          if (dr!=null) {
107             System.out.println("UDDIException faultCode:" + e.getFaultCode() +
108                                "\n operator:" + dr.getOperator() +
109                                "\n generic:"  + dr.getGeneric() +
110                                "\n errno:"    + dr.getErrno() +
111                                "\n errCode:"  + dr.getErrCode() +
112                                "\n errInfoText:" + dr.getErrInfoText());
113          }
114          e.printStackTrace();
115 
116       // Catch any other exception that may occur
117       } catch (Exception e) {
118          e.printStackTrace();
119       }
120    }
121 }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久婷婷国产| 国产精选一区二区三区| 欧美伊人久久久久久久久影院| 国产精品欧美久久久久无广告| 福利电影一区二区三区| 国产亚洲欧美日韩俺去了| 成人性生交大片免费| 中文字幕一区二区三| 91精彩视频在线| 丝袜诱惑制服诱惑色一区在线观看| 欧美一区二区三区在线| 国产一区二区不卡在线| 国产精品国产三级国产aⅴ中文| 色婷婷久久久亚洲一区二区三区 | 色婷婷一区二区三区四区| 一区二区三区四区五区视频在线观看| 欧美性欧美巨大黑白大战| 日av在线不卡| 亚洲欧洲美洲综合色网| 在线电影欧美成精品| 国产综合色精品一区二区三区| 国产精品美女www爽爽爽| 欧美在线999| 国内精品久久久久影院薰衣草| 国产精品久久久久国产精品日日| 在线观看网站黄不卡| 精品系列免费在线观看| 成人免费一区二区三区在线观看| 欧美色倩网站大全免费| 国产91在线看| 偷拍日韩校园综合在线| 国产精品女同一区二区三区| 欧美乱妇23p| 成人av在线影院| 免费观看在线综合色| 亚洲视频网在线直播| 精品国产免费人成在线观看| 色天天综合色天天久久| 国产一区二区导航在线播放| 亚洲一区在线观看免费| 亚洲国产精品国自产拍av| 精品视频1区2区3区| 高清视频一区二区| 六月丁香综合在线视频| 一区二区三区毛片| 国产精品污污网站在线观看| 日韩一区二区三| 91久久国产最好的精华液| 国产成人啪免费观看软件| 日韩成人av影视| 亚洲精品欧美在线| 国产三级一区二区| 精品久久久久99| 欧美日韩一区二区三区视频| 99久久精品免费看| 国产一区二区女| 免费观看日韩电影| 亚洲国产成人porn| 艳妇臀荡乳欲伦亚洲一区| 国产精品女人毛片| 国产婷婷色一区二区三区| 欧美一区二区三区小说| 欧美日韩国产综合一区二区| 91麻豆自制传媒国产之光| 成人午夜电影小说| 国产91高潮流白浆在线麻豆| 久久99国产精品久久99| 日本亚洲一区二区| 天天影视色香欲综合网老头| 亚洲国产sm捆绑调教视频| 亚洲女同一区二区| 国产精品乱码久久久久久| 欧美激情一区在线| 国产日韩欧美制服另类| 精品少妇一区二区三区| 精品免费日韩av| 久久一日本道色综合| 久久婷婷国产综合国色天香 | 久久久青草青青国产亚洲免观| 日韩亚洲国产中文字幕欧美| 日韩情涩欧美日韩视频| 日韩一区二区三| 日韩视频在线你懂得| 精品播放一区二区| 久久精品视频一区| 日韩美女视频一区二区| 亚洲精品国产a久久久久久| 亚洲国产婷婷综合在线精品| 亚洲va欧美va国产va天堂影院| 亚洲gay无套男同| 日产欧产美韩系列久久99| 老司机午夜精品| 国产·精品毛片| 91福利精品视频| 在线不卡欧美精品一区二区三区| 日韩一区二区三区免费观看| 精品福利二区三区| 国产精品国产三级国产aⅴ中文 | 亚洲小说欧美激情另类| 石原莉奈在线亚洲二区| 国产呦萝稀缺另类资源| 成人理论电影网| 欧美日韩另类一区| 精品久久久久久久久久久院品网| 欧美国产禁国产网站cc| 亚洲影院理伦片| 国产一区二区伦理片| 91美女福利视频| 精品久久久久一区二区国产| 中文字幕成人网| 丝袜诱惑亚洲看片| 成人a级免费电影| 欧美精品自拍偷拍| 中文字幕欧美国产| 亚洲一区二区三区视频在线 | 成人午夜免费视频| 欧美日韩三级一区| 欧美韩日一区二区三区四区| 亚洲综合免费观看高清在线观看| 久久精品久久精品| 色婷婷香蕉在线一区二区| 日韩午夜在线观看视频| 日韩理论片在线| 精品制服美女丁香| 精品视频123区在线观看| 国产午夜精品在线观看| 天天综合网天天综合色| 成人激情免费网站| 欧美成人精品1314www| 亚洲精品乱码久久久久久日本蜜臀| 免费成人性网站| 在线一区二区三区四区| 久久久国产午夜精品| 日日骚欧美日韩| 91香蕉视频黄| 国产欧美日韩在线观看| 日韩国产在线一| 在线观看视频一区| 国产精品女上位| 国产精品一级二级三级| 欧美日本乱大交xxxxx| 中文字幕不卡的av| 久久福利资源站| 欧美猛男男办公室激情| 中文字幕一区二区三区乱码在线| 久久99精品久久久久久| 欧美日韩国产欧美日美国产精品| 综合欧美亚洲日本| 丰满白嫩尤物一区二区| 久久久影院官网| 久久精品国产99| 日韩精品中文字幕一区二区三区| 亚洲五月六月丁香激情| 色婷婷精品久久二区二区蜜臂av| 国产精品区一区二区三区| 国产精品88888| 久久精品一区八戒影视| 国产精选一区二区三区| 欧美精品一区二区蜜臀亚洲| 欧美aaa在线| 欧美一区二区三区视频在线| 日韩高清一级片| 7777女厕盗摄久久久| 亚洲午夜精品网| 欧美日韩国产高清一区| 亚洲成人av资源| 制服丝袜中文字幕一区| 日韩经典一区二区| 日韩精品一区二区三区三区免费 | 色综合久久综合| 成人免费一区二区三区在线观看| 99热这里都是精品| 亚洲免费电影在线| 色噜噜狠狠色综合欧洲selulu| 亚洲欧美日韩中文播放| 欧洲精品视频在线观看| 亚洲va欧美va国产va天堂影院| 欧美疯狂性受xxxxx喷水图片| 丝袜美腿成人在线| 日韩视频在线你懂得| 国产在线播精品第三| 欧美国产禁国产网站cc| 一本一道久久a久久精品综合蜜臀| 亚洲欧美日韩国产另类专区| 欧美视频你懂的| 日韩制服丝袜av| 久久久九九九九| 色综合久久久网| 亚洲444eee在线观看| 精品少妇一区二区三区视频免付费| 国产尤物一区二区| 亚洲视频 欧洲视频| 欧美肥妇bbw| 国产成人精品免费视频网站| 18欧美乱大交hd1984| 91精品国产欧美一区二区| 国产高清一区日本| 亚洲一卡二卡三卡四卡| 精品国产乱码久久久久久久久| 成人黄色片在线观看|