locked
MaxReceivedMessageSize in Rest Web services RRS feed

  • Question

  • User136806914 posted

    I am new to Rest web services & trying to figure out. I created a client application by consuming  web service ,  loop through a list object that has around 500,000 items & call API  for each record. Here is the error message i got & i know i need to change MaxReceivedMessageSize in app.Config file but i am trying to figure out what this message actually means??

    Error: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. 

    Friday, October 20, 2017 12:11 AM

Answers

  • User1120430333 posted

    Most would just set it to the max value, which you will have to look it up as to what that number is.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 20, 2017 5:24 PM

All replies

  • User1120430333 posted

    The incoming message size being exceeded, the default size is 65, 536 kb,  is the client that is sending the data to the service, and the service is blowing up on the transmission of data being sent to the service that exceeds its default value.

    Friday, October 20, 2017 1:50 AM
  • User136806914 posted

    Thanks for the explanation, data i am sending to service is a small XML string but i guess since i am looping through large set of data and making an API call is causing the problem. What's the advisable size??

    Friday, October 20, 2017 2:10 PM
  • User1120430333 posted

    Most would just set it to the max value, which you will have to look it up as to what that number is.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 20, 2017 5:24 PM