對了,版主。。
發(fā)表時間:2023-07-17 來源:明輝站整理相關軟件相關文章人氣:
[摘要]有沒有客戶端soap調(diào)用服務端操作數(shù)據(jù)庫方法的例子。也就是說如果客戶段soap調(diào)用服務端的 getAllRecord()服務端的getAllRecord(): public Collection g...
有沒有客戶端soap調(diào)用服務端操作數(shù)據(jù)庫方法的例子。
也就是說如果客戶段soap調(diào)用服務端的 getAllRecord()
服務端的getAllRecord():
public Collection getAllRecord()
{
Collection coll=null;
..
Stringsql="select * from TableName";
//addthe record to coll
return coll;
}
1。如果TableName表中有幾萬條數(shù)據(jù),數(shù)據(jù)傳輸會不會有問題?
2。是把數(shù)據(jù)作為一個對象,象上面這樣(寫到一個集合類里)好,
還是把數(shù)據(jù)在服務端封裝成一個xml文檔好?
如:
<? xml version="1.0" ?>
<results>
<result id="1">
<name>tom</name>
<email>tom@tom.com</email>
...
</result>
...
</results>
3.這樣傳輸,如果數(shù)據(jù)量很大,會不會丟數(shù)據(jù)?
那里有沒有這種現(xiàn)成的例子。我找了好久也沒找到??