我想在浏览器中通过GET 调用 WEB服务 我的命令是这样的 
http://localhost/WebService1/Service1.asmx/HelloWorld?id=8HELLOWORLD 是方法 id是参数
但是总是告诉我请求的格式不正确,请问该如何解决?谢谢

解决方案 »

  1.   

    直接在地址栏输入
    http://localhost/WebService1/Service1.asmx
    页面打开后会有一个文本框让你输入参数,你再输入8就行了
      

  2.   

    使用webservice.htc<script language="JavaScript">
    var iCallID;function init()
    {
        service.useService("/services/math.asmx?WSDL","MyMath");
        iCallID = service.MyMath.callService("add",5,6);
    }
    </script>
    <body onload="init()">
    <div id="service" style="behavior:url(webservice.htc)">
    </div>
    </body>