解决方法
请参阅
Calling Web Services from Client Script in ASP.NET AJAX:
This topic explains how to use to call
a Web service from ECMAScript
(JavaScript). To enable your
application to call ASP.NET AJAX Web
services by using client script,the
server asynchronous communication
layer automatically generates
JavaScript proxy classes. A proxy
class is generated for each Web
service for which an
<asp:ServiceReference>
element is
included under the
<asp:ScriptManager>
control in the page.