× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Just curious. Does this job have to done as a Web Service or is that just
the only way you could figure out how to do it?

On Wed, Jun 28, 2017 at 7:42 AM, Nadir Amra <amra@xxxxxxxxxx> wrote:

Hi Troy,

It is not currently possible to ignore properties. Maybe an RFE[1] is in
order.

There is no limit as far as I know to the number of fields in a structure
or nested structure. There is a limit to number of parameters (for
programs, I believe it is 255; for procedures, I believe it is 7).

[1] https://www.ibm.com/developerworks/rfe/



"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 06/27/2017
06:12:19 PM:

From: "Bryant, Troy" <Troy.Bryant@xxxxxxx>
To: "midrange-l@xxxxxxxxxxxx" <midrange-l@xxxxxxxxxxxx>
Date: 06/28/2017 07:00 AM
Subject: JSON Limitations using IWS
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>

I have created a RESTful web service using the IWS wizard with JSON
as an input parameter.
It works fine when the JSON is small as in the example provided here:

https://www.ibm.com/developerworks/ibmi/library/i-
rest-web-services-server3/

However, I need to accept a larger file with hundreds of JSON field
names and it fails because all the fields are not declared in my RPG
program data structure.

This is the error -
org.codehaus.jackson.map.exc.UnrecognizedPropertyException

Is it possible to set something like this?: @JsonIgnoreProperties
(ignoreUnknown = true) as described here: https://stackoverflow.com/
questions/4486787/jackson-with-json-unrecognized-field-not-marked-
as-ignorable/7546047#7546047 , or do I need to declare every field name?

Is there a limit on the number of field names that IWS will allow
for a JSON file?

Cheers, Troy.




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.