Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6853609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:31:57+00:00 2026-05-27T01:31:57+00:00

I have a web service returning some Json stuff to my iPhone application and

  • 0

I have a web service returning some Json stuff to my iPhone application and it works fine as long as the amount of returned data is kind of small but if I increase the amount of data that is returned the application is not able to process it. Is there a way to solve this, can’t possibly be a limit of 218KB…?

This is my current code:

[WebService(Namespace = "http://mydomain.com/webservicesfeed")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]

    public class feedPerson : System.Web.Services.WebService
    {

        [WebMethod(BufferResponse = false)]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public List<Person> getData()
        {
            List<Person> res = new List<Person>();
                res = searchPerson("32.8762", "13.1875");
            return res;
        }
    }

If I call the web service throw jQuery it also fails so I guess the problem is at the web service..

This is the jQuery code I used to try it out:

 <script type="text/javascript">
     $.ajax({
         type: "POST",
         contentType: "application/json; charset=utf-8;",
         url: "http://mydomain.com/feedPerson.asmx/getData",
         dataType: "json",
         success: function (data, textStatus, jqXHR) {
             alert(data.d[0]);
         },
         error: function (jqXHR, textStatus, errorThrown) {
             alert("Fail");
         }
     });
    </script>

How could this be solved?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:31:58+00:00Added an answer on May 27, 2026 at 1:31 am

    Catching the error gave me the following information: “The length of the string exceeds the value set on the maxJsonLength property”.

    Then I found this post: Can I set an unlimited length for maxJsonLength in web.config?

    and by setting the following in my web.config:

    <system.web.extensions>
        <scripting>
            <webServices>
                <jsonSerialization maxJsonLength="2147483647"/>
            </webServices>
        </scripting>
    </system.web.extensions>
    

    The issue was solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service returning JSON data with some date fields but I
I have a web service returning JSON data with some date fields but I
I have a web service that queries data from this json file, but I
I have an android application, that will call a SOAP web service for some
I have a web service returning JSON, but now I'd like to modify it
Friends, I'm lost here. I have this WCF Rest service returning data in json
I have a .NET web service returning the following JSON: {command:getqcardjson,valuesets:[{datatable:eaa65990-8f88-45e0-966b-610858ad4cb6,values:[{Id:eaa65990-8f88-45e0-966b-610858ad4cb6,InternalName:Alpha Profile,TableName:Alpha Profile,OnMainMenu:,DefaultDataSourceId:bb4d1622-2e48-40b6-bea7-6355d701445c,DefaultOrder:100,IsChained:,IncludeInGlobalSearch:False,IsModelObject:,IsSchemaObject:,IsSecured:False,IsFileNewMenu:False,IsUpdateShouldRippleCache:False,AdvancedSearchQueryId:,CompoundViewQueryId:,GlobalSearchQueryId:,Icon:Information.png,DefaultObjectLayoutStyle:980163c2-2688-465d-9383-e5ad4dbf631f,Notes:This is
i have an ASP.NET web service that returning a custom entity object (Staff): [WebMethod]
I have a web service that uses Python's SimpleJSON to serialize JSON, and a
I have a .NET web service that is returning the following: <ArrayOfAddressLocation xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.