× 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.



Looks like at least some of your needs can be found with sample code here (and there)...

Constructing objects and String object example...
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/rzasc/sc092507230.htm#crt_objects
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/rzasc/sc092507229.htm#javameth

Hints about how to retrieve the value in a java String object...
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/rzasc/sc092507236.htm#usstrobj


hth,
-Eric DeLong

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dean Eshleman
Sent: Wednesday, September 19, 2012 3:47 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Calling Java from RPG take 2

In order to interface with some third party software, I need to call some Java code that they provided to generate a token. My experience with Java is mainly what I have read in articles. The statement they gave me was

String tokenValue = cincom.eloquence.exits.gsm.token. UniversalToken. getUniversalToken(Mykey, expireMinutes)

Mykey is a java string and the expireMinutes is an integer. Thanks to the previous thread about calling Java, I used the wizard in WDSC to create the prototypes for calling the Java method. Thanks Joe! What I am struggling with is how do I move data between a Java string variable and an RPG character variable? I am guessing I need to create a new instance of the Mykey field and somehow assign a value to it. I need to do this with the Mykey field and the tokenValue field.

Dean Eshleman
Software Development Architect

Everence Financial
1110 North Main Street
PO Box 483
Goshen, IN 46527
Phone: (574) 533-9515 x3528
www.everence.com<http://www.everence.com>



________________________________________
Confidentiality Notice: This information is intended only for the individual or entity named. If you are not the intended recipient, do not use or disclose this information. If you received this e-mail in error, please delete or otherwise destroy it and contact us at (800) 348-7468 so we can take steps to avoid such transmission errors in the future. Thank you.
_______________


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.