Hi,
I am using the SAP enterprise connector plugin for Netweaver 04.
It generated me all the classes that I need for the BAPI.
It also generated me a Proxy class.
I want to create a service.
This is what I've done :
1) create a portal service.
2) create a methode in the service :
public Bapi_Companycode_Getdetail_Output execute_BAPI_COMPANYCODE_GETDETAIL(
Bapi_Companycode_Getdetail_Input arg1)
{
try {
return new MyProxy_PortType().bapi_Companycode_Getdetail (arg1);
} catch (Exception e) {
}
return null;
}
3) after I created a web service from the portal service.
Is it the right way ?
Thanks a lot.
Hello,
This is the simplest path to create a WebService based on a portal service (based on RFC). After these steps, you have to generate a .par file from the NWDS and upload it into the portal (System Administration -> Support -> Portal Runtime -> Administration Console) and you're set.
Regards
Marcin
Add a comment