由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - webservice 只能定义一个函数吗?
相关主题
how to get reference.vb file?BUG! Re: xmldocument and webservice
visual studio为什么不加eclipse修改建议的功能新问题
WebMethod timeoutHow to change web method's name?
大侠帮忙:哪里有用Webservice技术的网站A permission problem?
Anyone has used MapPoint.net?secure webservice
Add Web Reference Questions谁熟dotnet 的webservice?
xmldocument and webservice questionMake some small money with your asp.net website
Lousy WSDL?网页制作的最高境界
相关话题的讨论汇总
话题: 函数话题: string话题: webservice话题: webmethod话题: productid
进入DotNet版参与讨论
1 (共1页)
S****e
发帖数: 10596
1
在asmx文件里的webmethod
定义两个函数
第一个函数f1没问题
第二个函数f2怎么也不工作
当把第一个f1删掉,f2就工作了
请问怎么回事
代码简要如下
namespace Samples.AspNet
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class ServerTime : System.Web.Services.WebService
{
[WebMethod]
public string f1(string productID )
{。。。 }
public string f2(string productID )
{。。。}
v******n
发帖数: 421
2
第二个没有[WebMethod]?

【在 S****e 的大作中提到】
: 在asmx文件里的webmethod
: 定义两个函数
: 第一个函数f1没问题
: 第二个函数f2怎么也不工作
: 当把第一个f1删掉,f2就工作了
: 请问怎么回事
: 代码简要如下
: namespace Samples.AspNet
: {
: [WebService(Namespace = "http://tempuri.org/")]

S****e
发帖数: 10596
3
加上之后好了!
多谢!

【在 v******n 的大作中提到】
: 第二个没有[WebMethod]?
1 (共1页)
进入DotNet版参与讨论
相关主题
网页制作的最高境界Anyone has used MapPoint.net?
我们公司在招人Jr & Sr Developer (在宾州KOP附近)Add Web Reference Questions
请问实现关注计数功能xmldocument and webservice question
分享一个今天遇到的.net调用mongodb的问题 Lousy WSDL?
how to get reference.vb file?BUG! Re: xmldocument and webservice
visual studio为什么不加eclipse修改建议的功能新问题
WebMethod timeoutHow to change web method's name?
大侠帮忙:哪里有用Webservice技术的网站A permission problem?
相关话题的讨论汇总
话题: 函数话题: string话题: webservice话题: webmethod话题: productid