Webservice returning 413 Request entity too large

foo_bar
Member Posts: 91
Hi all,
On Navision 2015 CU30, I'm having a problem when I send a request to the navision webservice, the request contains a base64 encoded PDF, so the request is +100 000 charachters.
I get the response 413 request entity too large.. I tried changing the max msg size in the instance admin console to the max value allowed (100 000 kbytes), but this does not solve the problem (does this setting even have any effect?).
When I send the same message to a nav 2017 service, then I get no error..
Does anybody ran in to this error before and found a solution?
thx in advance
On Navision 2015 CU30, I'm having a problem when I send a request to the navision webservice, the request contains a base64 encoded PDF, so the request is +100 000 charachters.
I get the response 413 request entity too large.. I tried changing the max msg size in the instance admin console to the max value allowed (100 000 kbytes), but this does not solve the problem (does this setting even have any effect?).
When I send the same message to a nav 2017 service, then I get no error..
Does anybody ran in to this error before and found a solution?
thx in advance
0
Answers
-
I also tried with adding these settings to the nav.server.exe.config file
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="100000000" /> </requestFiltering> </security> </system.webServer> <system.web> <httpRuntime maxRequestLength="100000" /> </system.web>
this has no effect0 -
Hi foo_bar,
Have you find a solution for this issue? I also have the problem when post a large data to odata service published by NAV 2013 R2.0 -
Hello,
There is a maximum size for OData in Dynamics NAV administration.
If configuration does not help, I would split the data into smaller pieces before sending it to the webservice.best regards,
Thomas Barbut0 -
Hello Thomas,
Thanks for your reply.
I know there is a max message size limitation for SOAP service, but raising the value of this property does not take effect on Odata service for NAV 2013 R2. I checked MSDN, it says this property works on Odata from NAV 2016 and later.
So is there any way to raise the max request message size for Odata? Currently the default size might be 48KB or 64KB... REALLY TOO SMALL...0 -
Hi Alpha,
we switched to SOAP because of this restriction on OData service..0 -
Alpha is right. I believe that the definitive answer is in this blog post, but in conclusion:...change the "Max Message Size". This is done using the Dynamics NAV Administration. The setting is under the SOAP Services heading for the specific instance of NAV you are using.
NOTE: This setting is also for the Odata services max message size even though it is in the SOAP section.
Change the Max Message Size to an acceptable number for your environment. The valid range is 64 – 100,000. Once you enter a new size and save your settings, you must restart the NAV service for the web services to use the new max size.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions