Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Java Bean and WebService Import with Development Component

Hi,

currently i'm trying to import a WebService via a development componetnt (DC).

First i have imported the service into the "External Services" section. The i created a entity service and then an application service, which can be accessen from an Callable Object.

My question is:

How can i call the Entity service from within the application service??

I have a method double add(double x, double y) in the WebService, which i want to call.

I tried it this way:

//@@custom code start - add(double, double)
MyCalcAddServiceBean wsEntity = new MyCalcAddServiceBean();
QueryFilter filterX = new QueryFilter();
QueryFilter filterY = new QueryFilter();
filterX.doubleValueLow = arg0;
filterY.doubleValueLow = arg1;
List res = wsEntity.add(filterX,filterY);
	
retValue = Double.parseDouble(res.get(6).toString());
		
//@@custom code end - add(double, double)
return retValue;

but it throws an exception.

How can i call this bean correct?

Do i really need the input and output parameters as attributes of the bean?

Is it possible to call that method without this bean object?

Regards, Manuel

Former Member
Not what you were looking for? View more on this topic or Ask a question