Hi everyone,
I am trying to use the feature of "SAP connectivity" in the NDS.
I created a proxy for a simple RFC.
What I am trying to do is to call the RFC from a Java code.
Here is what I wrote :
try {
Z_Rfc_Ws_Test2_Input input = new Z_Rfc_Ws_Test2_Input();
input.setInput("Salut la compagnie");
SAPProxy_PortType proxy = new SAPProxy_PortType();
Z_Rfc_Ws_Test2_Output output = proxy.z_Rfc_Ws_Test2(input);
} catch (Exception e) {
e.printStackTrace();
}
I get an exception because I didn't specify the username and its credentials. Of course, I have to specify the server and the client number.
Here is the exception :
com.sap.aii.proxy.framework.core.BaseProxyException: JCoClient connection missing
at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
at com.proxy.SAPProxy_PortType.z_Rfc_Ws_Test2(SAPProxy_PortType.java:16)
at Client.main(Client.java:45)
Can someone help with this issue ?
Thanks in advance.