×
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.
Can you post your prototype? That would help!
-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.