0

I have two web services on the server. When i run the service url http://www.solentvehicleleasing.co.uk/solentwebservice.asmx/GetLeasingPriceForTechinalPageByDerID. Its give service messsage .

"Request format is unrecognized for URL unexpectedly ending in '/GetLeasingPriceForTechinalPageByDerID'.

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 for URL unexpectedly ending in '/GetLeasingPriceForTechinalPageByDerID'."

The above error fine for the service.

But on the same server when i run the another service http://www.solentcarleasing.co.uk/solentwebservice.asmx/GetLeasingPriceForTechinalPageByDerID. The return 404 error.

I am using MVC 3 and call the service using jquery ajax method.

Can anyone help me

Thanks in Advance

4

1 回答 1

0

据我所知,Web 服务从来没有以这种方式设置 URL。您可以查看服务详情: http ://www.solentcarleasing.co.uk/solentwebservice.asmx?op=GetLeasingPriceForTechinalPageByDerID

在 Visual Studio 中,您必须添加服务,然后从代码中调用它。您不能只是通过 *.asmx/ServiceMethodName 导航到

于 2012-11-18T18:54:21.630 回答