View Full Version : سوال: بازگردانی یک لیست داده از یک تابع در web service به صورت rest
arman_Delta2002
شنبه 29 آذر 1393, 17:05 عصر
سلام وب سرویس های rest داده ها رو به صورت ارایه بر میگردونن ایا راهی هست که یه تابع یه لیست داده برگردونه ؟
این تابع تو وب سرویسم هست
public List<tb_Clob_Login> SelectAll_tb_Clob_Login(Boolean Showing)
{
List<tb_Clob_Login> _result = new List<tb_Clob_Login>();
tb_Clob_Login_OP tb_ClobSportName_Temp = new tb_Clob_Login_OP();
_result = tb_ClobSportName_Temp.SelectALL_tb_Clob_Login(Show ing);
return _result;
}
ولی در حالت فراخانی بجای لیست یه ارایه برمیگردونه !
plus
شنبه 29 آذر 1393, 17:55 عصر
اگه شما خودتون آرایه رو بعد از دریافت به یک لیست بدین، مشکلی پیش میاد؟
arman_Delta2002
شنبه 29 آذر 1393, 18:02 عصر
اگه شما خودتون آرایه رو بعد از دریافت به یک لیست بدین، مشکلی پیش میاد؟
مشکلم اینه که چون وب سرویسم روی هاسته نمیتونم دیباگ کنم فقط یه مشت خطا پشت هم میده که تابع درست اجرا نمیشه
و داده ای رو برنمیگردونه !
Exception:
System.Net.WebException: Loading...
Exception:
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
An unhandled exception occured.
Exception:
System.Web.Services.Protocols.SoapException: Loading...
Unhandled Exception:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> The system cannot find the file specified
فکر کنم فهمیدم مشکل از Could not open a connection to SQL Server باشه !
arman_Delta2002
شنبه 29 آذر 1393, 18:18 عصر
بله درسته تو کانکشن استرینگم استباه کرده بودم
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.