Does anyone who knows which way is more efficient between making one long webmethod and making 20 similar webmethods?
"tiffany" <[email protected]> Thu, 11 Oct 2007 11:26:54 +0900
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | korea |
| Message-ID | <[email protected]> |
Does anyone who knows which way is more efficient between making one long
webmethod and making 20 similar webmethods? and both way call another one
com+ search engine.
if make 20 similar webmethods, those call same one function.
Which way is more efficient ?
ex:
[WebMethod]
[return: XmlElement("MusicList")]
public ListMusic getMusic(string id, int count)
{
ListMusic person = new ListMusic();
Header header = new Header();
header.resultCode = "000";
header.resultMessage = "";
.....
Music[] musics = new Music[count];
}
[WebMethod]
[return: XmlElement("MusicList2")]
public ListPhoto getphoto(string id, int count)
{
Listphoto person = new Listphoto();
Header header = new Header();
header.resultCode = "000";
header.resultMessage = "";
photo[] photos = new photo[count];
.....
}
...
e-mail : [email protected]