Heh.
Um.
Well.
Yeah, that did it. After reading this email, I just signed on and ran it. Worked like a charm.
After the two days I've been banging my head on this...I'm not sure if I'm happy about that or not...lol
Thank you everybody for your help!
-----Original Message-----
From: Barbara Morris <bmorris@xxxxxxxxxx>
To: java400-l <java400-l@xxxxxxxxxxxx>
Sent: Tue, Mar 8, 2011 5:52 pm
Subject: Re: Signature mismatch when calling java prototype
On 2011/3/8 1:39 PM, mikemonger@xxxxxxx wrote:
Ok, here's what we've got so far. I'm still getting the same
oSuchMethod error, but the signatures still match.
...
callP Instantiate();
ResendOrder(ReturnMsg:string(wmfac):string(charOrd));
About the NoSuchMethodError, if you change your Java method, you have to
ign off and sign back on before the new version will be seen.
About your RPG calls, you have to get the value returned from the
nstantiate method by assigning the result of the method call to a
ariable. That gives you an instance of the ResendOrder class. And
hen you have to pass that instance as the first parameter to the
esendOrder method. To get the value returned from the ResendOrder
ethod, by assigning the result of the method call to a String variable.
d myOrder s o class(*JAVA:
'com.WMS_BPCS_Integrator.-
executable.ResendOrder')
myOrder = Instantiate();
ReturnMsg = ResendOrder(myOrder
: string(wmfac)
: string(charOrd));
-
his is the Java Programming on and around the IBM i (JAVA400-L) mailing list
o post a message email: JAVA400-L@xxxxxxxxxxxx
o subscribe, unsubscribe, or change list options,
isit:
http://lists.midrange.com/mailman/listinfo/java400-l
r email: JAVA400-L-request@xxxxxxxxxxxx
efore posting, please take a moment to review the archives
t
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.