I have a asp.net web app with some in page web service methods. It is not an asmx page, just Default.aspx. For example:
[WebMethod]
public static string SignUp(UserCredential userCredential)
{
}
I have no problem consuming this web service using jquery embeded in the Default.aspx page. Now I want to consume this web method in a console program for example. When I add the web reference to the console program, it said: The HTML document does not contain Web service discovery information.
How can I consume this in page web service?
You cannot consume that page method from outside of the page. You need a separate service for that.
You should do the following: