cancel
Showing results for 
Search instead for 
Did you mean: 

How to return array in java proxy ?

Former Member
0 Kudos

Hi XI expert,

I have developed simple synchronous java proxy that return array data, but still got error.

Please advise.

public class MIJPROXYREADFILESYNIN_PortTypeImpl extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements MIJPROXYREADFILESYNIN_PortType {

public com.galaxyentertainment.xi.base.component.DTJPROXYREADFILERES_Type

mIJPROXYREADFILESYNIN

(com.abc.xi.base.component.DTJPROXYREADFILEREQ_Type

mTJPROXYREADFILEREQ)

throws

com.sap.aii.proxy.xiruntime.core.SystemFaultException,

com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{

String type = mTJPROXYREADFILEREQ.getTYPE();

String ftpuser = mTJPROXYREADFILEREQ.getFTPUSER();

String ftppass = mTJPROXYREADFILEREQ.getFTPPASS();

String dir = mTJPROXYREADFILEREQ.getDIRECTORY();

String filename = mTJPROXYREADFILEREQ.getFILENAME();

String companycode = mTJPROXYREADFILEREQ.getCOMPANYCODE();

String requestdate = mTJPROXYREADFILEREQ.getREQUESTDATE();

DTJPROXYREADFILERES_Type response = new DTJPROXYREADFILERES_Type();

DTFILEROWLINE_Type[] row = new DTFILEROWLINE_Type[2];

row[0].setLINE("a");

row[1].setLINE("b");

response.setRow(row);

return response;

}

Error Message :

com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIJPROXYREADFILESYNIN of proxy bean $Proxy330: null:

Thank You and Best Regards

Fernand

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Check your DTFILEROWLINE_Type class source code for an appropriate set method.

Regards

Stefan

Answers (0)