asp.net - Webservice fails to add -
i have webservice in project. whenever try add in service reference shows particular error
could not create type 'json_read.getmaplocation'. source error
line 1: <%@ webservice language="c#" codebehind="getmaplocation.asmx.cs" class="json_read.getmaplocation" %> this web service
<%@ webservice language="c#" codebehind="getmaplocation.asmx.cs" class="json_read.getmaplocation" %> code behind
namespace json_read { /// <summary> /// summary description getmaplocation /// </summary> [webservice(namespace = "http://tempuri.org/")] [webservicebinding(conformsto = wsiprofiles.basicprofile1_1)] [system.componentmodel.toolboxitem(false)] // allow web service called script, using asp.net ajax, uncomment following line. //[system.web.script.services.scriptservice] public class getmaplocation : system.web.services.webservice { [webmethod] public string helloworld() { return "hello world"; } i struggling through error few days no soultion yet.thanks assistance.
Comments
Post a Comment