Hi everyone,
I used the SAP Enterprise Connector plugin for NW04 to develop a connection to a BAPI.
On my client side, I created a Portal Service from wsdl file.
Here is the code where I get an exception.
IMyBAPI4Service client =(IMyBAPI4Service) PortalRuntime
.getRuntimeResources().getService(IMyBAPI4Service.KEY);
Bapi_Companycode_Getdetail_Input importParams =
new Bapi_Companycode_Getdetail_Input();
importParams.setCompanycodeid("0500");
Bapi_Companycode_Getdetail_Output exportParams = null;
try {
exportParams = client.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);
} catch (Exception e) {
myForm.addComponent(new TextView(">> Problem at execution : " + e));
}
Here is the Exception :
>> Problem at execution : SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
Can someone help ?
/!\ I do not use (for meanwhile) the se37 ABAP transaction from WEB AS 6.40.
Thanks a lot.
Where are you getting the Exception. Is it in the Service or have you created an iView that tries to connect to your service. If this is the case, then make sure that you have a SharingReference to your service so that the iView can access your service class
I hope this helps
D
Add a comment