人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

May 15, 2006

Web Method不能overloading

Filed under: 经验积累

WSDL不能区分两个名字一样,参数不同的web method

解决方案
1.不要这样搞
2.
[WebMethod (MessageName="HelloWorld")]
public string HelloWorld()
{
 return "HelloWorld";
}
[WebMethod (MessageName="HelloWorldWithName")]
public string HelloWorld(string name)
{
 return "HelloWorld " + name;
}

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/05/15/p32/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham