hi i m Using Web service in IPhone i am Getting Json Response null when i use loacal server to Run i m getting Response
this is my Code
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
this is my link to call webservice
To call a WebService from AJAX, you need to decorate the service with the
[ScriptService]attributeIf you want to access you service using
GET:Add the
[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true)]attribute to the web methodAdd the following configuration to your web.config right under
<system.web>(server config where the web service lives).As a reminder, when using XML services you need to access the returned object as: