OpenLDBSVWS Error when I GetArrDepBoardsWithDetails

55 views
Skip to first unread message

Mike Winter

unread,
Nov 19, 2021, 10:43:55 AM11/19/21
to A gathering place for the Open Rail Data community
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. 

Have you any suggestions to fix this, please!

Thanks in advance.

Mike
Reply all
Reply to author
Forward
0 new messages