webmethod

    -1热度

    1回答

    我有一个webservices奇怪的问题。 有一个WebMethod如下: public string GenerateUrl(string webserviceId,string webmethodId, string versionId) { return @"C:\" + webserviceId + @"\" + webmethodId + @"\Versions\V" + v

    0热度

    1回答

    我必须同时处理不同的重型数据库操作。所以我决定在我的ASP.NET网站中对webmethod进行异步调用。 一切工作正常,除了每个调用都在同一个线程中处理,这意味着它不处理并行,而是串行。 我WEBMETHOD正在寻找这样的: [WebMethod] public static string Work(string id) { Thread.Sleep(3000); ret

    1热度

    1回答

    我在这里做错了什么? 我得到这个错误:[ArgumentException:未知的Web方法Test2。参数名称:methodName] System.Web.Script.Services.WebServiceData.GetMethodData(String methodName)+540418 System.Web.Handlers.ScriptModule.OnPostAcquireReq

    9热度

    1回答

    我想了解web api和一些关于web方法的新闻。我听说我们应该停止使用几种来源的网络方法。另外,如果Web方法不再被使用,Web API是继承者吗?

    -3热度

    4回答

    我有一个网址: http://localhost:17080/SMSService/Getsms.php?to=100001&body=6260575535299&from=09350000008 ,我想要得到的“到”,“身体”,“从”的值。 我怎么能在php中做到这一点? 非常感谢

    3热度

    2回答

    我试图使用serializeArray()将某些表单值序列化为json对象,然后将表单值POST到服务中的WebMethod。 <script type="text/javascript"> $(document).ready(function() { $("#btn").click(function() { var foobar = $(this).close

    4热度

    3回答

    我发现了错误等 一个对象引用需要非静态字段,方法或 财产“System.Web.UI.Page.Session.get” 你能建议我在会议上该问题中恢复。 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.

    -1热度

    1回答

    我有一个web服务从数据库获取byte []的列表。我希望能够返回所有的值。如何返回一个字节[]。 [WebMethod] public List<fgrTemplate> StudentVerifications() { List<fgrTemplate> listOfFgrTemp = new List<fgrTemplate>(); cn.

    0热度

    1回答

    我有一个asmx web服务正在被客户使用。客户端已将该服务作为Visual Studio中的服务引用导入。 现在我需要将响应对象GetUnitDescription_Request更改为新的客户端的索引额外属性,但受到冲击的客户端仍然可以工作。 Public Class GetUnits_Result property Id() property Name() 'This a

    2热度

    1回答

    我最近已经离开Ajax.dll并开始使用WebMethods。我读过共享函数是危险的,并且已经阅读了他们为什么。我想知道是否有经验的人使用webmethod可以告诉我是否有任何基于会话调用用户特定数据的危险,并将它返回给错误的用户,因为WebMethod需要共享。我希望不会,但它一直在窃听我。 <WebMethod(EnableSession:=True)> _ <ScriptMethod()>