Ask a Question related to ASP.NET Web Services, Design and Development.
-
cwbp17 #1
Web Service Array method
How do I use the Web Service array method below and display the results to a
gridview on the client?
using C#:
My Web Service method:
[WebMethod]
//[XmlInclude(typeof(empname))]
public ArrayList GetData(ArrayList data)
{
ArrayList newList = new ArrayList();
OracleConnection oraConn = new OracleConnection();
oraConn.ConnectionString = "Data Source=localhost;User
ID=scott;Password=tiger";
string select = "select ename from emp where JOB='MANAGER'";
OracleCommand cmd = new OracleCommand(select, oraConn);
OracleDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
object[] values = new object[reader.FieldCount];
reader.GetValues(values);
newList.Add(values);
}
return newList;
}
Any suggestions would be appreciated.
Also, if there are simple examples using arrays in a web service method that
would be appreciated.
Thanks.
bebop
cwbp17 Guest
-
Returning XML from web service method
I have web service method that returns XML similar to what is shown below. The actual return value from the web service method is an XmlDocument: ... -
Prototype Array method being called by Combo box
I?m reasonably new to AS so please excuse me if I?m doing anything silly All the code I have in frame 1 is below on stage I have a combo box... -
Authentication method for Web Service
Hi.. I am currently writing a manager that creates Windows Schedules remotely via. web services. I have just a few questions. What is the best way... -
[PHP] array method attributes (OO)
Hello, This is a reply to an e-mail that you wrote on Fri, 8 Aug 2003 at 15:54, lines prefixed by '>' were originally written by you.... -
array method attributes (OO)
I wish to pass a session variable into an object and have it available as an attribute. I have what I thought I needed below as a code segment but...



Reply With Quote

