I have a problem, i have a custom web service in ax 2012, which returns agreement list by calling it .Net side, when i change the code to fetch only 1000 records, the webservice is working fine, but when i need to fetched the whole agreement list for a company, the service throw an error, like The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:09:59.9531259'. Can you please help me how to sort out it.
You can increase timeouts, but that that just increases the number of records you can process. It's not a solution that allows processing of any number of records.
The solutions exists - it's called paging. It means that your service will return records in smaller sets, e.g. if you have 1500 records, it may return just 500 at once. The caller will make several requests to get all the data.
Note that the query service in AX 2012 already supports this scenario, so maybe you can a better solution with no development at all.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.