Re: PCML Call reality check

"D*B" <[email protected]> Fri, 8 Oct 2021 16:40:38 +0200
Newsgroups gmane.comp.lang.as400.java
Message-ID <70641BEA31B5470BBF8165DAA883AE09@Lisp>
Pete,

all parms for ProgramCall etc. are byte[] and you would have to convert your 
java vars to this binary stuff by the conevrsion routines of jtopen. For 
conveniance reasons, I use the Converter class, I mentioned in my last post. 
For the first var you would need abean like mentioned (you would find some 
of these here: 
https://sourceforge.net/p/appserver4rpg/codeSVN/HEAD/tree/appserver4rpg/src/de/bender_dv/ardgate/pords2pojo/ .

These beans could be written rather quick:
- define the private vars of the bean
- let Eclipse generate only the needed setXXX and getXXX methods
-- if the structure is used as input, you would need set methods for each 
element and a get method for the binary huddle
-- if it is coming back from the api call, you would need a set method for 
the binary huddle and getters for all components
- change the implementation of the generated methods
You will find some inspiration in the pords2pojo package of ArdGate.

Dieter
 

-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com