.Net 2.0 WebService传递参数的问题
using System; [WebService(Namespace = "http://tempuri.org/")] public class Service : System.Web.Services.WebService ??????? //Uncomment the following line if using designed components ??? [WebMethod] 如果红字部分打开,则是采用RPC方式传递参数,缺省的BCB就是这样处理的,否则是采用Document|Literal 方式传递,BCB自动生成的代码要加上InvRegistry()->RegisterInvokeOptions(__interfaceTypeinfo(ServiceSoap),ioDocument);才可以正确传递参数。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |