有沒有客戶端soap調(diào)用服務(wù)端操作數(shù)據(jù)庫(kù)方法的例子。 也就是說如果客戶段soap調(diào)用服務(wù)端的 getAllRecord()
服務(wù)端的getAllRecord(): public Collection getAllRecord() { Collection coll=null; .. Stringsql="select * from TableName";
//addthe record to coll
return coll; }
1。如果TableName表中有幾萬(wàn)條數(shù)據(jù),數(shù)據(jù)傳輸會(huì)不會(huì)有問題? 2。是把數(shù)據(jù)作為一個(gè)對(duì)象,象上面這樣(寫到一個(gè)集合類里)好, 還是把數(shù)據(jù)在服務(wù)端封裝成一個(gè)xml文檔好? 如: <? xml version="1.0" ?> <results> <result id="1"> <name>tom</name> <email>tom@tom.com</email> ... </result>
... </results> 3.這樣傳輸,如果數(shù)據(jù)量很大,會(huì)不會(huì)丟數(shù)據(jù)?
那里有沒有這種現(xiàn)成的例子。我找了好久也沒找到??
|
溫馨提示:喜歡本站的話,請(qǐng)收藏一下本站!