Im working in C#. When I retrieve the station boards using the below code:
StationBoardWithDetails1 oStationBoard = new StationBoardWithDetails1();
oStationBoard = oClient.GetArrDepBoardWithDetails(oAccessToken, 10, crs, DateTime.Now, 20, null, FilterType.from, null, null, true);
I get the following 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.
If I reduce the timeWindow to 2 or 3 minutes (so I only retrieve a up to 3 train records), the error goes away. I cant work out how to use the MaxReceivedMessageSize property. I have tried adding to App.config file, but doesn't seem to fix the problem.