Skip to Content

Web Service exception using SAP Enterprise Connector plugin....

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 25, 2005 at 01:48 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.