要做web service 可是我刚学,急啊,问一个小问题
我的web service路径为http://localhost/eChaseData/orderpage.asmx
有一个login方法,有三个参数为firstName ,lastName,password
我在地址栏中输入http://localhost/eChaseData/orderpage.asmx进去点login,然后输入各个参数的值,点Invoke就可以得到结果,这应该属于http post访问web service
还有就是http get 方式
按理说我输入http://localhost/eChaseData/orderpage.asmx/Login?firstName=1&lastName=2&passWord=123是没错的,可是出现这样的错,还无法跟踪
Request format is unrecognized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Request format is unrecognized.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Request format is unrecognized.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)