Right - so the problem is not a sales order operation, but the GET of parts with a given list of part numbers
- Code: Select all
IN_MainQueryResponse = client.Get<ServiceStack.QueryResponse<IN_Main>>(inqry);
That would pass as parameters each Part No. - the request would be something like:
https://api.jiwa.com.au/Queries/IN_Main?PartNoIn=1170,1171
Where the PartNoIn parameter value is a csv separated list of parts you are retrieving - and if there are many and they are long, you'll exceed the maximum request length configured.
SBarnes wrote:What is the maximum length and is there a way to increase it?
The default maximum length I believe is 4MB - but you can override this in the JiwaAPISelfHostedService.exe.config file under the system.web section by setting the maxRequestLength attribute of the httpRuntime property - e.g.:
- Code: Select all
<configuration>
<system.web>
<httpRuntime maxRequestLength ="2097151"/>
</system.web>
</configuration>