On 2011/3/8 1:39 PM, mikemonger@xxxxxxx wrote:
...

public class ResendOrder
{
public String resendOrder(String Facility,String Order)
{...}
}

Rather than removing the STATIC keyword from the Java method, I think you probably would find it easier to leave it on the Java method and add it to the RPG prototype, and eliminate the need for instantiating a ResendOrder object. (I'm just guessing, based on the fact that your original version of the Java method was static, so it must not have been depending on any instance variables.)

public class ResendOrder
{
public static String resendOrder(String Facility,String Order)
{...}
}

d ResendOrderClass...
d c 'com.WMS_BPCS_Integrator.-
d executable.ResendOrder'
d StringClass...
d c 'java.lang.String'

d ResendOrder pr o extproc(*JAVA: ResendOrderClass
d :'resendOrder')
d Facility o class(*JAVA:StringClass) const
d Order o class(*JAVA:StringClass) const

ReturnMsg = ResendOrder(string(wmfac) : string(charOrd));

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